Skip to content

Commit e13cba3

Browse files
committed
fix
1 parent 64c3bf8 commit e13cba3

2 files changed

Lines changed: 35 additions & 8 deletions

File tree

HacgGodTurn/HacgGodTurn.user.js

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@
7878
// @include http*://sleazyfork.org/*/scripts/*
7979
// @include http*://greasyfork.org/*/scripts/*
8080
// @include http*://*yfork.org/*/forum/*discussion*
81-
// @version 3.22.09
81+
// @version 3.22.10
8282
// @grant GM_notification
8383
// @grant GM_xmlhttpRequest
8484
// @grant GM_setClipboard
8585
// @grant GM_setValue
8686
// @grant GM_getValue
8787
// @grant unsafeWindow
8888
// @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
9090
// @require https://cdn.jsdelivr.net/crypto-js/3.1.2/components/core-min.js
9191
// @require https://cdn.jsdelivr.net/crypto-js/3.1.2/rollups/aes.js
9292
// @updateURL https://greasyfork.org/scripts/23316/code/HacgGodTurn.user.js
@@ -1293,11 +1293,38 @@
12931293
}
12941294
obj.parentNode.removeChild(obj.nextSibling);
12951295
}
1296-
var data=processTxt(curData);
1296+
let data=processTxt(curData);
12971297
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+
}
13011328
}
13021329
}
13031330
}
@@ -1467,7 +1494,7 @@
14671494
lastSign=direction;
14681495
}
14691496
}
1470-
};
1497+
}
14711498
document.addEventListener("touchstart", function(e) {
14721499
lastX=e.changedTouches[0].clientX;
14731500
lastY=e.changedTouches[0].clientY;

HacgGodTurn/od.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)