summaryrefslogtreecommitdiff
path: root/.config/qutebrowser/greasemonkey-available/teddit.js
blob: d0466d86dcac76954ae89446f3737963f024206a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// ==UserScript==
// @name         Teddit
// @version      1.0
// @description  reddit to teddit
// @match        *://reddit.com/*
// @match        *://*.reddit.com/*
// @grant        none
// @run-at       document-start
// ==/UserScript==

(function () {
    'use strict';

    var instances = [
        "teddit.namazso.eu",
        "teddit.totaldarkness.net",
        "teddit.bus-hit.me",
        // "teddit.sethforprivacy.com"
    ];

    top.location.hostname = instances[Math.floor(Math.random()*instances.length)];
})();