In most web browsers, you can execute JavaScript in the address bar (i.e.
javascript:alert('Test');
Is it possible to execute jQuery in the address bar?
One word: yes :)
Use Firebug or the IE developer tools like you normally would, make sure that the current page has script references to the jQuery library, then go to town on your selectors!
It's a good way to test selectors and functionality before incorporating it into your code
EDIT: slightly mis-read the question, but the answer is still the same. Whether it's the address bar or the console window, you can use jQuery. Try putting javascript:$("#content").remove()
into your address bar while viewing this page and see what happens ;)
Internet explorer address bar:
javascript:alert(eval('put any block of code here'))
This example will un-blackout wikipedia (1/18/2012)
javascript:alert(eval('$("#mw-sopaOverlay").hide(); $("#content").show();'))
You have to alert the return value of the code because IE wants to place the return value on another page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With