You need to be logged in to post in the forums. If you do not have an account, please sign up first.
My UJS Manager service
Here is my take on Unite technology. It's simple manager for User Scripts directory.Features:
- enable/disable selected script
- display userjs header fields
- edit userjs settings (requires modifications to script files)
- quick find through scripts
To install, save file anywhere, drop into Opera window and pick you user scripts folder.
Although I haven't had any problems with corrupted/deleted files, it's better to backup user scripts directory before trying this service.
Download: UJS Manager
Editing scripts from manager requires special modifications to scripts and is more of an expert feature. So not for faint of heart
.Here is a snippet of my user script that shows three object properties that will be exposed to UJS Manager as nice switchable checkboxes:
prettyify_js : /*@Prettify Javascript@bool@*/false/*@*/, replace : /*@__replace 3@string@*/'debugger; if (! (a[J]'/*@*/, replace_scripttext : /*@Replace text in scripts@bool@*/false/*@*/,
Idea is to wrap any javascript variable into special formatted comment.
Syntax is:
/*@CUSTOM_NAME@(bool|int|string)@*/JS_VARIABLE/*@*/
Here's picture of some helper script that I've modified to expose most useful settings: http://files.myopera.com/d.i.z./files/ujs02.png
Originally posted by i-0:
Is it a bug? Can it be fixed?
I'm not the developer here obviously, but my guess is that it's not a bug - it's intended behaviour, but it could potentially be fixed. I would guess most users wouldn't expect sub-folders to be shown, given that sub-folders aren't counted as "active" by Opera for script execution either.
Originally posted by lucideer:
Why? I simultaneously use scripts located in several folders, by specifying them as follows:given that sub-folders aren't counted as "active" by Opera for script execution either
[User Prefs] User JavaScript File=folder1,folder2,folder3
If I understood you correctly of course.
Thanks for the awesome extension!
24. September 2010, 13:29:56 (edited)
Originally posted by spadija:
Opera scripts are meant to be run as *.js, being able to rename before installing would also help
Not every scripts work after rename. If the addEventLister is missing, many script doesn't work, only in "GM emulate mode" with .user.js suffix.
BTW the name of scripts should the script's real name with underline for example: Userscripts.org_Admin_Enhancer.user.js instead of 73213.user.js
Originally posted by Penge4:
Not every scripts work after rename. If the addEventLister is missing, many script doesn't work, only in "GM emulate mode" with .user.js suffix.
Yeah. By "some Opera scripts", I meant scripts designed for Opera that aren't supposed to run in GM emulation mode. Obviously, not all scripts need to be renamed, just some, hence why being able to rename before (or even after) saving would be useful.
I'm doing this when one of my installed script is no longer working as expected, to know if some newly installed scripts could interfere, or if this could be due to the latest Opera version installed (including some weekly builds)
What do you think?
TIA
* Added: CodeMirror editing component which supports syntax highlighting, line numbering and more
* Added: possible to change file name of user script on installing
* Fixed: ujs_manager_installer.js script is now less strict on checking if given page contains script only. Fixes compatibility with some other user scripts.
* Fixed: escaping problems that caused line endings to be changed on installing script
Originally posted by d.i.z.:
* Added: CodeMirror editing component which supports syntax highlighting, line numbering and more
Coooo-el!
blog (en/de) | opera:gpu | houmpäidsch (de) | Extension: cleanPages (en)
I got a problem with it though: when clicking the Edit button of an arbitrary script, I don't see the source anymore (as with previous versions), but Opera goes to 99% CPU usage instead.
Using v11 snapshot (1029) on XP SP3.
Originally posted by netwolf:
I got a problem with it though: when clicking the Edit button of an arbitrary script, I don't see the source anymore (as with previous versions), but Opera goes to 99% CPU usage instead.
Maybe specific to some script? It would be bug in CodeMirror then which should be reported.
The highlighting is a bit on the pale side for my taste (monitor calibrated to ECI-RGB) but OK...
blog (en/de) | opera:gpu | houmpäidsch (de) | Extension: cleanPages (en)
I have not really worked on UJS Manager lately so I don't know when I will have something for release though. It might take a while.
@ohmanger: Sounds like you might not have enough privileges to access files in that directory. Try some other like C:\userjs.
It doesn't work even when opened "manually" from the side panel. Unite Home does work.
16. December 2011, 20:42:39 (edited)
Originally posted by nctrns:
I'm also getting the 404. Tried deleting and reinstalling. Tried opening from side panel and //admin.home.rif.operaunite.com/# and that didn't work either.I'm using Opera 11.60 and the latest UJS Manager. I get a 404 when I try to open it. Any help?
Just tried it on the laptop and I also get the 404 error.
So for now just download 3.1 which has this problem fixed - https://unite.opera.com/application/download/401/3.1/ and in the meantime I'll try to figure out why did this screwup happen.

blog (en/de) | opera:gpu | houmpäidsch (de) | Extension: cleanPages (en)
Originally posted by d.i.z.:
OK. Latest version (3.2) doesn't work because it is actually a 3.0 version. I have fixed that problem in 3.1 which was published on unite.opera.com but apparently some time later it got reverted to 3.0 and at the same time labeled as 3.2.
So for now just download 3.1 which has this problem fixed - https://unite.opera.com/application/download/401/3.1/ and in the meantime I'll try to figure out why did this screwup happen.
There is some bad css in client_style.css, -o-text-overflow should be just text-overflow. Should also see if the new codemirror and jquery would work.
Do you think Tampermonkey could be ported or used to extend UJS Manager? If it was combined with an Extension we could have a working gm-menu.
But the scripts don't work at all, as if they were not installed. The four scripts I have installed are:
1. aagmfunctions.js
2. No Click to Activate
3. UJS Manager - script installer
4. YousableTubeFix for Opera
None of them (except UJS Manager - script installer) seem to work; toggling them has no effect. I still have to click a Flash video to 'use the control'. Can anyone help?
My setup: O11.60b1185 (x86_64) on Ubuntu 10.04, Flash 11.2 beta 3. No other extensions installed.
@toyotabedzrock: thanks. Will try to fix those some day. As for doing more of what Tampermonkey can do, I'm afraid I won't have much time to work on that. I can only hope that someone will pick up the sources (https://github.com/rchl/UJSManager) and do something creative with them.
For something like UJS manager to work, it needs to be able to turn scripts on and off. To do that, it needs to be able to rename the scripts so that Opera will ignore them. To do that, the extension needs to be able to rename files, which it can't do.
Showing topic replies 151 - 190.