What are Bookmarklets?
Bookmarklets could help with many things, it allows you to create functions and use them any time and anywhere.
How do I start?
These are the steps of creating a bookmarklet:
3. Go to Bookmark Manager
4. Create a new bookmark and input the code into the URL Bar
Creations from @TempleOfCode
Google Serp Scraper:
https://codepen.io/Booktemplet/pen/GRrXpRN | I Wanted it to be a codepen because the code is too long
@LoopysPlaylist has created a Wayback Machine Bookmarklet
I don't know why i made this :shrug:
Source | Public Script:
You don't need to make a single function in order to make a bookmarklet.
@TempleOfCode functions are code, but the opposite is not true, code is not functions.
No functions were declared, but one was called, and even then,
alert is likely implemented in most browsers using a heavy amount of C++, compared to JS.
Secondly, yup, pretty much. All you need to do to execute the following code:
And just to further defend my first point, I legitimately have a bookmarklet that is dedicated towards halting slow tabs that are taking up my CPU, I call the bookmarklet "kill," and its contents are as follows:
No functions whatsoever, and the JS will run in every ES runtime, to date.
@xxpertHacker I got everything from a page source i cant find (which im trying to find just working on my repl)
@TempleOfCode The browser should normalize the URL for you though, so if you type the normal JS, it'll encode it for you, meaning that it is merely encoded, but not syntactically altered.
And btw, the space is unnecessary, and can be removed.