Skip to content

Instantly share code, notes, and snippets.

@mhawksey
Created January 29, 2014 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhawksey/8697742 to your computer and use it in GitHub Desktop.
Save mhawksey/8697742 to your computer and use it in GitHub Desktop.
Gmail 'sneak peak' bookmarklet. Add as a browser shortcut and when in Gmail clicking it will give basic extended popup on messages. Made with http://benalman.com/projects/run-jquery-code-bookmarklet/
javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a.createElement("script");c.type="text/javascript";c.src="//ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,"2.0.3",function($,L){$('span.y2').each(function(){$(this).attr('title', $(this).text())});});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment