nofollow bookmarklet
Code: Alles auswählen
javascript:var a=document.getElementsByTagName('a');function nfc(){for(var i=0;i<a.length;i++){if(a[i].rel.toLowerCase()=='nofollow') {a[i].style.backgroundColor='#f00';a[i].style.border='2px solid #000';a[i].style.color='#fff';}}}nfc();
machen aus text mit https://www. ... eine link
Code: Alles auswählen
javascript:(function(){var%20D=document;%20D.body.normalize();%20F(D.body);%20function%20F(n){var%20u,A,M,R,c,x;%20if(n.nodeType==3){%20u=n.data.search(/https?\:\/\/[^\s]*[^.,%22>\s\)\]]/); if(u>=0) { M=n.splitText(u); R=M.splitText(RegExp.lastMatch.length); A=document.createElement(%22A%22); A.href=M.data; A.appendChild(M); R.parentNode.insertBefore(A,R); } }else if(n.tagName!=%22STYLE%22 && n.tagName!=%22SCRIPT%22 && n.tagName!=%22A%22)for(c=0;x=n.childNodes[c];++c)F(x); } })();