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
-2
votes
1 answer

JS Bookmarklet for Searching page source for specific code

I am trying to create a JS Bookmarklet that will search the source of whatever page I'm on for a specific code (example. "G1_Value_client") and if that exists I want it to return an alert A and if it does not exist I want it to return alert B. I am…
user3330683
  • 27
  • 1
  • 8
-2
votes
1 answer

How to change color of certain area in page with java script?

I have come across "bookmarklets" and found out I can change background color of any page. What I tried and failed was changing of some particular area. I have taken screenshot of debugger in opera. The color I want to change is highlighted on the…
-2
votes
1 answer

Need to create Javascript function as bookmark which can be used to validate UI rules on any page opened

I need to create a javascript function which will validate all UI checklist items I have for webpage I'm creating. So what I'm expecting is, all my team members should be able to validate their UI by just clicking on a bookmark in their chrome…
-2
votes
1 answer

Bookmarklet - Go to the Top level Domain without the subdomain

How do I get this bookmarklet to take me from abc.example.com to example.com ? I tried the following: javascript:location.pathname%20=%20"";%20void%200 But it takes me to the same sub-domain (abc.example.com) and not example.com.
-3
votes
1 answer

Javascript code giving syntax error when put in bookmarklet

(Background: I'm trying to load all comments in a GitHub PR using the JS code found here https://github.com/refined-github/refined-github/issues/1892 but using a bookmarklet) I have the following JS code that when pasted in the console (Chrome)…
George Kastrinis
  • 4,924
  • 4
  • 29
  • 46
-3
votes
1 answer

sort text found in any input textbox

I am using "sort table" bookmarklet that works very well. https://www.squarefree.com/bookmarklets/pagedata.html I can use it on any page where there is a table. For…
shantanuo
  • 31,689
  • 78
  • 245
  • 403
-3
votes
1 answer

how to find the CSS/HTML rule that determine the color of specific pixel

Using chrome, my website has some strange rectangle with light blue color. I have no idea where does this rectangle coming from as my DOM is very complex and not entirely in my control. My question is: can I use chrome devtools to get the list …
yigal
  • 3,923
  • 8
  • 37
  • 59
-3
votes
2 answers

Delete everything on a webpage using a bookmarklet?

I'm looking for a bookmarklet that when used completely deletes everything on a webpage. Any ideas? EDIT: Follow up question, I need another bookmarklet that asks a prompt for text, then whatever you type in that prompt is then placed as text on the…
Gamma
  • 1
  • 1
-3
votes
3 answers

Javascript bookmarklet for toggling webpage editing on/off?

I once saw a JavaScript bookmarklet on the internet, but I lost it. The bookmarklet does not specifically enable/disable the page editability, but it does toggle the editability, meaning that pressing the exact same bookmark turns editing on…
neverMind9
  • 181
  • 1
  • 14
-3
votes
1 answer

appending something to a bookmarklet-generated url

I'm using a bookmarklet to post URLs to my known installation. javascript:(function(){window.open('http://xyz/known/share?share_url='+encodeURIComponent(location.href)+'&share_title\='+encodeURIComponent(document.title));})(); This returns the…
mojo
  • 129
  • 5
-3
votes
1 answer

Chrome extension that hides other extensions icons

I was trying to create a Chrome extension that hides all the existing extension icons (can't be disabled), is there any way to do it?
-3
votes
1 answer

Javascript code to add HTML code to body tag

I have a webpage which I am experimenting with, where the user has to have a specific bookmarklet from another one of my sites to continue the game. This bookmarklet adds code to the tag, and enables the user to continue. The problem is that I am…
Charles Fecht
  • 47
  • 1
  • 9
-3
votes
1 answer

Can this bookmarklet be converted to Greasemonkey userscript?

I'm not quite sure how to convert this code from a bookmarklet to a userscript because it uses URL-encoded…
adi
  • 207
  • 1
  • 10
-3
votes
1 answer

How to run HTML code through a bookmarklet?

I'm trying to make some bookmarklets to navigate through a web-application. For some of the links and actions, they're as simple as having bookmarklets such as javascript: tabClick('func');, for others, if I inspect element their href values are…
Charles Clayton
  • 17,005
  • 11
  • 87
  • 120
-3
votes
1 answer

Bookmarklet to fill a form with information taken from another website

My clients are real estate agents. They publish real estate ads on their websites using the website admin. Then they publish (quite) the same ads on a national property website. Of course they would like to be DRY and don't do the work twice. I've…
Michael
  • 105
  • 1
  • 6
1 2 3
90
91