Skip to content

Commit 86f017b

Browse files
committed
fix
1 parent 227406a commit 86f017b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

HacgGodTurn.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,19 +350,19 @@
350350
if(feiZao.parentNode)feiZao.parentNode.removeChild(feiZao);
351351
}
352352
var has8=false;
353-
var comm,comms=document.querySelectorAll("span.fn");
353+
var comm,comms=document.querySelectorAll("span.fn"),commId;
354354
for(i=0;i<comms.length;i++){
355355
comm=comms[i];
356356
if(comm.innerHTML == "\u5c0f\u0038\u9171"){
357357
has8=true;
358-
comm.innerHTML=comm.innerHTML.replace(/\u5c0f\u0038\u9171/,'<a name=\"pa8\" style="color:#999;font-weight:normal;">\u5c0f\u0038\u9171<\/a>');
358+
commId=comm.parentNode.parentNode.parentNode.id;
359359
break;
360360
}
361361
}
362362
if(has8){
363363
var header=document.querySelector("div.entry-meta");
364364
if(header){
365-
header.innerHTML+="</br> <a href=\"#pa8\">\u2605\u0020\u76f4\u8fbe\u8865\u6863\u59ec\u0020\u2605<\/a>";
365+
header.innerHTML+="</br> <a href=\"#"+commId+"\">\u2605\u0020\u76f4\u8fbe\u8865\u6863\u59ec\u0020\u2605<\/a>";
366366
}
367367
}
368368
if(unsafeWindow.quote){

0 commit comments

Comments
 (0)