|
78 | 78 | // @include http*://sleazyfork.org/*/scripts/* |
79 | 79 | // @include http*://greasyfork.org/*/scripts/* |
80 | 80 | // @include http*://*yfork.org/*/forum/*discussion* |
81 | | -// @version 3.22.09 |
| 81 | +// @version 3.22.10 |
82 | 82 | // @grant GM_notification |
83 | 83 | // @grant GM_xmlhttpRequest |
84 | 84 | // @grant GM_setClipboard |
85 | 85 | // @grant GM_setValue |
86 | 86 | // @grant GM_getValue |
87 | 87 | // @grant unsafeWindow |
88 | 88 | // @run-at document-end |
89 | | -// @require https://greasyfork.org/scripts/23522/code/od.js?version=173726 |
| 89 | +// @require https://greasyfork.org/scripts/23522/code/od.js?version=174698 |
90 | 90 | // @require https://cdn.jsdelivr.net/crypto-js/3.1.2/components/core-min.js |
91 | 91 | // @require https://cdn.jsdelivr.net/crypto-js/3.1.2/rollups/aes.js |
92 | 92 | // @updateURL https://greasyfork.org/scripts/23316/code/HacgGodTurn.user.js |
|
1293 | 1293 | } |
1294 | 1294 | obj.parentNode.removeChild(obj.nextSibling); |
1295 | 1295 | } |
1296 | | - var data=processTxt(curData); |
| 1296 | + let data=processTxt(curData); |
1297 | 1297 | if(curData != data){ |
1298 | | - var newData = document.createElement("p"); |
1299 | | - obj.parentNode.replaceChild(newData, obj); |
1300 | | - newData.outerHTML=data; |
| 1298 | + let curObj=obj; |
| 1299 | + setTimeout(function(){ |
| 1300 | + var newData = document.createElement("p"); |
| 1301 | + curObj.parentNode.replaceChild(newData, curObj); |
| 1302 | + newData.outerHTML=data; |
| 1303 | + },1); |
| 1304 | + }else if(/B|STRONG/.test(obj.parentNode.tagName)){ |
| 1305 | + let allStrongs=[]; |
| 1306 | + var next=obj.parentNode.nextSibling; |
| 1307 | + while(next){ |
| 1308 | + if(/B|STRONG/.test(next.tagName)){ |
| 1309 | + allStrongs.push(next); |
| 1310 | + curData+=next.innerHTML; |
| 1311 | + next=next.nextSibling; |
| 1312 | + }else{ |
| 1313 | + break; |
| 1314 | + } |
| 1315 | + } |
| 1316 | + data=processTxt(curData); |
| 1317 | + if(curData != data){ |
| 1318 | + let curObj=obj; |
| 1319 | + setTimeout(function(){ |
| 1320 | + allStrongs.forEach(function(item){ |
| 1321 | + item.style.display="none"; |
| 1322 | + }); |
| 1323 | + var newData = document.createElement("p"); |
| 1324 | + curObj.parentNode.replaceChild(newData, curObj); |
| 1325 | + newData.outerHTML=data; |
| 1326 | + },1); |
| 1327 | + } |
1301 | 1328 | } |
1302 | 1329 | } |
1303 | 1330 | } |
|
1467 | 1494 | lastSign=direction; |
1468 | 1495 | } |
1469 | 1496 | } |
1470 | | - }; |
| 1497 | + } |
1471 | 1498 | document.addEventListener("touchstart", function(e) { |
1472 | 1499 | lastX=e.changedTouches[0].clientX; |
1473 | 1500 | lastY=e.changedTouches[0].clientY; |
|
0 commit comments