您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
심야식당내 base64코드 자동복호화
当前为
// ==UserScript== // @name 심야식당 자동복호화 // @namespace http://tampermonkey.net/ // @version 0.2 // @description 심야식당내 base64코드 자동복호화 // @author SYJ // @match https://arca.live/* // @icon https://www.google.com/s2/favicons?sz=64&domain=arca.live // @grant none // @require http://code.jquery.com/jquery-3.6.0.min.js // @license MIT // ==/UserScript== (function() { //'use strict'; let txt=$('.article-content').text(); let regex=/[0-9A-Za-z]{30,}[=]{1,2}/; let matched_txt=regex.exec(txt); let coded_txt=matched_txt[0]; if (coded_txt.slice(0,4) == 'html') { coded_txt=coded_txt.slice(4,); } let decoded_txt=coded_txt; while (1) { decoded_txt=atob(decoded_txt); if ( decoded_txt.slice(-1) != '=') { break; } } decoded_txt =decoded_txt+'\n'; console.log(decoded_txt); function getElementByXpath(path) { return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; } let z=getElementByXpath("//p[contains(text(),'"+coded_txt+"')]"); console.log(z.textContent); z.textContent=z.textContent.replace(regex,decoded_txt) console.log(z.textContent) })();