Questions tagged [userjs]

"Userjs" is a name for Opera's userscript support. For more exposure, use the "userscripts" tag in conjunction with the "opera" tag, but not all "userscripts" answers will work on Opera as-is.

"Userjs" is a name for Opera's userscript support. The Opera browser supports user-javascript in a slightly different way than Google Chrome or Firefox or Tampermonkey.

Related tags:


See also:

15 questions
3
votes
1 answer

jQuery in Opera userJS

I started studying UserJS in Opera. To test, I tried to connect the jQuery library and the jQuery UI, but it did not work. Here's the code: (function( ) { var headID = document.getElementsByTagName("head")[0]; var newScript =…
Anton
  • 921
  • 3
  • 12
  • 26
2
votes
1 answer

Opera User-JS: how do I get the raw server response?

I'm writing some user-JS for Opera. It reacts on a request that doesn't have an extension, e.g. /stuff/code/MyFile, or has one not related to JavaScript, e.g. /stuff/code/load.do. The content-type of the response is set to text/html, even though it…
sjngm
  • 12,423
  • 14
  • 84
  • 114
2
votes
3 answers

Code works as an Opera UserJS, but gives "undefined" errors in Chrome and Greasemonkey userscripts

I am trying to write a cross-browser userscript that hides IMDb's rating and replaces it with a link that allows the user to rate the show/film later on. In Opera, this approach already works, but Firefox and Chrome both stumble upon an undefined…
2
votes
2 answers

Making all images' sources https:// using *.user.js

EDIT: Why doesn't this work? @match http://tumblr.com/* $(document).ready(function() { $(img).each(function() { var i = $(this).attr("src"); var n = i.replace("http://", "https://"); $(this).attr("src", function() { …
W Biggs
  • 663
  • 1
  • 10
  • 18
2
votes
0 answers

Opera: security error when trying to read value from script storage

I'm writing a user JS script for Opera, and I'm trying to use window.opera.scriptStorage to store and retrieve values. I have created a type called __EnvDriver to encapsulate the script storage. window.__EnvDriver.storage =…
ShdNx
  • 3,172
  • 5
  • 40
  • 47
1
vote
1 answer

Is there a way to provide user.js settings' management in Chrome?

I'm a developer of http://userscripts.org/scripts/review/86621, a simple script, which allows to monitor your websites' positions in Google SERPs. A list of user's websites sets by an array in the beginning of the script. It was acceptable for me,…
samlowry
  • 227
  • 1
  • 2
  • 8
1
vote
1 answer

Scroll to anchor

I have the following userjs which is intended to remove anchor part of the URL but still jump to it: // ==UserScript== // @name PurgeAnchor // @include * // ==/UserScript== (function() { var reg=/^(.*)\#(.*)$/; var match=reg.exec(location); …
ZyX
  • 52,536
  • 7
  • 114
  • 135
1
vote
0 answers

Client-side Javascript: Showing the browser's address bar when a site hides it?

I'm trying to make a short client-side script that will run as UserJS in something like Greasemonkey. The script is to prevent sites from hiding the browser's navigation buttons. Topic info here. I've come up with Window(location=yes, toolbar=yes,…
David
  • 11
  • 1
0
votes
1 answer

Why is this greasemonkey/javascript code operating on colons?

It works as expected - the desired functionality is to be able to invoke bang!'s more easily using the semi-colon key. However for some reason it also causes a perpetual refresh for URLs that contain a colon (for which it should actually do…
0
votes
1 answer

What event name use in Opera's userJS to trigger a function when page finished loading and has downloaded all its assets like img,script,css etc.?

This is my code: document.addEventListener('load', function () { alert(document.getElementsByTagName("DIV").length); }, false); //'load' event above doesn't show any response, alert isn't…
rsk82
  • 28,217
  • 50
  • 150
  • 240
0
votes
1 answer

This function isn't callable, is it?

This script is not from my website, I would like to call crocodile() because now I have to wait 20 seconds before it is called. I would like to achieve it via browser console or UserJS or Selenium. However I suspect it is not possible as explained…
Karol Zlot
  • 2,887
  • 2
  • 20
  • 37
0
votes
3 answers

How to click input type="submit" in newest firefox?

I made quite popular UserJS for Facebook, but since FF 3.6.13 version it doesn't work (for that version). I just have no idea how can I click such elements: ? Clicking such buttons…
Kostrzak
  • 161
  • 4
  • 19
0
votes
1 answer

Is there a way to run external program in a opera widget or extension? And about its encoding problem in Linux

I'm working on an extension which must be able to call a external program. In firefox, nsIProcess can be used and it's very easy. But opera's UserJS or widget seems very weak and have no such function. Is there some working around? Another question,…
Shiva Wu
  • 1,074
  • 1
  • 8
  • 20
0
votes
1 answer

User JS read out by webpage JS

Currently I add some functionality to webpages via UserJS in Opera. I was wondering if the webpage designer could see what javascript actions I'm doing in my UserJS on his webpage (e.g. via javascript)? Is this possible? I think it doesn't because…
RvdK
  • 19,580
  • 4
  • 64
  • 107
-1
votes
1 answer

How do set UserScript in Microsoft Edge

How do i can install my user.js into Microsoft Edge 38.14 in Windows 10 Mobile Enterprise? Perhaps someone has link to a manual.
Rmn
  • 47
  • 2