Skip to content

Instantly share code, notes, and snippets.

@Victa
Created November 27, 2012 13:18
Show Gist options
  • Save Victa/4154185 to your computer and use it in GitHub Desktop.
Save Victa/4154185 to your computer and use it in GitHub Desktop.
Gisties Bookmarklet
void ((function(){
var parser = document.createElement('a');
parser.href = document.URL;
if(parser.host === 'gist.github.com'){
var id = parser.pathname.split('/').filter(function(e){return e;})[0];
var user = document.querySelector('#owner .name a').innerText;
window.location = 'http://lite.gisti.es/'+user+'/'+id;
}
})());
<a href="javascript:void((function(){var parser=document.createElement('a');parser.href=document.URL;if(parser.host==='gist.github.com'){var id=parser.pathname.split('/').filter(function(e){return e})[0];var user=document.querySelector('#owner .name a').innerText;window.location='http://lite.gisti.es/'+user+'/'+id}})());">Open in Gisties</a>
@Victa
Copy link
Author

Victa commented Dec 9, 2012

Et voilà un petit commentaire de test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment