commit 53a6ed22cb7cd6d6dd40c8db39906e8b200657e2 Author: DmitriyMX Date: Fri Sep 27 10:12:36 2019 +0000 import code diff --git a/userscript.js b/userscript.js new file mode 100644 index 0000000..7441521 --- /dev/null +++ b/userscript.js @@ -0,0 +1,18 @@ +// ==UserScript== +// @name Joy: correcting nofollow domain +// @namespace http://tampermonkey.net/ +// @version 1.0 +// @description correcting nofollow domain +// @author You +// @match http://joy.reactor.cc/* +// @grant none +// @run-at document-end +// ==/UserScript== + +(function() { + 'use strict'; + + document.querySelectorAll('a[rel="nofollow"][href^="//reactor.cc"]').forEach((elm) => { + elm.href = elm.href.replace('//reactor.cc', '//joy.reactor.cc'); + }); +})(); \ No newline at end of file