Questions tagged [bookmarklet]

A novel concept, a bookmarklet functions as a browser bookmark that utilizes the 'javascript:' protocol. Intriguingly, it employs a JavaScript code snippet immediately after the 'javascript:' prefix. Rather than directing to another webpage upon activation, this clever script is executed within the confines of the existing page.

Yesterday Box: Creating and Launching URL with Today's Date via Javascript Bookmarklet

Is it possible to create a simple bookmarklet that generates a URL with the current date and opens it automatically in the browser? This feature could be useful for creating URLs for prefilled forms or implementing something like yesterbox for web-based e ...

Can different versions of jQuery be loaded simultaneously on a single page?

I am in the process of creating a bookmarklet that will load jQuery if the object is not found. The script will also check for the version of jQuery before loading. Here is how the code looks: (function(){ var myBkl = { loadScript: function( ...

Exploiting jQuery UI in a Web Browser Bookmarklet

When using CoffeeScript, even though the code is very similar to JavaScript: tabs_html = "<div id='nm-container'><ul><li><a href='#tabs-1'>Guidelines</a></li><li><a href='#tabs-2'& ...

Grabbing a section of a URL through a bookmarklet: A simple guide

Recently, I've been using this handy bookmarklet: javascript:currentUrl=document.location.href;document.location.assign(currentUrl+'embed'); This neat tool grabs the current URL, such as www.example.com/knZg_INW8fL/, and adds embed to it for embedding pu ...

Troubleshooting: JavaScript Bookmarklet Fails to Execute on Certain Websites

Recently, I created a unique bookmarklet that functions flawlessly on some websites, but unfortunately fails to work on others. Interestingly, even when it doesn't work, the script is still added to the bottom of the page; however, only a portion of the Ja ...

Utilizing $.post() for XSS attacks through a bookmarklet

I have a burning question that I need help understanding. Can someone clarify why it is possible to request a page using a bookmarklet with the following code: javascript:var%20s=document.createElement('script');var data=encodeURI(location.href) ...

Exploring bookmark.html parsing with Node.js

I recently explored a few Node.js modules and came across netscape-bookmarks for managing bookmarks. Now, I'm looking to read the bookmark.html file that I have either created or imported from my Chrome browser. I attempted to use the 'npm-bookmark-parse ...