Created
September 23, 2020 05:43
-
-
Save dsjt/9bf51788db5d65d6dd021bfcd149fa4f to your computer and use it in GitHub Desktop.
CSS無効化ブックマークレット
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){var getText=function(node){var f=function(n,strs){if(n.nodeType==3){strs.push(n.data);}else if(n.nodeType==1){for(var m=n.firstChild;m!==null;m=m.nextSibling){f(m,strs);}}};var strings=[];f(node,strings);return strings.join('');};var reps=[];var anchors=document.getElementsByTagName('a');for(var i=0;i<anchors.length;i++){var a=anchors[i];var text=getText(a);if(text){reps.push({'a':a,'t':document.createTextNode(text)});}}for(var j=0;reps.length;j++){reps[j]['a'].parentNode.replaceChild(reps[j]['t'],reps[j]['a']);}})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment