New answers tagged


In OS X you can use AppleScript to run JavaScript in Chrome: xj(){ osascript -e'on run{a}' -e'tell app"google chrome"to tell active tab of window 1 to execute javascript a' -eend "$1"; } Firefox does not support AppleScript.


As mentioned, unfocused tabs are still potentially running. It's not impossible that AJAX sites like StackExchange would become compromised, and deliver evil malware instead of delicious notifications. I wouldn't say this is a big threat to be concerned about at the moment. Malware is usually delivered immediately when you load the page. That's what I'd ...


Answer to question 1: JavaScript in unfocused tabs usually can still run as you can see with ewbsites that raise themselves after some amount of time. So, they are not completely inactive per default.

Top 50 recent answers are included