Zoeken in Support

Vermijd ondersteuningsscams. We zullen u nooit vragen een telefoonnummer te bellen, er een sms naar te sturen of persoonlijke gegevens te delen. Meld verdachte activiteit met de optie ‘Misbruik melden’.

Learn More

Deze conversatie is gearchiveerd. Stel een nieuwe vraag als u hulp nodig hebt.

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

  • 2 antwoorden
  • 9 hebben dit probleem
  • 8 weergaven
  • Laatste antwoord van 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.

Bewerkt door cor-el op

Alle antwoorden (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.