// ==UserScript== // @name HOOK 所有已知加解密函数 // @namespace http://tampermonkey.net/ // @version 0.1 // @description HOOK 所有已知加解密函数,用于爬虫破解 // @author jflmao // @include * // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @require https://cdn.jsdelivr.net/npm/sweetalert2@10.15.6/dist/sweetalert2.min.js // @resource swalStyle https://cdn.jsdelivr.net/npm/sweetalert2@10.15.6/dist/sweetalert2.min.css // @run-at document-end // @grant unsafeWindow // @grant GM_setValue // @grant GM_getValue // @grant GM_registerMenuCommand // @grant GM_getResourceText // @downloadURL none // ==/UserScript== (function() { 'use strict'; var enable_day = GM_getValue('enable_day'); var date = new Date(enable_day); var year = date.getFullYear(); var month = date.getMonth() var day = date.getDate(); var dateN = new Date(); var yearN = dateN.getFullYear(); var monthN = dateN.getMonth() var dayN = dateN.getDate(); if (day != dayN || month != monthN || yearN != year) { GM_setValue('enable_day', dateN.getTime()); GM_setValue('setting_Enable', false); } console.log(GM_getValue('setting_Enable')); function addStyle(id, tag, css) { tag = tag || 'style'; let doc = document, styleDom = doc.getElementById(id); if (styleDom) return; let style = doc.createElement(tag); style.rel = 'stylesheet'; style.id = id; tag === 'style' ? style.innerHTML = css : style.href = css; doc.getElementsByTagName('head')[0].appendChild(style); } addStyle('swal-pub-style', 'style', GM_getResourceText('swalStyle')); GM_registerMenuCommand('设置', () => { let html = `
`; Swal.fire({ title: '设置', html, icon: 'info', footer: '