1
How do I run snippets of Javascript in the address bar, I tried in Firefox something like: javascript: alert("lol")
, but it seems to be an old and not working technique(at least not in Firefox).
The idea is to have a bookmark in the bookmark bar in which it is a Javascript snippet, so that I click it and it does some procedures on the current page (on which the user is present), such as displaying the page address, capturing an element value in the DOM..
Is it possible? There are special plugins for this(firefox, Chrome..), and yet, it would be possible to use Jquery to facilitate coding?
If you want to create a script that works as a plugin for third party pages, then I advise you to use Greasemonkey for Firefox or Tampermonkey for Chrome/Opera
– Tobias Mesquita
has so many ways to do something like this. Type "run javascript url firefox" in google and see the options. This question had no minimal research effort.
– durtto
Perhaps because there are so many forms, in so many languages(br,en,es.), why not a topic in the largest programming community in Brazil, with complete and useful answers with clear and current information? I think so.
– Ale