1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cool bookmarklet to highlight nofollow links on page

Discussion in 'General Scripting Chat' started by paincake, Nov 5, 2010.

  1. paincake

    paincake Power Member

    Joined:
    Aug 18, 2010
    Messages:
    716
    Likes Received:
    3,099
    Home Page:
    I know there are browser extensions that highlight nofollow links, but i'm using chrome and the only extension for that sucks. I found this bookmarklet and I wanna share it with everyone. Just create a new bookmark in your browser and enter this into URL field:
    Code:
    javascript:function highlightNofollow(){var newStyle=document.createElement('style');newStyle.type='text/css';newStyle.appendChild(document.createTextNode('a[rel~=nofollow]{border:1px dashed #852! important;background-color:#fcc! important;}'));document.getElementsByTagName('head')[0].appendChild(newStyle);};highlightNofollow();
    Now every time you click on this bookmark, it will highlight all nofollow links in the current page.