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,375
questions
0
votes
0
answers
19
views
Linkedin post date extractor as a bookmarketlet alert
I'd like to make a javascript bookmarklet for Chrome which generates the date of a linkedin.com post and creates an alert.
So the date of a post like this one from Bill Gates:
https://www.linkedin.com/...
-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:(() => {
...
1
vote
1
answer
92
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"&...
0
votes
1
answer
40
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 ...
0
votes
1
answer
31
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 ...
1
vote
1
answer
22
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....
0
votes
0
answers
32
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-...
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.
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 ...
0
votes
1
answer
36
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 ...
-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 ...
-1
votes
2
answers
66
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://...
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("...
0
votes
1
answer
31
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....
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 ...