Skip to content

Instantly share code, notes, and snippets.

View andzi's full-sized avatar

andzil andzi

View GitHub Profile
div.head, div.foot {
display:none;
}
.page {
width:99%;
}
.body {
background:url(data:image/png;
base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAG0lEQVQIW2OMq7zlw4ADMIIkF7WrbcEmP+gkAarWGgXyq5CNAAAAAElFTkSuQmCC) repeat;
border-top:0;
@andzi
andzi / historious
Last active December 16, 2015 02:00
Historio.us bookmarklet
javascript:(function%20()%20{var%20d=document;historious_bu='//historio.us/';historious_key='w16pqfkr';historious_src=d.getElementsByTagName('html')[0].innerHTML;hs%20=%20d.createElement('script');hs.type%20=%20'text/javascript';hs.src%20=%20historious_bu+'media/js/bookmarklet.js?x='+(Math.random());d.body.appendChild(hs);})();
@andzi
andzi / GoogleReaderSubsribe
Last active December 15, 2015 16:08
Google Reader Subsribe bookmarklet
javascript:var%20b=document.body;var%20GR________bookmarklet_domain='http://www.google.com';if(b&&!document.xmlVersion){void(z=document.createElement('script'));void(z.src='http://www.google.com/reader/ui/subscribe-bookmarklet.js');void(b.appendChild(z));}else{location='http://www.google.com/reader/view/feed/'+encodeURIComponent(location.href)}
@andzi
andzi / gist:5250395
Created March 26, 2013 23:53
Bookmarks and other Google products Google Bookmarks currently supports Google Maps, Google Toolbar, and Google Web Search. Items you bookmark or star in any of these products will appear on your Google Bookmarks home page, where you can add labels. https://support.google.com/bookmarks/answer/176587?hl=en
javascript:(function(){var%20a=window,b=document,c=encodeURIComponent,d=a.open("http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk="+c(b.location)+"&title="+c(b.title),"bkmk_popup","left="+((a.screenX||a.screenLeft)+10)+",top="+((a.screenY||a.screenTop)+10)+",height=420px,width=550px,resizable=1,alwaysRaised=1");a.setTimeout(function(){d.focus()},300)})();
@andzi
andzi / bookmarking-with-gmail.js
Created February 28, 2013 15:31
http://googlesystem.blogspot.com/2005/12/bookmarking-with-gmail-gmail-this.html http://www.lifehacker.com/software/hack-attack/hack-attack-bookmarking-with-gmail-141102.php Lifehacker.com shows how to use GMail as a bookmarking tool. Of course, it's easier to just use del.icio.us, but many GMail fans will love this trick. Clicking GMail this! cr…
javascript:popw='';Q='';x=document;y=window;if(x.selection)%20{Q=x.selection.createRange().text;}%20else%20if%20(y.getSelection)%20{Q=y.getSelection();}%20else%20if%20(x.getSelection)%20{Q=x.getSelection();}popw%20=%20y.open('https://mail.google.com/mail?view=cm&tf=0&to=&su='%20+%20escape(document.title)%20+%20'&body='%20+%20escape(Q)%20+%20escape('\n')%20+%20escape(location.href),'gmailForm','scrollbars=yes,width=680,height=510,top=175,left=75,status=no,resizable=yes');if%20(!document.all)%20T%20=%20setTimeout('popw.focus()',50);void(0);
@andzi
andzi / gmailthis
Last active April 6, 2021 14:16
Gmail this BOOKMARKLET
javascript:(function()%7Bm='http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=&su='+encodeURIComponent(document.title)+'&body='+encodeURIComponent(document.location);w=window.open(m,'addwindow','status=no,toolbar=no,width=575,height=545,resizable=yes');setTimeout(function()%7Bw.focus();%7D,%20250);%7D)();
<div id="sections"><span class="link directory-return-link" id="directory-search-return">« Return to feed discovery</span>
<div class="results"><div class="feed-result-row"><div class="feed-result-stats">​​​​​<span class="number">24</span>
<div>subscribers</div></div>
<div class="result"><a href="http://www.google.com/reader/view/feed/https%3A%2F%2Fnycopendata.socrata.com%2Fcatalog.rss" class="result-title">NYC Open Data</a>
<div class="result-snippet">New York City recently enacted the most progressive municipal Open Data legislation in the country. Visit our wiki (in beta) to collaborate with us on creating ...</div>
<div class="feed-info">https:<wbr>/<wbr>/nycopendata.socrata.<wbr>com<wbr>/catalog.rss
-
94.3 posts per week</div>