Skip to content

Commit 1149f74

Browse files
committed
reddit base64
1 parent 5f5adb8 commit 1149f74

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

HacgGodTurn/HacgGodTurn.user.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,12 @@
103103
// @include http*://*miobt.*
104104
// @include http*://www.dakashangche.*
105105
// @include http*://xiuxiqu.*
106+
// @include https://www.reddit.com/*
106107
// @include http*://sleazyfork.org/*/scripts/*
107108
// @include http*://greasyfork.org/*/scripts/*
108109
// @include http*://sleazyfork.org/*/forum/*discussion*
109110
// @include http*://greasyfork.org/*/forum/*discussion*
110-
// @version 3.22.65
111+
// @version 3.22.66
111112
// @grant GM_notification
112113
// @grant GM_xmlhttpRequest
113114
// @grant GM_setClipboard
@@ -980,6 +981,19 @@
980981
$('#magnet_url').attr('href', magnet_url.full).text('磁力下载').click(function() { return (prompt('确认下载磁链', magnet_url.full) ? true : false); }); } else { return false; }
981982
})(jQuery);
982983
}
984+
},
985+
{
986+
name:"Reddit",
987+
url:"https://www.reddit.com/r/SwitchNSPs",
988+
regex:/reddit\.com/,
989+
hideOd:true,
990+
run:function(){
991+
window.setTimeout(function(){
992+
var article=document.querySelector(".RichTextJSON-root");
993+
var a=article.innerHTML.match(/[\da-z\/\+\=]{50,}/i);
994+
article.innerHTML=article.innerHTML.replace(/[\da-z\/\+\=]{50,}/i,"<pre>"+CryptoJS.enc.Base64.parse(a[0]).toString(CryptoJS.enc.Utf8)+"</pre>");
995+
},3000);
996+
}
983997
}
984998
/*{
985999
name:"咻咻动漫",

0 commit comments

Comments
 (0)