Skip to content

Instantly share code, notes, and snippets.

@Mottie
Last active April 3, 2021 12:08
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Mottie/0e7a119ce0e90d054fef to your computer and use it in GitHub Desktop.
Save Mottie/0e7a119ce0e90d054fef to your computer and use it in GitHub Desktop.
Useful Bookmarklets

Change Last URL Value | Fitocracy (prop all) | Printliminator

Installing external Bookmark files:

Chrome/Safari?

  • Right-click on the bookmarks bar and select "Bookmark manager".
  • Click on the "organize dropdown" and choose "Import bookmarks from HTML file...".
  • Select the file and click the "Open" button.
  • The new bookmarks will be added to an "Imported" folder.
  • The icon won't be seen within the manager, but if you examine the bookmarks bar you'll see the icon.

Firefox

  • Open the Bookmarks Toolbar
    • Press Ctrl+Shift+B, or
    • Click on the hamburger menu (upper right), click on the bookmark star icon, then click on "Bookmarks Toolbar".
  • A new window should open.
  • Click on the "Import and Backup" dropdown & select "Import Bookmarks from HTML...".
  • Select the file and click the "Open" button.
  • It will appear that nothing happened... just click on the "Bookmarks Menu" folder in the left pane, and the bookmarks should appear in the main window.
  • Drag & drop the bookmarks into the "Bookmarks Toolbar" to add them.

2014-06-18 17_34_14-updating page selector and row count information when using ajax issue 649

How to Use

  • I use these bookmarklets all the time while browsing issues on GitHub.

  • Clicking on the bookmarklet will change the index of the last number in the URL.

  • For example, if the url looks like this https://github.com/:user/:repo/issues/15:

    • Clicking on the first bookmarklet to go back one issue: https://github.com/:user/:repo/issues/14.
    • Clicking on the second bookmarklet to go forward one issue: https://github.com/:user/:repo/issues/16.
    • And using the third will go forward 10 issues: https://github.com/:user/:repo/issues/25.
  • The bookmarklets work for any site, but will only increase or decrease the value of the last number in the url. So if the url ends in a sha or comment number, it will modify that last value... which really isn't useful.

Customizing

  • To modify the amount the bookmarklet changes the url index, simply change the value of IB within the javascript in the link HREF

    <DT><A HREF="javascript:(function(){%20var%20e,s;%20IB=-1;%20function%20isDigit(c)...
    
    • IB=-1 in the code above decreases the url index by one.
    • The other bookmarklets are simply copies of this one with IB=1 and IB=10 respectively.

To install:

  • Follow the directions at the top of this readme specific to your browser.
  • Import the "Change-last-url-value.html" file to add the three bookmarklets with icons.

Source:

The original bookmarklet was copied from this AmeriCommerce website.

2015-08-05 17_57_22-bookmark manager

How to Use

  • When logged in to Fitocracy and looking at the feed page, you want to encourage all your friends to keep up the great work by giving them Props!
  • This bookmarklet targets all loaded "Prop" links on the page to make it easier to give all those friends a little love.
  • Just scroll down to load how ever many feed entries you want to prop, and click the bookmarklet just once. Clicking it multiple times won't hurt anything either.
  • There is nothing to customize in this bookmarklet.

To install:

  • Follow the directions at the top of this readme specific to your browser.
  • Import the the "Fitocracy-prop-all.html" file to add the bookmarklet with custom icon.

printliminator

How to Use

  • If you don't know about Printliminator, it's basically a bookmarklet that lets you remove items from the page before printing.
  • You can find more information about it here: https://css-tricks.com/examples/ThePrintliminator/ although the YouTube video doesn't show the most recent version.
  • This file adds an icon copied from the Printliminator UI; I only added it here because Chrome would otherwise show a generic new document icon for pretty much all bookmarklets.

To install:

  • Follow the directions at the top of this readme specific to your browser.
  • Import the "Printliminator.html" file to add the bookmarklet with custom icon.
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><A HREF="javascript:(function(){%20var%20e,s;%20IB=-1;%20function%20isDigit(c)%20{%20return%20(%220%22%20<=%20c%20&&%20c%20<=%20%229%22)%20}%20L%20=%20location.href;%20LL%20=%20L.length;%20for%20(e=LL-1;%20e>=0;%20--e)%20if%20(isDigit(L.charAt(e)))%20{%20for(s=e-1;%20s>=0;%20--s)%20if%20(!isDigit(L.charAt(s)))%20break;%20break;%20}%20++s;%20if%20(e<0)%20return;%20oldNum%20=%20L.substring(s,e+1);%20newNum%20=%20%22%22%20+%20(parseInt(oldNum,10)%20+%20IB);%20while%20(newNum.length%20<%20oldNum.length)%20newNum%20=%20%220%22%20+%20newNum;%20location.href%20=%20L.substring(0,s)%20+%20newNum%20+%20L.slice(e+1);%20})();" ADD_DATE="1257995008" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAWklEQVQ4jWNkYGBgiJ8i8J+BDLAw5wMjI7maYYCJEs2D3IAF2e8ZFmS/J88AYjTCAEYsENKcMFWQsAtIAVjTAbIr0G1EB1hdQEgTQReQAgZxQiIWMDIwUJadASvGHReRAe+EAAAAAElFTkSuQmCC"></A>
<DT><A HREF="javascript:(function(){%20var%20e,s;%20IB=1;%20function%20isDigit(c)%20{%20return%20(%220%22%20<=%20c%20&&%20c%20<=%20%229%22)%20}%20L%20=%20location.href;%20LL%20=%20L.length;%20for%20(e=LL-1;%20e>=0;%20--e)%20if%20(isDigit(L.charAt(e)))%20{%20for(s=e-1;%20s>=0;%20--s)%20if%20(!isDigit(L.charAt(s)))%20break;%20break;%20}%20++s;%20if%20(e<0)%20return;%20oldNum%20=%20L.substring(s,e+1);%20newNum%20=%20%22%22%20+%20(parseInt(oldNum,10)%20+%20IB);%20while%20(newNum.length%20<%20oldNum.length)%20newNum%20=%20%220%22%20+%20newNum;%20location.href%20=%20L.substring(0,s)%20+%20newNum%20+%20L.slice(e+1);%20})();" ADD_DATE="1257995008" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAXElEQVQ4jWNkYGBgiJ8i8J+BDLAw5wMjI7maYYCJEs1DxIAF2e8ZFmS/p9wFuAzBiAV8tjEwMDAkTBUkzwW4AMF0gOwidNtJcgE2zUS5gBAYAgmJEGBkYKAsOwMArBcdFyaVKiYAAAAASUVORK5CYII="></A>
<DT><A HREF="javascript:(function(){%20var%20e,s;%20IB=10;%20function%20isDigit(c)%20{%20return%20(%220%22%20<=%20c%20&&%20c%20<=%20%229%22)%20}%20L%20=%20location.href;%20LL%20=%20L.length;%20for%20(e=LL-1;%20e>=0;%20--e)%20if%20(isDigit(L.charAt(e)))%20{%20for(s=e-1;%20s>=0;%20--s)%20if%20(!isDigit(L.charAt(s)))%20break;%20break;%20}%20++s;%20if%20(e<0)%20return;%20oldNum%20=%20L.substring(s,e+1);%20newNum%20=%20%22%22%20+%20(parseInt(oldNum,10)%20+%20IB);%20while%20(newNum.length%20<%20oldNum.length)%20newNum%20=%20%220%22%20+%20newNum;%20location.href%20=%20L.substring(0,s)%20+%20newNum%20+%20L.slice(e+1);%20})();" ADD_DATE="1257995008" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAXElEQVQ4jWNkYGBgiJ8i8J+BDLAw5wMjI7maYYCJEs1DxIAF2e8ZFmS/p9wFuAzBiAV8tjEwMDAkTBUkzwW4AMF0gOwidNtJcgE2zUS5gBAYAgmJEGBkYKAsOwMArBcdFyaVKiYAAAAASUVORK5CYII=">10</A>
</DL>
<!DOCTYPE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<DL>
<DT><A HREF="http://www.fitocracy.com/profile/">Fitocracy</A></DT>
<DT><A HREF="javascript:$('a%5Btitle=%22Give%20props%22%5D').not('.has_propped').click();" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABHVBMVEX///8ZXwAzgVYtYCcjZycmZSUsZCno7uje598zg1Qxg1IwgU4ufU0tekcmbC8rXiX19/fu8vDq7+zg6uK2y7lnl2sxgVQugEwrd0IlaiwjZiUjYiInXSH4+vj09/Ts8ezo8Onk6+TE1sjA1cSZwKeLtZiPtJORspOMsZFom3NmjGVfjWFSg1NGhlJOe00ufEoqcz4ocDgmbTQ0aTEjZSYpYyUnXyMmWSD7/PvX5tzY4tnN39LL2s7J28zD2sq918e8zLyzxLStx7GexK6fxK2lwqiZuJqStpqEro5+qIV0p4NinndvmXBQlWxMkWRdiVxQiVs9hlVOhVIxfVIxf1E6fko1fUg7fUdBe0Q4ekIwdDoibzQpcDMhbS8oYyPcVvdDAAAA20lEQVQY00WLVW4DQQBDnXZ2lpkhzMxJmZmZ2/sfo7ORorwPy36S8eytrfA8BS+SKIrS7XEFDElSoMiy74v7ADIZyLKCvt+/O7neXAgWKlT1cQ+VKpspTARBNZsrXC1FgMHbdqlpG8vLAMOudf59kXNKqRBehxh1841fV3hogmG/j6B9CkdaLVve3bj8Ke98aQi1U77B846Tt2tmPQxByFMRQoeQNo+tD0IwiaIbq1B33TOz2J5EMWKO4+4PTMOwDjusxphNKaXjXqvVG1M6/UswT/R1hq6nMUvm/0YoGcNgdfNtAAAAAElFTkSuQmCC">Fitocracy Prop All</A></DT>
</DL>
<!DOCTYPE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<DL>
<DT><A HREF="https://css-tricks.com/examples/ThePrintliminator/">Printliminator</A></DT>
<DT><A HREF="javascript:/*PRINTLIMINATOR*/(function(){function loadScript(a,b){var c=document.createElement('script');c.type='text/javascript';c.src=a;var d=document.getElementsByTagName('head')[0],done=false;c.onload=c.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=='loaded'||this.readyState=='complete')){done=true;b()}};d.appendChild(c)}loadScript('//ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js?ver=1.3.2',function(){loadScript('https://css-tricks.com/examples/ThePrintliminator/js/printliminator.js',function(){printlimator()})})})()" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAC/VBMVEUAAABYb293Ojr29vbLy8v6+frIyMjOzs7////9/f34+Pjn5uahoZ/x8fHY2NilpaPvXV2dnJzp6enxX1/oWFjlVlbhJCTz9PTV1dXu7u7R0dHy8vKqDAzj4+Pc3NztW1ulpaWCgoLg4ODqWVnbICCmDAznJyeuDQ3s7OyiCwuVAgLr6+vJFxe4EBCxDw+mpqb0jY10kIrvWVm8ExOYCwv7///4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5xAPsNMwwuLsZ9x8KOIBAAoRnR16c+cKR6+fQdsWNDeUKCweASD3vUHmG8i8FgSCjfAMKLyKgLiKV39u0oKZfJEuLjZU73pwxBTbnvJDMkxCfIykt0I+5wcNCyZUsAjPD84VdDpRKJTCYJuziKQUMxRp0Lk8jgGUnoVZ0+3JlkB2MT4Ibrh28OFUlB1OD736JGIpFIpaGbh+vDFX8AJzF/eG4VTySS1ojE8NNXm+9KsahGKhWJqkAcbIuAtbX1kjMF+duqhDwQvLCc5n/9dIeJYM/jVeXuKDjT0toagYXafE21kxCEMGzy2db1OzvZgwd7obB6W77WHwFogdajtxMIoXhw838bLBbC3snJY2c/awAWqIVG0Vt80t/i3/zHiXub9ugRANSCqR69PYz7BoSThxb2CDSxaIIL8Th/eIBf8Fd7+R8Re2gXWuAAr9/UcdZNGsriiLYffheAeZkPCE3NigCZt/8FOLjnB6IW6ysAAAAASUVORK5CYII=">Printliminator</A></DT>
</DL>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment