Author Topic: Useful bookmarklets  (Read 286 times)

BoL

  • Inner Core
  • Hero Member
  • *
  • Posts: 792
    • View Profile
Useful bookmarklets
« on: August 24, 2018, 04:39:07 PM »
I'm just tidying up my bookmarks and thought I'd share these which may be of use, feel free to add others you use

Visual Event - Highlight all events on a page
javascript:(function()%20{var%20protocol%20=%20window.location.protocol%20===%20'file:'%20?'http:'%20:%20'';var%20url%20=%20protocol+'//www.sprymedia.co.uk/VisualEvent/VisualEvent_Loader.js';if(%20typeof%20VisualEvent!='undefined'%20)%20{if%20(%20VisualEvent.instance%20!==%20null%20)%20{VisualEvent.close();}else%20{new%20VisualEvent();}}else%20{var%20n=document.createElement('script');n.setAttribute('language','JavaScript');n.setAttribute('src',url+'?rand='+new%20Date().getTime());document.body.appendChild(n);}})();

View Source - Show the source of a page (thanks to th3core)
javascript:(function(){%20function%20htmlEscape(s){s=s.replace(/&/g,'&amp;');s=s.replace(/>/g,'&gt;');s=s.replace(/</g,'&lt;');return%20s;}%20x=window.open();%20x.document.write('<pre>'%20+%20htmlEscape('<html>\n'%20+%20document.documentElement.innerHTML%20+%20'\n</html>'));%20x.document.close();%20})();

G Serp Ranks - Prepend organic SERPs with a rank
javascript:(function()%20{var%20h3%20=%20document.getElementsByClassName('r');%20var%20len%20=%20h3.length;%20for(var%20rank%20=%200;rank%20<%20len;rank++)%20{var%20str%20=%20(rank%20+%201)%20+%20'%20&mdash;%20'%20+%20h3[rank].innerHTML;%20h3[rank].innerHTML%20=%20str;%20}})();

ukgimp

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1948
    • View Profile
Re: Useful bookmarklets
« Reply #1 on: August 24, 2018, 04:59:31 PM »
Similarweb

javascript:location.href='https://www.similarweb.com/website/'+encodeURIComponent(location.hostname + location.pathname)

BoL

  • Inner Core
  • Hero Member
  • *
  • Posts: 792
    • View Profile
Re: Useful bookmarklets
« Reply #2 on: December 08, 2018, 12:46:43 PM »
Add jQuery to page for browser console use
javascript:(function(e,s){e.src=s;e.onload=function(){jQuery.noConflict();console.log('jQuery injected')};document.head.appendChild(e);})(document.createElement('script'),'//code.jquery.com/jquery-latest.min.js')