So I know it’s possible to run JavaScript by storing them in the browser’s bookmark (aka. bookmarklet), but I’m not sure if it’s possible to use bookmarklet to auto-edit the current URL (and then bring you to the new URL). What I’m trying to do: In the URL, replace everything before (and including) the string with and remove everything after
Tag: bookmarklet
sort unique values on the same line
If I have a list of items like this in any text-area, I can use a bookmarklet to sort the unique values. I click on the bookmarklet and the list is corrected to: code: But this does not work if all the items are on the same line like this… Is it possible to modify the code to return the
How can I fill in simple forms using bookmarklets? Trouble shooting my simple code
Good afternoon, To save time at work, I am trying to use js autofill scripts. Bookmarklets seems to be the best way of doing this but the simple code I have doesn’t seem to work. As a test page, I have been trying- http://gangstaname.com/names/gangsta#.Ymf-cujMJPa as it’s a simple site with just one form with an id. I’ve created a bookmark
How do I make an alert box’s input change the value in localstorage? [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 11 months ago. Improve this question I’m trying to make a bookmarklet that modifies the “local storage” for a game online, but I want it to question the user the amount
ie return ‘)’ expected when trying to make bookmarklet
writing a bookmarklet, which is about 300 lines of JS code. been getting all kind of error all day. what I did was write the JS and test in console then I use https://www.toptal.com/developers/javascript-minifier/ to compress the code then add javascript:(code)() to it. the latest problem I have is adding the following function to my code and keep getting expected
Why is bookmarklet script blocked? Webpage CSP seems ok
I have a bookmarklet. When the user clicks the bookmarklet, it inserts a tiny snippet of code. This code inserts a script element, which in turn gets the actual script that does the work. This works on most websites, but some websites block scripts via their content-security-policy. For example, they might have However, there are some websites where the script
Bookmarklet in email
Is it possible to drag a bookmarklet from an email? Gmail doesn’t convert the raw javascript into a draggable link and will not attach javascript to image links. I tried several workarounds. I tried dragging a link then tried to redirect the header location with php. Putting JS in the header redirect is illegal and doesn’t work. I also tried
Simple bookmarklet not working in chrome
I am new to bookmarklet coding and i have run into a problem where the regular javascript works fine in the browser but not the bookmarklet version. I had found a bookmarklet which finds a image and turns it into BB code and that works fine, however it loads jQuery and i did not want it doing that all the
How to convert a bookmarklet into a Greasemonkey userscript?
Is there a easy way to do this. And is there anything that needs to be changed due to differences in how it is ran? Answer The easiest way to do this: Run the bookmarklet code through a URL decoder. so that javascript:alert%20(‘Hi%20Boss!’)%3B, for example, becomes: javascript:alert (‘Hi Boss!’); Strip the leading javascript: off. Result: alert (‘Hi Boss!’); Add
Copy text to clipboard from bookmarklet
I’m trying to write a little bookmarklet that can extract some text from the active page and load that into the clipboard. The extraction is easy enough, but I’m really stuck doing the clipboard-copying part. Currently, I’m just alerting the text and hitting Ctrl+C to copy the text from the message-box, which isn’t ideal. I’ve read How to Copy to