• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    Userjs not working

    Opera for Windows
    2
    2
    1099
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Deleted User
      Deleted User last edited by

      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?

      Reply Quote 0
        1 Reply Last reply
      • leocg
        leocg Moderator Volunteer last edited by

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

        Reply Quote 0
          1 Reply Last reply
        • First post
          Last post

        Computer browsers

        • Opera for Windows
        • Opera for Mac
        • Opera for Linux
        • Opera beta version
        • Opera USB

        Mobile browsers

        • Opera for Android
        • Opera Mini
        • Opera Touch
        • Opera for basic phones

        • Add-ons
        • Opera account
        • Wallpapers
        • Opera Ads

        • Help & support
        • Opera blogs
        • Opera forums
        • Dev.Opera

        • Security
        • Privacy
        • Cookies Policy
        • EULA
        • Terms of Service

        • About Opera
        • Press info
        • Jobs
        • Investors
        • Become a partner
        • Contact us

        Follow Opera

        • Opera - Facebook
        • Opera - Twitter
        • Opera - YouTube
        • Opera - LinkedIn
        • Opera - Instagram

        © Opera Software 1995-