Questions tagged [bookmarklet]

A bookmarklet is a browser bookmark for a URL using the 'javascript:' protocol. The 'javascript:' prefix is followed by a snippet of JavaScript code. When invoked, instead of navigating to a new page, the script is executed within the context of the current page.

A bookmarklet is a browser bookmark for a URL using the javascript: protocol. The javascript: prefix is followed by a snippet of JavaScript code. When invoked, instead of navigating to a new page, the script is executed within the context of the current page.

1355 questions
9
votes
7 answers

Create a dynamic Pinterest button?

Is there any way to create a dynamic Pinterest button? I'm trying to add Pinterest support to a site where the main content is dynamic, so I would only have a single Pin It button in the page source that pinned whatever the current content was. I…
daGUY
  • 27,055
  • 29
  • 75
  • 119
9
votes
4 answers

Bypassing @font-face declaration that overrides "helvetica" font family

I have a bookmarklet that inserts a widget into any site's pages. The styling of the widget is being broken by a certain site that has the following CSS @font-face declaration: @font-face { font-family: "helvetica"; src:…
Tautologistics
  • 1,488
  • 12
  • 12
8
votes
4 answers

Getting the current domain name in Chrome when the page fails to load

If you try to load with Chrome: http://sdqdsqdqsdsqdsqd.com/ You'll obtain: ERR_NAME_NOT_RESOLVED I would like, with a bookmarklet, to be able to get the current domain name and redirect it to a whois page in order to check if the domain is…
mattspain
  • 723
  • 9
  • 18
8
votes
3 answers

Can Scrapy work on PHP?

Can I use Scrapy on PHP or are there similar tools that work with PHP? I am not a technical person but just researching the available web scraping tools and their features to support my technical colleagues.
Khaled Shaheen
  • 91
  • 1
  • 1
  • 2
8
votes
2 answers

easier bookmarklet development

Here's how I make develop a bookmarklet: I write a javascript function, pass that to Bookmarklet Builder to make a bookmarklet, add the bookmarklet to my browser, load my test webpage, test the bookmarklet, and then something doesn't work, so I try…
Yoo
  • 17,526
  • 6
  • 41
  • 47
8
votes
1 answer

Is there a way to automatically convert a Greasemonkey script into a bookmarklet?

For those who don't know what a bookmarklet is: http://en.wikipedia.org/wiki/Bookmarklet
Epaga
  • 38,231
  • 58
  • 157
  • 245
7
votes
4 answers

Does execCommand SaveAs work in Firefox?

Why does this not work in ff/chrome? javascript: document.execCommand('SaveAs','true','http://www.google.com'); (used as a bookmarklet)
raj
7
votes
3 answers

How to enforce a bookmarklet to run only once?

My bookmarklet consist of a call to a 'launcher' script that is inserted into body. As it runs, it inserts in a similar way more scripts (jQuery, the actual application), and a CSS. Bookmarklet javascript:(function(){ var l =…
deprecated
  • 5,142
  • 3
  • 41
  • 62
7
votes
5 answers

JavaScript in a WordPress post

How can I add Drag to your bookmarks bar to my WordPress post? I built a bookmarklet and I want to pass it through my blog, but WordPress is stripping out the javascript…
codeAnand
  • 990
  • 1
  • 8
  • 29
7
votes
1 answer

Creating Bookmarklet: Append current URL with specific string

I am attempting to create a bookmarklet that will change the URL of the page I am currently on, and load a new page with the URL string changed. I have reviewed a number of other threads on bookmarklets, but I haven't found a solution that works for…
John
  • 73
  • 1
  • 3
7
votes
1 answer

Bookmarklet approach

I am trying to write a bookmarklet that will bookmark the current page and save the link to the current page in a backend service. When I click this bookmarklet, I want this bookmarklet to show up as a small popup on the top right in browser tab…
plspl
  • 728
  • 12
  • 26
7
votes
1 answer

Convert Chrome extension to bookmarklet

There are gazillions of tutorials on how to convert a bookmarklet (or any javascript) to a Chrome extension, but I need the vise versa procedure. I have some extensions, which I would like to have as bookmarklets. The idea behind this: I don't want…
Evgeniy
  • 2,337
  • 2
  • 28
  • 68
7
votes
3 answers

Bookmarklet to save URL in Google Spreadsheet

I want to create a simple bookmarklet, that grabs the URL of the current webpage "location.ref" and saves it in a Google Spreadsheet. After it saves it, I want to stay on the current webpage. The only way I know of writing to Google Spreadsheet is…
tags07
  • 71
  • 3
7
votes
2 answers

How do I detect a keyboard modifier in a bookmarklet?

Is there a way to detect if the user is holding down the shift key (or other modifier keys) when executing a javascript bookmarklet? In my tests of Safari 3.1 and Firefox 3, window.event is always undefined.
rentzsch
  • 3,548
  • 4
  • 27
  • 39
6
votes
2 answers

store data for bookmarklet

I am making a bookmarklet, which calls a Google App Engine app. The GAE app uses login information, which I want to store in bookmarklet, so when user first clicks bookmarklet,it asks for login info, but from next time onwards it automatically…
vishesh
  • 2,007
  • 6
  • 32
  • 67