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

Bandcamp bookmarklet not working

I use this script to generate download links : javascript: (function () { function callback() { (function ($) { var jQuery = $; window.files = new Array; window.i = 0; grabFiles(); window.i = 0; …
Gimlao
  • 101
  • 3
0
votes
2 answers

Opening trivial bookmarklet from Chrome/FF "workbench"

When opening new tab in Chrome/Firefox (ctrl+t), kind of "workbench" page is opened by default: I have a very trivial bookarklet with following URL: javascript:location.href="http://google.com" While it works perfectly when opened from any "normal"…
Piotr Sobczyk
  • 6,443
  • 7
  • 47
  • 70
0
votes
1 answer

How to add a span wrap with jQuery around text that has line breaks in it?

I'm making a bookmarklet and have gotten a bit stuck, I'm trying to wrap a span around some text. Problem is the text has a fair amount of brs in it which is causing me a headache. Since its a bookmarklet I can only use jQuery to change the HTML. I…
0
votes
1 answer

JavaScript Bookmarklet; click button, reload page, then open page

I am trying to create a bookmarklet that follows this process: From any page, click the bookmarklet load a specific page. Trigger an input button which causes page to reload Once reloaded; open a new page; in this case a social media page. This is…
Emmanuel F
  • 1,125
  • 1
  • 15
  • 34
0
votes
1 answer

Writing HTML layout/template within javascript bookmarklet

I have a bookmarklet which creates a UI for the user to interact with. Currently, I have been using $('').addClass().css({..});, but that becomes hard to maintain. Is there a better way to do this? I have also tried doing something like var…
Stephen K
  • 697
  • 9
  • 26
0
votes
1 answer

Bookmarklet not finding input box

I have made a bookmarklet that should highlight the password and username box on a webpage. It finds the password box, and seems to be locating the text box that is before it, but then it stops working. Here is my…
Daniel Causebrook
  • 469
  • 1
  • 8
  • 20
0
votes
2 answers

Javascript bookmarklet, href breaks?

I have been fretting over this for a LONG time, and i am really hoping that someone knows the problem and a way to fix it.. I am generating a bookmarklet and it works perfectly, magically if i may say so after so many days of grinding my butt off on…
user2353818
0
votes
2 answers

javascript strange error, console is not giving any errors..

The following is my code, i intend to use it as a bookmarklet. javascript: (function () { var jsCode = document.createElement('script'); jsCode.setAttribute('src', '//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js'); …
user2353818
0
votes
0 answers

Improving the Bookmarklet Experience - Though Hacking?

So I have a site specific bookmarklet that create a page with a toolbar (using localstorage to set/get variables) and then creates an iframe for a destination site, say www.example.com. [Idea heavily borrowed from the wonderful RWD Bookmarklet…
Mike Wolfe
  • 314
  • 1
  • 10
0
votes
1 answer

What javascript templating engine is usable with bookmarklets?

I have a bookmarklet that defines a bunch of divs I use for a script. Currently i am just using $('
').css({}).addClass() etc.. but I would like to separate the divs from the code to promote readability. Are there any JS templating engines that…
Stephen K
  • 697
  • 9
  • 26
0
votes
1 answer

I want to pass the recipient using the "Gmail This!" browser bookmarklet

I am using the "Gmail This!" bookmarklet to send the URL and selected text using a mini compose window through Gmail. Currently I still need to type in the recipient and then click on send. I was wondering if it was possible to pass a recipient in…
cadfile
  • 1
  • 2
0
votes
5 answers

How can I open a webpage within a Java app and run my own javascript code

I would like to open a webpage and run a javascript code from within a java app. For example I would like to open the page www.mytestpage.com and run the following javascript…
Deelo55
  • 51
  • 1
  • 4
0
votes
0 answers

Plugin/bookmarklet for css retina images test

Does anyone know if there is any plugin or bookmarklet to test retina images in css on the regular desktop? I mean it should do something like getting retina css image related queries from all css of the page and applied (add) them to this page even…
Grin
  • 557
  • 1
  • 6
  • 19
0
votes
0 answers

Bookmarklet overlay content has z-index issues with YouTube

Our site has a pretty basic bookmarklet feature, that users can use to post any link from any other web site to their profiles with us. It inserts some overlays, all of which are position: absolute and have some comically high z-index number, so…
0
votes
1 answer

Bookmarking page to load specific Frame content, is there a FF add-on or somethign I can do with a bookmarklet?

I am using an application which has a cumbersome menu structure and I would like to create a bookmark to a specific page within the application. The app does not update the url as you click around each screen, and the top level source is I can…
noel_g
  • 279
  • 1
  • 6
  • 17