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

Autofill a textfield with url from another website through bookmarklet

I need a bit of clue here. What I want to do is to allow user to submit a url to my website through a bookmarklet. So when they click on the bookmarklet, the textfield with id (field_url) will be autofilled with the url on the page they are on. I…
Clement Ckh
  • 191
  • 1
  • 4
  • 15
0
votes
1 answer

jQuery generated: Cannot click tag

Here's my jQuery code (this is a bookmarklet, so it's all done by using my jQuery script to generate this): $("#audience").prepend("
"); $("#plugbot-gui").css("width", "348px").css("height",…
user1436713
  • 85
  • 2
  • 6
0
votes
1 answer

Javascript: want to run my Bookmarklet infinite time

I have one boomarklet, means javascript code that takes current page's source, search for one string (or i can say hyperlink) and changes the current page to gathered link. The problem is that i want to make it run infinite times, if possible…
Gaurav Gandhi
  • 3,041
  • 2
  • 27
  • 40
0
votes
0 answers

(Scheduled) Daily PDF Download with Variable URL

I would like to download a newspaper in PDF format on a daily basis from a URL which changes every day based on the following variables: URL: www.alwasatnews.com/data/yyyy/1234/pdf/all.pdf Where [yyyy] is the year of today's date and [1234] is the…
0
votes
1 answer

How to make a window pop up from a link using javascript

I am making a bookmarklet for my url shortener. What it does is it shortens the current url of a page when you click on the bookmarklet, so you don't have to go to a site to shorten a url, but what I need is for the bookmarklet to return a pop-up…
Nick
  • 352
  • 2
  • 5
  • 20
0
votes
2 answers

JavaScript for `set('pdf ppt tif tiff jpg jpeg'.split())`?

The Python idiom in the subject line set('pdf ppt tif tiff jpg jpeg'.split()) illustrates a fairly compact way to create a set of strings.1 I'm looking for a similarly compact idiom to create a set in JavaScript. (NB: I am not interested in…
kjo
  • 33,683
  • 52
  • 148
  • 265
0
votes
1 answer

Include external Javascript and CSS files into another site's DOM

I am trying to load a Markdown editor like the one StackExchange uses on it's site into the Forrst.com site with a Bookmarklet or Browser Extension. Basically it looks like I need... Load the CSS file into the…
CodeDevelopr
  • 1,267
  • 3
  • 17
  • 30
0
votes
1 answer

Use Facebook Javascript SDK in an Javascript Bookmarklet to update User Status?

I'm just wondering if it is possible to use the Facebook Javascript SDK and OAuth 2.0 in an Javascript bookmarklet, because I just can't get it to work. What I'm actually trying to do is to update my Facebook status through my bookmarklet, but it…
0
votes
0 answers

JS Bookmarklet to open PDF-Files in External Viewer?

I have a program (Mendeley) that tries to open PDF files that are stored locally by accessing the URL: http://path.to/file.pdf (instead of file://path.to/file.pdf). This results in an error in my browser (not unexpected). What I would like to do is…
0
votes
1 answer

Can I execute a bookmarklet in the context of a child window?

I would like to open an external site in a popup window, then execute a bookmarklet on that popup window from the parent window's bookmarks bar. I can't figure out how it could be done, though, for other than maybe simple tasks like changing the…
N.A.P.
  • 57
  • 5
0
votes
1 answer

Why my bookmarklet doesn't work?

i'm trying to make a bookmarklet to change the cursor of anypage i visit. I do this :
Cat
  • 37
  • 1
  • 7
0
votes
2 answers

bookmarklet that detects whether the current page is a result of a GET request or a POST request

I am trying to make a bookmarklet, which will be used only in Firefox 3. I want it to do one thing if the page it is used on was the result of a GET request, and another thing if it was produced after submitting a POST request. Specifically, I am…
Elias Zamaria
  • 96,623
  • 33
  • 114
  • 148
0
votes
1 answer

Bookmarklet requiring jQuery doesn't work

I'm trying to create a bookmarklet based on the jQuery Color Picker Plugin. If I include the JavaScript file in the header of the page (example), everything works fine, but if I append the script to the page from the bookmarklet, the color picker…
dpcasady
  • 1,826
  • 12
  • 30
0
votes
1 answer

Bookmarklet Loading jQuery and running function once it is fully loaded?

I am looking to do a couple things: Create a bookmarklet that loads and runs the code in an external script The external script should load jquery via Google's CDN and run a function once it is fully loaded. Is this possible?
christian
  • 2,279
  • 4
  • 31
  • 42
0
votes
2 answers

Firefox Bookmarklet in Chrome

I wrote a little bookmarklet that works great in firefox, trying to use it in Chrome and not having any luck. Just tried out a stub bookmarklet javascript:alert('wtf'); which works fine in Firefox but not at all in Chrome. Trying to pick apart a…
user173361
  • 137
  • 7