Last active
June 30, 2024 11:23
-
-
Save qiwichupa/57881a7f962b8d626cdc748a97cb1f19 to your computer and use it in GitHub Desktop.
JoyReactor_Onion_Links
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name JoyReactor Onion Links | |
// @description Ссылка на onion-зеркало в шапке и под постами | |
// @icon http://joyreactor.cc/favicon.ico | |
// @namespace https://gist.github.com/qiwichupa/57881a7f962b8d626cdc748a97cb1f19 | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js | |
// @include https://*.reactor.cc/* | |
// @include https://joyreactor.cc/* | |
// @run-at document-idle | |
// @grant GM_xmlhttpRequest | |
// @grant GM_addStyle | |
// @version 2024.06.30.14 | |
// @author qiwichupa | |
// @license CC BY-SA | |
// ==/UserScript== | |
$(document).ready(function(){ | |
$('[class^=topbar_right]').children('strong').append(' | '); | |
$('[class^=topbar_right]').children('strong').append(function() { | |
var domain='http://reactorccdnf36aqvq34zbfzqyrcrpg3eyhilauovitrvmcjovsujmid.onion'; | |
var link = $('<a/>'); | |
link.attr('href', domain+window.location.href.replace(window.location.origin, "")); | |
link.text('Onion'); | |
return link; | |
}); | |
$('[class^=link_wr]').append(' '); | |
$('[class^=link_wr]').append(function() { | |
var domain='http://reactorccdnf36aqvq34zbfzqyrcrpg3eyhilauovitrvmcjovsujmid.onion'; | |
var link = $('<a/>'); | |
var origlink=$(this).children('a').attr('href'); | |
link.attr('title', 'ссылка на onion-зеркало'); | |
link.attr('href', domain+origlink.replace(window.location.origin, "")); | |
link.text('onion'); | |
return link; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment