Topic Wiki

Bookmarklets are kind of a cross between bookmarks and browser extension - they don't need to be installed; they look just like bookmarks on your bookmarks bar, but instead of loading a page when you click them, they do something to/with the current page.

How to Install a Bookmarklet
1) Drag the link to your bookmarks bar.
(Alternatively, you can right click on your browser toolbar, and click "New Bookmark" (in Firefox) or "Add Page" (in Chrome), and paste the link in the "location/URL box.

2) Give it any Name you want (eg: Download Youtube)
3) Save it

How to use a Bookmarklet
Whenever you're on a the page that you want to use it, simply click on that bookmark.

« Last edited by Yehuda57 on May 23, 2017, 11:09:15 AM »

Author Topic: Useful Bookmarklets (browser bookmarks that do cool things)  (Read 4978 times)

Offline etech0

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Dec 2013
  • Posts: 9227
  • Total likes: 279
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Workflowy. You won't know what you're missing until you try it.

Offline yitzf

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Mar 2011
  • Posts: 2564
  • Total likes: 10
  • DansDeals.com Hat Tips 4
    • View Profile
Re: Useful Bookmarklets (browser bookmarks that do cool things)
« Reply #16 on: March 03, 2017, 05:07:00 PM »
Great stuff!

Google search the site you're currently on

Code: [Select]
javascript:q=""+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);if(!q)q=prompt("Search terms %5Bleave selection and box blank to list all pages%5D ...").replace(/%5Cs%5C+/g,"%252B");if(q!=null)location="http://www.google.com/search?q="+q.replace(/%5Cs+/g,"+")+"+site:"+location.hostname;void(0);

Offline yitzf

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Mar 2011
  • Posts: 2564
  • Total likes: 10
  • DansDeals.com Hat Tips 4
    • View Profile
Re: Useful Bookmarklets (browser bookmarks that do cool things)
« Reply #17 on: March 03, 2017, 05:17:24 PM »
Search Amazon for highlighted text

Code: [Select]
javascript:(function(){q=document.getSelection();if(!q){void(q=prompt('Amazon search:',''))};if(q)window.open('http://www.amazon.com/s/ref=nb_sb_noss_1?url=search-alias%3Daps&tag=p-id-20&field-keywords='+escape(q))})()

Offline etech0

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Dec 2013
  • Posts: 9227
  • Total likes: 279
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Useful Bookmarklets (browser bookmarks that do cool things)
« Reply #18 on: March 04, 2017, 09:56:46 PM »
Great stuff!

Google search the site you're currently on

Code: [Select]
javascript:q=""+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);if(!q)q=prompt("Search terms %5Bleave selection and box blank to list all pages%5D ...").replace(/%5Cs%5C+/g,"%252B");if(q!=null)location="http://www.google.com/search?q="+q.replace(/%5Cs+/g,"+")+"+site:"+location.hostname;void(0);
Search Amazon for highlighted text

Code: [Select]
javascript:(function(){q=document.getSelection();if(!q){void(q=prompt('Amazon search:',''))};if(q)window.open('http://www.amazon.com/s/ref=nb_sb_noss_1?url=search-alias%3Daps&tag=p-id-20&field-keywords='+escape(q))})()
nice!
Workflowy. You won't know what you're missing until you try it.

Offline myi

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Feb 2015
  • Posts: 15023
  • Total likes: 858
  • DansDeals.com Hat Tips 264
  • Gender: Male
    • View Profile
  • Location: Brooklyn /Israel /Lakewood /TorontoCanada!
  • Programs: 2Many2List!
Re: Useful Bookmarklets (browser bookmarks that do cool things)
« Reply #19 on: March 04, 2017, 11:05:17 PM »
Will this work on a mobile phn? Specifically a BlackBerry classic? 
Don't try to be someone else , be who you are because everyone else is taken.

Offline talmid chuchem

  • Dansdeals Platinum Elite + Lifetime Gold Elite
  • ******
  • Join Date: Oct 2014
  • Posts: 900
  • Total likes: 26
  • DansDeals.com Hat Tips 4
    • View Profile

Offline myi

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Feb 2015
  • Posts: 15023
  • Total likes: 858
  • DansDeals.com Hat Tips 264
  • Gender: Male
    • View Profile
  • Location: Brooklyn /Israel /Lakewood /TorontoCanada!
  • Programs: 2Many2List!
Re: Useful Bookmarklets (browser bookmarks that do cool things)
« Reply #21 on: May 17, 2017, 09:38:47 PM »
I just created a bookmarklet that will make a DD link from any amazon item page, and format it with the title so you can paste it into a DDF post.

Here's the code:
Code: [Select]
javascript:(function(){

    var pattern = new RegExp("(https:\/\/www.amazon.com\/).*([dg]p\/)(?:product\/)?(..........).*", "i");
    var match = location.href.match(pattern);
    var URL = match[1] + "dp/" + match[3] +"/?tag=cl03f-20&smid=ATVPDKIKX0DER";
window.prompt("Press control-c","[url="+URL+"]"+document.title+"[/url]");void(0);

})()

As a reminder, to create a bookmarklet, right click on your bookmarks bar and click "Add page" (if you're in Chrome) or "New bookmark" (Firefox).

For the Name, enter whatever you want (eg: Dan Amazon link), and for the URL/Location enter the code posted above.

Maybe a mod can add it to this thread: When Posting Amazon Deals, Please Make A DD Link

It might need a little tweaking, so let me know if you have a link that it doesn't work on.
Wow i must say that it pretty cool, i just got around to plug in all that info of yours.
 Dan should definitely place this bookmark addition to his stickied thread on the amazon deal thread.
Don't try to be someone else , be who you are because everyone else is taken.

Offline Eliyohu

  • Dansdeals Platinum Elite + Lifetime Gold Elite
  • ******
  • Join Date: Oct 2015
  • Posts: 849
  • Total likes: 59
  • DansDeals.com Hat Tips 2
    • View Profile
Re: Useful Bookmarklets (browser bookmarks that do cool things)
« Reply #22 on: May 17, 2017, 10:58:01 PM »
[quote name="cholent" post=1709021 timestamp=1490985208]
Another way to bypass paywalls is by pressing F12 when you're on the page, then pasting this into the console:

javascript:window.location="https://m.facebook.com/l.php?u="+encodeURIComponent(window.location.href);
[/quote]
Or save as a bookmark

Offline Dan

  • Administrator
  • Dansdeals Lifetime 50K Presidential Platinum Elite
  • **********
  • Join Date: May 2008
  • Posts: 52500
  • Total likes: 2109
  • DansDeals.com Hat Tips 16441
  • Gender: Male
    • View Profile
  • Location: CLE
  • Programs: UA Global Services, AA Lifetime Plat, DL Dirt, SPG Plat, Hyatt Diamond, Fairmont Lifetime Plat, Hilton Diamond, Priority Club Plat, Avis Chairman, National EE, Hertz PC
Re: Useful Bookmarklets (browser bookmarks that do cool things)
« Reply #23 on: May 17, 2017, 11:12:19 PM »
WSJ paywall bypass:
Code: [Select]
javascript:window.location="https://m.facebook.com/l.php?u="+encodeURIComponent(window.location.href);
Need to do it in Chrome Incognito.
« Last Edit: November 17, 2017, 09:58:26 AM by Dan »
Save your time, I don't answer PM. Post it in the forum and a dedicated DDF'er will get back to you as soon as possible.

Offline Dan

  • Administrator
  • Dansdeals Lifetime 50K Presidential Platinum Elite
  • **********
  • Join Date: May 2008
  • Posts: 52500
  • Total likes: 2109
  • DansDeals.com Hat Tips 16441
  • Gender: Male
    • View Profile
  • Location: CLE
  • Programs: UA Global Services, AA Lifetime Plat, DL Dirt, SPG Plat, Hyatt Diamond, Fairmont Lifetime Plat, Hilton Diamond, Priority Club Plat, Avis Chairman, National EE, Hertz PC
Re: Useful Bookmarklets (browser bookmarks that do cool things)
« Reply #24 on: May 17, 2017, 11:14:11 PM »
I just created a bookmarklet that will make a DD link from any amazon item page, and format it with the title so you can paste it into a DDF post.

Here's the code:
Code: [Select]
javascript:(function(){

    var pattern = new RegExp("(https:\/\/www.amazon.com\/).*([dg]p\/)(?:product\/)?(..........).*", "i");
    var match = location.href.match(pattern);
    var URL = match[1] + "dp/" + match[3] +"/?tag=cl03f-20&smid=ATVPDKIKX0DER";
window.prompt("Press control-c","[url="+URL+"]"+document.title+"[/url]");void(0);

})()

As a reminder, to create a bookmarklet, right click on your bookmarks bar and click "Add page" (if you're in Chrome) or "New bookmark" (Firefox).

For the Name, enter whatever you want (eg: Dan Amazon link), and for the URL/Location enter the code posted above.

Maybe a mod can add it to this thread: When Posting Amazon Deals, Please Make A DD Link

It might need a little tweaking, so let me know if you have a link that it doesn't work on.
Nice!
Save your time, I don't answer PM. Post it in the forum and a dedicated DDF'er will get back to you as soon as possible.

Offline Dan

  • Administrator
  • Dansdeals Lifetime 50K Presidential Platinum Elite
  • **********
  • Join Date: May 2008
  • Posts: 52500
  • Total likes: 2109
  • DansDeals.com Hat Tips 16441
  • Gender: Male
    • View Profile
  • Location: CLE
  • Programs: UA Global Services, AA Lifetime Plat, DL Dirt, SPG Plat, Hyatt Diamond, Fairmont Lifetime Plat, Hilton Diamond, Priority Club Plat, Avis Chairman, National EE, Hertz PC
Re: Useful Bookmarklets (browser bookmarks that do cool things)
« Reply #25 on: May 17, 2017, 11:19:43 PM »
Here's a great one from BAHayman. Makes the FFN field editable on a UA reservation after clicking on edit traveler info.

Code: [Select]
javascript:(function () { jQuery('#ctl00_ContentInfo_spanFreqFlyer').replaceWith('<table><tbody><tr><td style="vertical-align:bottom" colspan="2"></td></tr><tr style="vertical-align:bottom"><td style="padding-right:1em"><label><span id="ctl00_ContentInfo_FrequentFlyer_RewardProgType_lblField" class="Content">Program:</span><br></label><select name="ctl00$ContentInfo$FrequentFlyer$RewardProgType$cboRewardProg" id="ctl00_ContentInfo_FrequentFlyer_RewardProgType_cboRewardProg" class="Content"><option value="5">Select program</option><option value="7">United MileagePlus</option><option value="118">Adria Miles&amp;More</option><option value="113">Aegean Miles &amp; Bonus</option><option value="120">Aer Lingus Gold Circle</option><option value="8">Air Canada Aeroplan</option><option value="9">Air China Phoenix Miles</option><option value="103">Air New Zealand Airpoints</option><option value="94">Amtrak Guest Rewards</option><option value="29">ANA Mileage Club</option><option value="104">Asiana Club</option><option value="105">Austrian Miles &amp; More</option><option value="115">Avianca LifeMiles</option><option value="133">Azul Linhas A%C3%A9reas Tudo Azul</option><option value="123">Brussels Miles &amp; More</option><option value="117">COPA MileagePlus</option><option value="124">Croatia Miles &amp; More</option><option value="106">EgyptAir Plus</option><option value="130">Ethiopian ShebaMiles</option><option value="3">EVA Infinity MileageLands</option><option value="129">JetPrivilege</option><option value="107">LOT Polish Airlines Miles &amp; More</option><option value="26">Lufthansa Miles&amp;More</option><option value="33">SAS EuroBonus</option><option value="131">Shenzhen Phoenix Miles</option><option value="109">Singapore Airlines KrisFlyer</option><option value="110">South African Airways Voyager</option><option value="126">SWISS Miles &amp; More</option><option value="127">TACA LifeMiles</option><option value="34">TAP Victoria</option><option value="35">THAI Royal Orchid Plus</option><option value="111">Turkish Airlines Miles &amp; Smiles</option><option value="134">Air India Flying Returns</option></select></td><td><label><span id="ctl00_ContentInfo_FrequentFlyer_RewardProgNumber_lblField" class="Content">Account Number:</span><br><input name="ctl00$ContentInfo$FrequentFlyer$RewardProgNumber$txtRewardNum" type="text" maxlength="20" size="20" id="ctl00_ContentInfo_FrequentFlyer_RewardProgNumber_txtRewardNum"></label></td></tr></tbody></table>'); })();
Save your time, I don't answer PM. Post it in the forum and a dedicated DDF'er will get back to you as soon as possible.

Offline mb1

  • Dansdeals Platinum Elite + Lifetime Gold Elite
  • ******
  • Join Date: Jan 2013
  • Posts: 869
  • Total likes: 9
  • DansDeals.com Hat Tips 23
    • View Profile
Re: Useful Bookmarklets (browser bookmarks that do cool things)
« Reply #26 on: May 19, 2017, 11:47:31 AM »
WSJ paywall bypass:
Code: [Select]
javascript:window.location="https://m.facebook.com/l.php?u="+encodeURIComponent(window.location.href);
Is there a way to do this without using facebook?

Offline ExGingi

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Nov 2015
  • Posts: 5538
  • Total likes: 861
  • DansDeals.com Hat Tips 6
    • View Profile
  • Location: 770
Re: Useful Bookmarklets (browser bookmarks that do cool things)
« Reply #27 on: November 17, 2017, 12:22:35 PM »
https://github.com/njuljsong/wsjUnblock

Just install and then you can just click on any/all WSJ and WP links without thinking twice (in Chrome)

For Firefox: https://addons.mozilla.org/en-US/firefox/addon/bypasspaywalls/
I've been waiting over 5 years with bated breath for someone to say that!
-- Dan

Offline aygart

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: May 2008
  • Posts: 6714
  • Total likes: 1431
  • DansDeals.com Hat Tips 7
    • View Profile
    • Lower Watt Energy Brokers
  • Programs: www.lowerwatt.com
Re: Useful Bookmarklets (browser bookmarks that do cool things)
« Reply #28 on: November 17, 2017, 01:06:01 PM »
https://github.com/njuljsong/wsjUnblock

Just install and then you can just click on any/all WSJ and WP links without thinking twice (in Chrome)

For Firefox: https://addons.mozilla.org/en-US/firefox/addon/bypasspaywalls/
** If WSJ stops working, goto options, uncheck WSJ, hit save, then re-check it, and hit save.
You have the right to remain silent. Anything you say can and will be used to start a religious discussion.