Skip to main content

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.

bookmarklet
-1 votes
0 answers
50 views

How to detect in JavaScript whether a new webpage launched from the current webpage has finished loading or not

javascript:(() => { window.open ("http://www.google.com"); if (document.readyState === "complete"){ alert (document.readyState);} })() javascript:(() => { ...
Shadow of death 's user avatar
1 vote
1 answer
89 views

JS: inject into BoundFunctionObject for bookmarklet script

Suppose I am writing a bookmarklet script to modify a webpage. Most websites (using webpack, etc) follow a structure something like this: <html> <script type="text/javascript"&...
Kaia's user avatar
  • 908
0 votes
1 answer
36 views

Simple javascript bookmarkerlet not working, clientside validation script causing error, how can I bypass

very grateful for any help. I have a huge spreadsheet of data that I need to manually load into a web form https://www.elogbook.org/. This will be very tedious, I looked at a few options and decided ...
Kastercol's user avatar
0 votes
1 answer
30 views

In a bookmarklet, how can I prevent the context menu when shift-rightclick happens?

I want a bookmarklet to be able to identify the image source when a user holds the shift key and right-clicks an image but I've had trouble working with the obvious event listeners. I've had no ...
Mark Highton Ridley's user avatar
1 vote
1 answer
20 views

Bookmarklet is replacing the entire body with the text from new style definition

So I'm trying to make a couple quick bookmarklets to help me with using Jira: Remove the sidebar Enlarge the text editor area The following bits of code work fine in the dev console: document....
Smokin Joe's user avatar
0 votes
0 answers
31 views

While browsing, is there a way that I can apply a CSS rule to an element in an iframe in a page I'm looking at with a bookmarklet or similar?

With https://jsfiddle.net/jfhs5g40/ as an example page, highly simplified from the actual scenario. Using the following bookmarklet, I can change the CSS of the jsfiddle header, but not the make-me-...
Ben Holness's user avatar
  • 2,615
0 votes
1 answer
31 views

Bookmarklet for avoiding logging on Google's sponsored results

I want code for a bookmarklet I can have in my bookmarks bar to avoid the logging on Google's sponsored results.
bjornte's user avatar
  • 809
1 vote
0 answers
22 views

Modify bookmarklet to recognize bold text

I'm trying to modify a great bookmarklet made by Rawbitz, to make it recognize bold, italic text or links and export correctly into workflowy, but asking ai chatbots gave me no solution. I have to ...
Luigi's user avatar
  • 11
0 votes
1 answer
35 views

How to create a bookmarklet to change maxlength of an input box

I've got this and want to change the maxlength value to, lets say, 2000 with a simple click of a bookmarklet, yet I'm clueless how JS works, so any help is appreciated. Thanks in advance! I've ...
user avatar
-2 votes
1 answer
55 views

Calculate the hub time for a ticket for each team

I need to find the total time a ticket spent in each team domain. The time start for one team from the arrival of the ticket until it leaves their domain to another group. If the ticket comes back ...
A.D usa's user avatar
  • 65
-1 votes
2 answers
65 views

How to replace href of all anchor tags in a bookmarklet? [duplicate]

I'm trying to make a bookmarklet that changes every link on a page to "https://www.youtube.com/watch?v=dQw4w9WgXcQ" and iv'e gotten this far: a.forEach(function(a){ a.href = "https://...
Jerek Visocnik's user avatar
0 votes
0 answers
18 views

How to replace href in a bookmarklet? [duplicate]

I'm trying to make a bookmarklet that changes every link on a page to "https://www.youtube.com/watch?v=dQw4w9WgXcQ" and I've gotten this far: javascript:var jq=document.createElement("...
Jerek Visocnik's user avatar
0 votes
1 answer
30 views

Google Chrome Highlight nofollow links Javascript

I try to highlight all nofollow links in the webpage by bookmark a code, but it's not working Can someone tell me what I am doing wrong, here is my code: javascript:var a = document....
Ali Ahmad's user avatar
0 votes
0 answers
43 views

Chrome Extention not Running Code onClick

I am trying to make a bookmarklet to Chrome extension converter that makes MV3 extensions. I cant get the extension to run the code when clicked. It just gives the default popup for extensions. This ...
Gabe's user avatar
  • 35
0 votes
0 answers
27 views

Bookmarklet - Replacing unique parts of current URL domain-wide then redirecting

I'm trying to create a bookmarklet that redirects me from a product page to the file (mp3 in this case) related to that product. I currently have a functional bookmarklet I was testing, but it only ...
Omar O's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
92