Bookmarklet修复编程随想评论区

Bookmarklet修复编程随想评论区


javascript:(function(){let r=new XMLHttpRequest();r.open("GET",location.origin+location.pathname,false);r.send(null);let h=new DOMParser().parseFromString(r.responseText,"text/html");for(let e of h.getElementsByTagName('script')){e.innerHTML=e.innerHTML.replace(/getParam\(\"postID\"\)/g,'getParam("po")')}document.open();document.write(`${new XMLSerializer().serializeToString(h.doctype)}\n${h.documentElement.outerHTML}`);document.close()})()

Report Page