Hacker News new | ask | show | jobs
by jasode 2432 days ago
[The following Firefox tests were on Windows 7]

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.)

[0] https://n8henrie.com/2017/11/how-to-open-javascript-bookmark...

1 comments

Huh, that's curious. I'm running 69.0.2 on Ubuntu and it works just fine here.

browser.urlbar.filter.javascript is set to its default of true, I didn't touch that (or any other related settings as far as I remember).

Sorry, in that case I'm out of ideas as well.

Edit: Also works in a completely clean and new profile for me without any settings or addons whatsoever. Strange.

>I'm running 69.0.2 on Ubuntu and it works just fine here.

Thanks for your help. I just tried another test and installed the latest Firefox 70.0 on a clean Windows 7 machine and it does not work there either.

I also tried Ubuntu 19.04 with Firefox 69.0.2 and it does not work there either.

To be clear, pasting the javascript in a console tab of Developer Tools always works. It's only the url bar that seems to ignore javascript.

URL bar doesn't work for me either but saving it as a bookmark does. Here's a quick recording: https://cdn.baltpeter.io/tmp/firefox-bookmarklet.gif