Useful Bookmarklets

A bookmarklet that that creates a link in Markdown format for the current page.

if(window.location.href.indexOf('https') !== -1) {
  navigator.clipboard.writeText('['+document.title+']('+window.location.href+')');
} else {
  prompt('Markdown in for this page:','['+document.title+']('+window.location.href+')');
}

To download it, drag this link into your bookmarks toolbar.

Markdown Link

Get RSS Feed

A bookmarklet that locates and copies the feed url from the current page:

d=document;
el=d.getElementsByTagName('link');
g=false;
for(i=0;i<el.length;i++) {
  if(el[i].getAttribute('rel').indexOf('alternate')!=-1){
    ty=el[i].getAttribute('type');
    if(ty.indexOf('application/rss+xml') != -1 || ty.indexOf('text/xml') != -1 || ty.indexOf('application/atom+xml') != -1){
      g=true;
      h=el[i].getAttribute('href');
      if(window.location.href.indexOf('https') !== -1) {
        navigator.clipboard.writeText(h);
      } else {
        prompt('Feed url:', h);
      }
    }
  }
}
if(!g){
  window.alert('Could not find the RSS Feed');
}

To download it, drag this link into your bookmarks toolbar.

Get Rss Feed

Archive Org

A bookmarklet that looks up the current page in Achive.orgs's WayBack Machine.

(function(){
    window.location = "https://web.archive.org/web/*/" + window.location;
})()

To download it, drag this link into your bookmarks toolbar.

a href="javascript:(function()%7B%0A%20%20%20%20window.location%20%3D%20%22https%3A%2F%2Fweb.archive.org%2Fweb%2F*%2F%22%20%2B%20window.location%3B%0A%7D)()">archive.org

The source for a bookmarklet that takes copied text from the clipboard and uses it as the search term for a Libgen search.

(function(){
    const selection = window.getSelection().toString();
    window.open("http://libgen.rs/search.php?req=" + selection + "&lg_topic=libgen&open=0&view=simple&res=25&phrase=1&column=def");
})()

To download it, drag this link into your bookmarks toolbar.

a href="javascript:(function()%7B(function()%7Bconst%20selection%20%3D%20window.getSelection().toString()%3Bwindow.open(%22http%3A%2F%2Flibgen.rs%2Fsearch.php%3Freq%3D%22%20%2B%20selection%20%2B%20%22%26lg_topic%3Dlibgen%26open%3D0%26view%3Dsimple%26res%3D25%26phrase%3D1%26column%3Ddef%22)%3B%7D)()%7D)()">archive.org

Google Sheets CSV URL

A bookmarklet that takes a Google Sheets URL and creates the CSV export URL for it.

(function(){
    const r = /https:\/\/docs\.google\.com\/spreadsheets\/d\/(.*)\//ig;
    const match = r.exec(window.location.href);
    navigator.clipboard.writeText(`https://docs.google.com/spreadsheets/d/${match[1]}/export?format=csv&id=${match[1]}`);
})()

To download it, drag this link into your bookmarks toolbar.

Google Sheets CSV URL

Search Feedly

A bookmarklet that search the current site in Feedly.

(function(){
    window.open("https://feedly.com/i/discover/sources/search/feed/" + encodeURI(window.location.href));
})()

To download it, drag this link into your bookmarks toolbar.

Search Feedly

Tools