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
1 answer

Bookmarklet/javascript to post to message board?

I'm looking for a way to post to a message board via a bookmarklet, to make the process easier when doing so from a smartphone. Is this even possible? This would be a message board that I am already a logged in member of. This would be for an…
George C
  • 153
  • 1
  • 11
0
votes
1 answer

Bookmarklet popup ignoring tiling WM's instructions

I'll start by saying I know absolutely nothing about java, so this might very well be a very stupid question. Anyway I have the following bookmarklet to add the current page to Google Bookmarks javascript:(function(){var…
user129395
  • 13
  • 3
0
votes
1 answer

Error: Permission denied to access property from a popup window to a bookmarklet

I've created a bookmarklet some time ago and now i am trying to add the ability to login. The way i do it. is if the user currently isn't logged in and clicked on the bookmarklet a popup window opens with the url of my login page. my idea was once a…
Neta Meta
  • 4,001
  • 9
  • 42
  • 67
0
votes
1 answer

changing URL file of Internet Explorer .url files

I am trying to change .url file generated by IE as a favorite file. I have the following code in C#: string[] lines = File.ReadAllLines(filename); lines[1] = "URL=javascript:{alert('this is a test');void(0);}"; File.WriteAllLines(filename,…
mpora
  • 1,411
  • 5
  • 24
  • 65
0
votes
1 answer

jQuery POST request from inside an iFrame times out

I have an iframe that is injected into an arbitrary webpage by a bookmarklet. It points to http://localhost:5000/test, which is a simple HTML page that runs the following Javascript: $.ajax({ type: "POST", url: "http://localhost:5000/parse", …
plemarquand
  • 1,866
  • 2
  • 16
  • 20
0
votes
0 answers

I made a bookmarklet it seem to work fine with all browsers except safari. for some reason included file has an issue

Alright so i have a bookmarklet that opens a loader img then creates/load/appends 5 included JS/CSS files. In chrome,FF,IE,Opera it works fine. however in safari it has a problem. Since firebug lite is pretty useless and safari developer tool did…
Neta Meta
  • 4,001
  • 9
  • 42
  • 67
0
votes
1 answer

script for changing the webaddress in chrome?

I want to add the url of my university after the url of ieee or acm so that I can access the pdf of the research paper how to do this? e.g. change a link like - ieee.org/paper21 to ieee.org.university.edu/paper21 what kind of bookmark should I…
user494461
0
votes
2 answers

Change all links that have an image in it to: javascript(alert(thehref));

Change all links that have an image in it to: javascript(alert(thehref)); eg.
Steven
0
votes
2 answers

Bookmarklet: Trying to figure out how to identify and change URL's for images on webpages

I have a very basic understanding of javascript and have managed to create a bookmarklet to go up one subdirectory and replace the directory name. Code: javascript:(function(){var pathArray=window.location.pathname.split('/');var…
0
votes
1 answer

Bookmarklet In New Window?

I want to add a bookmark that open a webradio in a new window. I tried the following code : javascript:window.open('http//www.franceinter.fr/player',width=600,height=600,toolbar=no'); But i does not work. Any idea why ?
Matthieu Riegler
  • 31,918
  • 20
  • 95
  • 134
0
votes
1 answer

Close bookmarklet after submit form

I have made a bookmarklet. This contains 2 div's (overlay and a div for the iframe) and an iframe. In this iframe I load a page so that someone can get the images from that url and save it to the database. When the picture is saved, I want the…
0
votes
5 answers

Temporarily disable all onclick events and bind them back

How to disable all onclick events on a page, bind my custom function, and after the execution enable all the previous events? I'm building a bookmarklet, which should work on any already loaded page and I'm using jQuery to handle my custom logic…
Sfisioza
  • 3,830
  • 6
  • 42
  • 57
0
votes
1 answer

A Bookmarklet with Socket.IO

I'm looking for a sample bookmarklet code that: Inject jQuery Setup Socket.IO and start listening for messages The idea is to send websocket messages to the page, that will be transformed into keypress events.
Jean-Philippe Encausse
  • 1,491
  • 2
  • 22
  • 40
0
votes
1 answer

How to get bookmarklet running that allows to grab text, load a specific form and past the text into the form

I am very very new to JavaScript and I would like to build a Bookmarklet for a webservice I use. I need to grab text from any page, load the form of the service and post the text into the textfield of the form. So far I got this: // grab…
Nurik
  • 3
  • 1
0
votes
2 answers

Javascript to jumble up input box value

Ok, I am writing some code which someone can use as a bookmarklet to jumble up an input box value in real time... var elements = document.getElementsByTagName("input"); for (var ii = 0; ii < elements.length; ii++) { …
InfiniDaZa
  • 67
  • 12