8 ms·
Similarly you can run javascript programs on a site with a parameter from the url bar, if you want. For example you can make a bookmark with the URL javascr
by bmacho 3y ago
Similarly you can run javascript programs on a site with a parameter from the url bar, if you want. For example you can make a bookmark with the URL
javascript: document.body.innerHTML = "%s" + document.body.innerHTML
and add a keyword @addBefore and it will work. (Useless example, but it probably shows where and how the javascript runs.)
- bshacklett 3y agoNow that’s awesome. Bookmarklets have felt largely useless to me since I got rid of the bookmarks bar outside of new tabs. This might make them useful again.