|
9 | 9 | // @description:zh-TW 老司機工具箱,支持琉璃神社、靈夢禦所、純愛計劃、紳士二次元、萌心次元、次元軌跡、ACG調查小隊、幻天領域、天使二次元、櫻花漫舍、風鈴窩、次元の聖光、愛彈幕、幻想次元、司機會所、裏番萌、最ACG、紳士倉庫、紳士圖書館、ACG和諧區/裏世界、寂月神社、萌幻之鄕、紳士の庭、萌口組、九妖萌、CE家族社、喵窩、次元老司機、紳士ACG社等,神秘代碼轉換成下載鏈接,網盤自動填寫提取密碼,F8、Shift+F8站點切換,Alt+F8列表瀏覽,左右方向鍵文章跳轉,Ctrl+左右快捷翻頁,Ctrl+上下跳入跳出,下載鏈接嗅探,繞過重定向跳轉,各種和諧補丁 |
10 | 10 | // @description:ja 琉璃神社工具セット、秋の名山老運転手専用 |
11 | 11 | // @author hoothin |
12 | | -// @icon https://www.llss.fun/favicon.ico |
| 12 | +// @icon https://www.liuli.pw/favicon.ico |
13 | 13 | // @include http*://www.hacg.*/wordpress/* |
14 | 14 | // @include http*://hacg.*/wordpress/* |
15 | 15 | // @include http*://loli.cool/* |
|
95 | 95 | // @include http*://greasyfork.org/*/scripts/* |
96 | 96 | // @include http*://sleazyfork.org/*/forum/*discussion* |
97 | 97 | // @include http*://greasyfork.org/*/forum/*discussion* |
98 | | -// @version 3.22.53 |
| 98 | +// @version 3.22.55 |
99 | 99 | // @grant GM_notification |
100 | 100 | // @grant GM_xmlhttpRequest |
101 | 101 | // @grant GM_setClipboard |
102 | 102 | // @grant GM_setValue |
103 | 103 | // @grant GM_getValue |
104 | 104 | // @grant unsafeWindow |
105 | 105 | // @run-at document-end |
106 | | -// @require https://greasyfork.org/scripts/23522/code/od.js?version=264106 |
| 106 | +// @require https://greasyfork.org/scripts/23522/code/od.js?version=598400 |
107 | 107 | // @require https://cdn.jsdelivr.net/crypto-js/3.1.2/components/core-min.js |
108 | 108 | // @require https://cdn.jsdelivr.net/crypto-js/3.1.2/rollups/aes.js |
109 | 109 | // @updateURL https://greasyfork.org/scripts/23316/code/HacgGodTurn.user.js |
|
285 | 285 | }, |
286 | 286 | { |
287 | 287 | name:"次元の圣光", |
288 | | - url:"https://www.acglover.pw/", |
| 288 | + url:"https://www.acglover.me/", |
289 | 289 | regex:/acglover\./, |
290 | 290 | offset:60, |
291 | 291 | contentArea:".entry-inner", |
292 | 292 | run:function(){ |
293 | | - changeUrl(true,[["a","img"],[['acglover\\\.net','acglover\\\.pw']]]); |
| 293 | + changeUrl(true,[["a","img"],[['acglover\\\.net','acglover\\\.me']]]); |
294 | 294 | } |
295 | 295 | }, |
296 | 296 | { |
|
303 | 303 | run:function(){ |
304 | 304 | var content=document.querySelector('.entry,.amp-wp-article-content>.amp-wp-content,.content-inner'); |
305 | 305 | if(content){ |
306 | | - var plist = content.querySelectorAll("p"); |
| 306 | + var plist = content.querySelectorAll("p,div"); |
307 | 307 | var key = ""; |
308 | 308 | for(var i=0;i<plist.length;i++){ |
309 | 309 | var pNode=plist[i]; |
310 | | - if(/\u5bc6\u5319[::]/i.test(pNode.innerHTML)){ |
311 | | - var orgStr = pNode.innerHTML.match(/\u5bc6\u5319[::]\s*\S*/i)[0].replace(/\u5bc6\u5319[::]\s*/,"").replace('&','&'); |
| 310 | + if(/\u5bc6\u5319[::]?/i.test(pNode.innerHTML)){ |
| 311 | + var orgStr = pNode.innerText.match(/\u5bc6\u5319[::]?\s*\S*/i)[0].replace(/\u5bc6\u5319[::]?\s*/,"").replace('&','&'); |
312 | 312 | key=CryptoJS.enc.Base64.parse(orgStr).toString(CryptoJS.enc.Utf8); |
313 | 313 | pNode.innerHTML = ""; |
314 | 314 | break; |
315 | 315 | } |
316 | 316 | } |
317 | 317 | if(key !== ""){ |
318 | | - var blockquotes = content.querySelectorAll("blockquote"); |
| 318 | + var blockquotes = content.querySelectorAll("blockquote>p,div.alert-success"); |
319 | 319 | for(var i=0;i<blockquotes.length;i++){ |
320 | 320 | var blockquote=blockquotes[i]; |
321 | | - var target = blockquote.querySelector("p"); |
322 | | - if(!target||target.innerText===""||!/^[0-9a-z\+\/=\s]+$/i.test(target.innerText)){continue;} |
323 | | - var result = target.innerHTML.replace(/<br>/g,"").replace(/\s/g,""); |
| 321 | + if(!blockquote||blockquote.innerText===""||!/^[0-9a-z\+\/=\s]+$/i.test(blockquote.innerText)){continue;} |
| 322 | + var result = blockquote.innerHTML.replace(/<br>/g,"").replace(/\s/g,""); |
324 | 323 | result = CryptoJS.AES.decrypt(result,key).toString(CryptoJS.enc.Utf8); |
325 | | - target.innerHTML = result; |
| 324 | + blockquote.innerHTML = result; |
326 | 325 | } |
327 | 326 | } |
328 | 327 | } |
|
1246 | 1245 | for(let j=0;j<links.length;j++){ |
1247 | 1246 | let link=links[j]; |
1248 | 1247 | if(config.rocketReg.test(link.href)&&link.className.indexOf("whx-a")==-1){ |
1249 | | - if(rocketLinks.innerHTML.indexOf(link.outerHTML)!=-1)continue; |
| 1248 | + if(rocketLinks.innerHTML.indexOf(link.outerHTML)!=-1 || window.getComputedStyle(link).display=="none" || (link.firstElementChild&&window.getComputedStyle(link.firstElementChild).display=="none"))continue; |
1250 | 1249 | rocketLinks.innerHTML+="<a id='rocketBack' style='font-weight:bold;color:red;' href='javascript:void(0)'>"+(++i)+"<img src='"+preImgData+"'></a>: "; |
1251 | 1250 | rocketLinks.appendChild(link.cloneNode(true)); |
1252 | 1251 | rocketLinks.innerHTML+="<br/>"; |
|
0 commit comments