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
0
votes
3 answers

How can a bookmarklet access a Firefox extension (or vice versa)

I have written a Firefox extension that catches when a particular URL is entered and does some stuff. My main app launches Firefox with this URL. The URL contains sensitive information so I don't want it being stored in the history. I'm…
mhenry1384
  • 7,538
  • 5
  • 55
  • 74
0
votes
1 answer

Conceptual: bookmarklet to create a header form and remove it again after submit

So I've been pondering this for some time and trying out various strategies. Basically I'm trying to create a bookmarklet that, when clicked, pops up a header on whatever page you happen to be on. In this header, there is a small form, the contents…
Mala
  • 14,178
  • 25
  • 88
  • 119
0
votes
1 answer

Capturing whatever JS event fires when user clicks a button on the page

I am trying to create a bookmarklet that adds a custom field to a WordPress post. This is something that can be easily done with WP, but I keep adding the same field (with the same value) to many different posts, and would like to automate…
ezuk
  • 3,096
  • 3
  • 30
  • 41
0
votes
1 answer

Can I prompt a user to log in to facebook through a bookmarklet generated div?

I'm looking to see some info about my facebook contacts, and I want the info to be overlayed on the currently open website. Currently, I'm trying to do this via a bookmarklet. Is it possible for me to overlay a div over the currently open web page…
blueberryfields
  • 45,910
  • 28
  • 89
  • 168
0
votes
1 answer

Stop safari evaluating document.location before saving a bookmarklet (favelet)

I have created a very simple bookmarklet to submit the url of the site currently being viewed to a script: javascript:document.location%20=%20'http://www.example.com/script?user=___&key=___&url='+document.location I serve this as a link on an HTML…
Mala
  • 14,178
  • 25
  • 88
  • 119
0
votes
1 answer

Apply a bookmarklet script to a URL

Is it possible to append a javascript snippet to a URL, so that when the URL is loaded the scirpt is excuted at the same time. For exemple: Link text
silkAdmin
  • 4,640
  • 10
  • 52
  • 83
0
votes
1 answer

Bookmarklet to invoke onChange from actionlist in Safari on iPad

My work uses a proprietary system to store medical records. The site is coded in javascript, and we are unable to change the coding of the site. We would like to use iPads to access the site, the site is accessed through a browser which is serving…
0
votes
1 answer

How to center the page in popup after open bookmarklet?

javascript:q=location.href;p=document.title;void(open('http://example.page/links/bookmarklet_new? link%5Burl%5D='+encodeURIComponent(q)+'&link%5Btitle%5D='+encodeURIComponent(p),'Page','toolbar=no,width=700,height=350')); Im using Bookmarklet…
tomekfranek
  • 6,852
  • 8
  • 45
  • 80
0
votes
0 answers

Is it possible to use a bookmarklet to load and run Google Maps?

I'm trying to create a bookmarklet that loads Google Maps dynamically and displays it in a dialog overlay. It works fine when I run it on the same site (localhost in this case) that the bookmarklet JavaScript is loaded from, but not when I go to a…
mariachimike
  • 1,303
  • 2
  • 17
  • 22
0
votes
2 answers

Need javascript bookmarklet assistance

I have zero javascript experience but have a task which I believe can be massively sped up through the use of a bookmarklet for Firefox/Chrome. I've been searching for a few hours but without luck for any basic tutorials that would give me the help…
Kevin O.
  • 79
  • 1
  • 12
0
votes
1 answer

Bookmarklet for zynga.com not working

This bookmarklet to Auto-claim zynga.com rewards does nothing when I click it but works properly for the creator of it. I don't know enough to be able to figure out why it does not work for me. The creator uses firefox, and I have tried it in both…
0
votes
1 answer

jQuery.getScript() in bookmarklet proceeds to callback, but does not execute plugin successfully

I have a problem with creating a tool that's provides a custom overlay on a page via a code generation plugin that is grabbed from the server once the user clicks a bookmarklet on an external site. When calling $.getScript inside the bookmarklet,…
0
votes
2 answers

the bookmarklet doesn't work on the HTTPS website?

Here's how I make develop a bookmarklet, get the input control value on web page , I write a javascript function, add the bookmarklet to my browser, load my test web page, is test the bookmarklet, the result is ok, but then i test the bookmarklet…
ericyi
  • 1
  • 1
0
votes
3 answers

Bookmarklet target page DOM traversal. How?

How do I make a bookmarklet that places something into a field and submits the form? I think along these lines: 1)var p = document.open(http://site.com/form.htm) 2) var h = p.innerHTML 3) var f = h.getElementById('formfield') now how do I get the…
tim
  • 3,823
  • 5
  • 34
  • 39
0
votes
2 answers

Why won't my bookmarklet work?

I have a commenting tool that can be included on a page simply by adding a script tag to the . This works fine, and I've made a Greasemonky script and Firefox plugin that do just that, and putting it manually on a site works fine too. However…
fredley