:tools: Scheduled maintenance

Heads up! Downtime for the Forums, related to the NodeBB upgrade, is planned for Thursday, December 14, starting from 10:00 UTC.
Please make sure to finish all your posts before this time. The downtime should only last for a few minutes.

Userjs not working

  • I'm trying to add userjs to a website. I went into Site preferences->Scripting->User javascript folder, and selected a folder of choice. In that folder, a file exists that has exactly this code, and nothing else:

    alert(0);
    

    Now, when I reload the page, I expect Opera to pick up the script I've put there and execute it.

    Sometimes I can see it in the inspector, and sometimes it's nowhere to be found. Whatever the case, it never executes. I'd expect an alert to be the simplest thing to try, to see if a script does anything at all, and sure enough, this should work absolutely fine.

    I've tried renaming the script to default.js. For some reason I felt that Opera must pickup script in some sort of order, starting with something, and that something might as well be default.js. But it makes no difference.

    So the question is:
    How do I make Opera pick up my userjs?

  • I know nothing about it but it seems more a bookmarklet that an script.

    Here is a page about userjs in Opera: http://www.opera.com/docs/userjs/examples/

    Note that userjs works only on Opera Presto (Opera 12 and older).

Log in to reply
 

Looks like your connection to Opera forums was lost, please wait while we try to reconnect.