summaryrefslogtreecommitdiff
path: root/.config/qutebrowser/greasemonkey/teddit.js
blob: 408e421f7593b699b312a57297b7431d10f00751 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// ==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.zaggy.nl",
        "teddit.namazso.eu",
        "reddit.lol",
        "teddit.totaldarkness.net",
        "teddit.adminforge.de",
        "teddit.bus-hit.me",
        "td.vern.cc",
        "teddit.sethforprivacy.com"
    ];

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