Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Javascript interpretation in the URL box doesn't work any more.

  • 2 个回答
  • 9 人有此问题
  • 8 次查看
  • 最后回复者为 cor-el

more options

Firefox was updated on my computer yesterday, 8/18/11. The feature that permitted Javascript be copied into the URL-finding box and run no longer works.

I notice the error on http://www.ironsudoku.com/. The following Javascript is supposed to put little green numbers into the empty cells:

javascript: void((function() { if(window) { var js=document.createElement("SCRIPT"); js.src="http://www.brittlefish.com/code/isie.js"; document.getElementsByTagName("HEAD")[0].appendChild(js); setTimeout(fn=function() { try { gautofill(); } catch(e) { setTimeout( "fn()", 10 ); } } , 1 ); } } )())

It doesn't work since the Firefox update. Other people have remarked on the same issue.

Firefox was updated on my computer yesterday, 8/18/11. The feature that permitted Javascript be copied into the URL-finding box and run no longer works. I notice the error on http://www.ironsudoku.com/. The following Javascript is supposed to put little green numbers into the empty cells: <pre><nowiki>javascript: void((function() { if(window) { var js=document.createElement("SCRIPT"); js.src="http://www.brittlefish.com/code/isie.js"; document.getElementsByTagName("HEAD")[0].appendChild(js); setTimeout(fn=function() { try { gautofill(); } catch(e) { setTimeout( "fn()", 10 ); } } , 1 ); } } )())</nowiki></pre> It doesn't work since the Firefox update. Other people have remarked on the same issue.

由cor-el于修改

所有回复 (2)

more options

This was an intentional change to prevent some attacks that tricked users into pasting malicious JavaScript into the address bar: https://bugzilla.mozilla.org/show_bug.cgi?id=656433

You can still run JavaScript snippets by pasting them in the built-in Web Console.

more options

I think that it should also be working as a (keyword) bookmark with the JavaScript set as the location.