在 Firefox 版本 13 中,小书签(带有javascript:
网址,例如javascript: alert("it works")
停止工作。有没有什么解决办法可以使用javascript:
Firefox 13 中的书签?
这是一个后果Bug 728313 - 在新选项卡上对小书签使用书签关键字失败 https://bugzilla.mozilla.org/show_bug.cgi?id=728313, also Bug 739387 - Aurora 13a 新选项卡显示不允许选择 javascript 书签 https://bugzilla.mozilla.org/show_bug.cgi?id=739387。此错误影响 Firefox 13 及以上版本。
修复后的结果是错误 723808 https://bugzilla.mozilla.org/show_bug.cgi?id=723808, javascript:
书签在刚刚创建的新选项卡中被禁用。如果您首先加载几乎所有 URL,包括about:blank
,那么 Javascript 书签将在该选项卡中工作。
Note that this is about Javascript bookmarks (bookmarklets). You cannot use this workaround to load javascript:
URLs typed directly in the location bar. These have been disabled since Firefox 6, as a consequence of bug 656433 https://bugzilla.mozilla.org/show_bug.cgi?id=656433 (phishing of javascript:
URLs). Bug 680302 https://bugzilla.mozilla.org/show_bug.cgi?id=680302 is a feature request to allow turning javascript:
URLs back on through a preference. Valadrem https://addons.mozilla.org/en-US/firefox/user/31631/ has written the InheritPrincipal extension https://addons.mozilla.org/en-US/firefox/addon/inheritprincipal/ to remove this restriction (I haven't tested it). You can still type and run Javascript code in the Scratchpad http://support.mozilla.org/en-US/questions/917723 (press Shift+F4, type code, press Ctrl+R).
您可以从 URL 栏或书签运行的 Javascript 有一些限制。例如,从 Firefox 7 开始,您无法调整窗口大小 https://support.mozilla.org/en-US/questions/885558#answer-259571(修复的结果错误 565541 https://bugzilla.mozilla.org/show_bug.cgi?id=565541); the services.sync.prefs.sync.dom.disable_window_move_resize http://kb.mozillazine.org/Resizing_oversize_window控制此限制。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)