There is an even better way to prevent this, and that's not having chrome installed at all. Firefox used to be bad, but now it really is not strictly worse in any category.
>Firefox used to be bad, but now it really is not strictly worse in any category.
I can't run javascript bookmarklets in Firefox.[0] This makes Firefox unusable for me on sites like Youtube, Vimeo, etc.
In Chrome, I use this technique extensively to speed up videos beyond 2x. (E.g. 8x playback speed to quickly get past the ads.)
Yes, you can still paste javascript in a Developer Tools console tab to modify the current page's contents but that's very cumbersome.
EDIT to the downvoters:
- manually pasting "javascript:x" in the url bar does nothing to the current webpage
- putting "javascript:x" into a bookmark and then using the UI to select that bookmark launches a new empty tab instead of modifying the current webpage
If I have posted incorrect information, please state what I'm doing wrong. I just tested the above on Firefox 68.0.2.
As fyi... I copied your code and it does not work in Firefox 68.0.2. The browser does nothing. I also made sure of the settings[0] in about:config and browser.urlbar.filter.javascript=false -- and it still doesn't work.
As a lark, I also tried it on an older 57.0.1 and it works fine there. (Dialog popup appears to let you enter a number.) To add to the strangeness, it works even though browser.urlbar.filter.javascript=true
So something changed (security setting?) in Firefox between 57.0.1 and 68.0.2. Whatever the magic incantation is to make javascript bookmarklets work in the latest Firefox the same way it does in Chrome, my google-fu hasn't found it. Until then, I have to use Chrome.
(Other Firefox users said they had to install a browser extension to make javascript work in the url bar. I'd rather run plain Firefox instead of installing any extra extensions.)
I can't run javascript bookmarklets in Firefox.[0] This makes Firefox unusable for me on sites like Youtube, Vimeo, etc.
In Chrome, I use this technique extensively to speed up videos beyond 2x. (E.g. 8x playback speed to quickly get past the ads.)
Yes, you can still paste javascript in a Developer Tools console tab to modify the current page's contents but that's very cumbersome.
EDIT to the downvoters:
- manually pasting "javascript:x" in the url bar does nothing to the current webpage
- putting "javascript:x" into a bookmark and then using the UI to select that bookmark launches a new empty tab instead of modifying the current webpage
If I have posted incorrect information, please state what I'm doing wrong. I just tested the above on Firefox 68.0.2.
[0] https://stackoverflow.com/questions/32782860/javascript-book...