|
82 | 82 | // @include http*://greasyfork.org/*/scripts/* |
83 | 83 | // @include http*://sleazyfork.org/*/forum/*discussion* |
84 | 84 | // @include http*://greasyfork.org/*/forum/*discussion* |
85 | | -// @version 3.22.30 |
| 85 | +// @version 3.22.31 |
86 | 86 | // @grant GM_notification |
87 | 87 | // @grant GM_xmlhttpRequest |
88 | 88 | // @grant GM_setClipboard |
89 | 89 | // @grant GM_setValue |
90 | 90 | // @grant GM_getValue |
91 | 91 | // @grant unsafeWindow |
92 | 92 | // @run-at document-end |
93 | | -// @require https://greasyfork.org/scripts/23522/code/od.js?version=185413 |
| 93 | +// @require https://greasyfork.org/scripts/23522/code/od.js?version=187400 |
94 | 94 | // @require https://cdn.jsdelivr.net/crypto-js/3.1.2/components/core-min.js |
95 | 95 | // @require https://cdn.jsdelivr.net/crypto-js/3.1.2/rollups/aes.js |
96 | 96 | // @updateURL https://greasyfork.org/scripts/23316/code/HacgGodTurn.user.js |
|
1229 | 1229 | processObj(content); |
1230 | 1230 | } |
1231 | 1231 | var link, imgs, i, k; |
1232 | | - if (document.querySelectorAll) { |
1233 | | - link = document.querySelectorAll('a'); |
1234 | | - imgs = document.querySelectorAll('img'); |
1235 | | - } else { |
1236 | | - link = document.getElementsByTagName('a'); |
1237 | | - imgs = document.getElementsByTagName('img'); |
1238 | | - } |
1239 | | - for (i = 0, k = link.length; i < k; i++) { |
1240 | | - let target=link[i]; |
1241 | | - target.addEventListener("mousedown", function(){ |
1242 | | - if(/baidu.com/i.test(target.href)&&!/(?:eyun|tieba)\.baidu\.com/i.test(target.href)&&!/#/i.test(target.href)){ |
1243 | | - if(/\/storage-download/.test(location.href)){ |
1244 | | - var pass=target.parentNode.parentNode.querySelector('input.pwd'); |
1245 | | - if(pass&&pass.id.indexOf("download-pwd")!=-1)target.href=target.href.split("#")[0]+'#'+pass.value; |
1246 | | - } else if(curSite.downloadUrl && curSite.downloadUrl.test(location.href) && curSite.getDownPass){ |
1247 | | - curSite.getDownPass(target); |
1248 | | - } else if(codeRule.test(target.textContent)){ |
1249 | | - target.href+='#'+extCode(target); |
1250 | | - } else if(target.nextSibling&&codeRule.test(target.nextSibling.textContent)){ |
1251 | | - if(!/#\S+/i.test(target.href)){ |
| 1232 | + setTimeout(function(){ |
| 1233 | + if (document.querySelectorAll) { |
| 1234 | + link = document.querySelectorAll('a'); |
| 1235 | + imgs = document.querySelectorAll('img'); |
| 1236 | + } else { |
| 1237 | + link = document.getElementsByTagName('a'); |
| 1238 | + imgs = document.getElementsByTagName('img'); |
| 1239 | + } |
| 1240 | + for (i = 0, k = link.length; i < k; i++) { |
| 1241 | + let target=link[i]; |
| 1242 | + target.addEventListener("mousedown", function(){ |
| 1243 | + console.log(111); |
| 1244 | + if(/baidu.com/i.test(target.href)&&!/(?:eyun|tieba)\.baidu\.com/i.test(target.href)&&!/#/i.test(target.href)){ |
| 1245 | + if(/\/storage-download/.test(location.href)){ |
| 1246 | + var pass=target.parentNode.parentNode.querySelector('input.pwd'); |
| 1247 | + if(pass&&pass.id.indexOf("download-pwd")!=-1)target.href=target.href.split("#")[0]+'#'+pass.value; |
| 1248 | + } else if(curSite.downloadUrl && curSite.downloadUrl.test(location.href) && curSite.getDownPass){ |
| 1249 | + curSite.getDownPass(target); |
| 1250 | + } else if(codeRule.test(target.textContent)){ |
| 1251 | + target.href+='#'+extCode(target); |
| 1252 | + } else if(/^\s*[a-z\d]{4}\s*$/i.test(target.textContent)){ |
| 1253 | + target.href+='#'+target.textContent.trim(); |
| 1254 | + } else if(target.nextSibling&&codeRule.test(target.nextSibling.textContent)){ |
1252 | 1255 | target.href+=/#/i.test(target.href)?extCode(target.nextSibling):('#'+extCode(target.nextSibling)); |
1253 | | - } |
1254 | | - } else if(codeRule.test(target.parentNode.textContent)){ |
1255 | | - if(!/#\S+/i.test(target.href)) target.href+=/#/i.test(target.href)?extCode(target.parentNode):('#'+extCode(target.parentNode)); |
1256 | | - } else { |
1257 | | - var j = 0, |
1258 | | - maxParent = 5, |
1259 | | - parent = target; |
1260 | | - while(j<maxParent) { |
1261 | | - j++; |
1262 | | - parent = parent.parentNode; |
1263 | | - if(parent.tagName=="TR") { |
1264 | | - if(codeRule.test(parent.nextElementSibling.textContent)) { |
1265 | | - parent=parent.nextElementSibling; |
| 1256 | + } else if(target.nextSibling&&/^\s*[a-z\d]{4}\s*$/.test(target.nextSibling.textContent)){ |
| 1257 | + target.href+='#'+target.nextSibling.textContent.trim(); |
| 1258 | + } else if(codeRule.test(target.parentNode.textContent)){ |
| 1259 | + if(!/#\S+/i.test(target.href)) target.href+=/#/i.test(target.href)?extCode(target.parentNode):('#'+extCode(target.parentNode)); |
| 1260 | + } else { |
| 1261 | + var j = 0, |
| 1262 | + maxParent = 5, |
| 1263 | + parent = target; |
| 1264 | + while(j<maxParent) { |
| 1265 | + j++; |
| 1266 | + parent = parent.parentNode; |
| 1267 | + if(parent.tagName=="TR") { |
| 1268 | + if(codeRule.test(parent.nextElementSibling.textContent)) { |
| 1269 | + parent=parent.nextElementSibling; |
| 1270 | + target.href+='#'+extCode(parent); |
| 1271 | + break; |
| 1272 | + } |
| 1273 | + } else if(codeRule.test(parent.textContent)) { |
1266 | 1274 | target.href+='#'+extCode(parent); |
1267 | 1275 | break; |
1268 | 1276 | } |
1269 | | - } else if(codeRule.test(parent.textContent)) { |
1270 | | - target.href+='#'+extCode(parent); |
1271 | | - break; |
| 1277 | + if(parent==document.body) break; |
1272 | 1278 | } |
1273 | | - if(parent==document.body) break; |
1274 | 1279 | } |
1275 | 1280 | } |
1276 | | - } |
1277 | | - }); |
1278 | | - } |
1279 | | - for (i = 0, k = imgs.length; i < k; i++) { |
1280 | | - let src; |
1281 | | - for(let imgReg of config.imgRegs){ |
1282 | | - src = imgs[i].src.replace(imgReg[0], imgReg[1]); |
1283 | | - if(src != imgs[i].src)imgs[i].src = src; |
1284 | | - if(imgs[i].dataset.src){ |
1285 | | - src=imgs[i].dataset.src.replace(imgReg[0], imgReg[1]); |
1286 | | - if(src != imgs[i].dataset.src)imgs[i].dataset.src = src; |
| 1281 | + }); |
| 1282 | + } |
| 1283 | + for (i = 0, k = imgs.length; i < k; i++) { |
| 1284 | + let src; |
| 1285 | + for(let imgReg of config.imgRegs){ |
| 1286 | + src = imgs[i].src.replace(imgReg[0], imgReg[1]); |
| 1287 | + if(src != imgs[i].src)imgs[i].src = src; |
| 1288 | + if(imgs[i].dataset.src){ |
| 1289 | + src=imgs[i].dataset.src.replace(imgReg[0], imgReg[1]); |
| 1290 | + if(src != imgs[i].dataset.src)imgs[i].dataset.src = src; |
| 1291 | + } |
1287 | 1292 | } |
1288 | 1293 | } |
1289 | | - } |
1290 | | - seriousReplace(commArea); |
| 1294 | + seriousReplace(commArea); |
| 1295 | + },2); |
1291 | 1296 | } |
1292 | 1297 |
|
1293 | 1298 | function processObj(obj){ |
|
1442 | 1447 | source.connect(audioContext.destination); |
1443 | 1448 | source.start(0); |
1444 | 1449 | } |
1445 | | - var ttss=["有家,有爱,有欧派","未被穿过的胖次是没有价值的","巨乳只有下垂的未来","男人变态有什么错","为什么你会这么熟练啊","德国的科学技术是世界第一","在虚构的故事当中寻求真实感的人脑袋一定有问题"," 胸部什么的,明明只是装饰","勇士喜欢巨乳有什么错","哥哥让开!这样我杀不了那家伙","我们的宇宙充满了质子,中子,电子,还有奶子","有个能干的妹妹真好","只要可爱就算是男孩子也没关系","道歉時露出胸部是常識","我就是叫紫妈怎么了 有本事突然从我背后出现 把我的脸按在键盘上aqswdectfrvtghunijopioijohnuygbyfvtcdesxwedrfvtbguyhiumjiuyvftrssexrybtgnyuhm","反基复奶","皮皮虾我们走","哼!都怪你,也不哄哄人家,人家超想哭的,捶你胸口,老公!大坏蛋!咩QAQ 捶你胸口,你好讨厌!要抱抱嘤嘤嘤,哼,人家拿小拳拳捶你胸口!大坏蛋,打死你"]; |
| 1450 | + var ttss=["有家,有爱,有欧派","未被穿过的胖次是没有价值的","巨乳只有下垂的未来","男人变态有什么错","为什么你会这么熟练啊","德国的科学技术是世界第一","在虚构的故事当中寻求真实感的人脑袋一定有问题"," 胸部什么的,明明只是装饰","勇士喜欢巨乳有什么错","哥哥让开!这样我杀不了那家伙","我们的宇宙充满了质子,中子,电子,还有奶子","有个能干的妹妹真好","只要可爱就算是男孩子也没关系","道歉時露出胸部是常識","我就是叫紫妈怎么了 有本事突然从我背后出现 把我的脸按在键盘上aqswdectfrvtghunijopioijohnuygbyfvtcdesxwedrfvtbguyhiumjiuyvftrssexrybtgnyuhm","反基复萌,反屌复奶","哼!都怪你,也不哄哄人家,人家超想哭的,捶你胸口,老公!大坏蛋!咩QAQ 捶你胸口,你好讨厌!要抱抱嘤嘤嘤,哼,人家拿小拳拳捶你胸口!大坏蛋,打死你"]; |
1446 | 1451 | var ttsRand=Math.floor(Math.random()*ttss.length); |
1447 | 1452 | var tts=ttss[ttsRand]; |
1448 | 1453 | var sUrl = "http://tts.baidu.com/text2audio?lan=zh&ie=UTF-8&spd=5&text="+tts;//`http://tts.baidu.com/text2audio?lan=zh&ie=UTF-8&spd=5&text=${tts}`; |
|
0 commit comments