simple userscript engine aimed at power users

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: FranklinDM, Lootyhoof

timofonic

Re: simple userscript engine aimed at power users

Unread post by timofonic » 2015-12-12, 21:48

This script isn't compatible. What can happen?

https://greasyfork.org/en/scripts/1203-viewtube-gm

Thanks in advance.

User avatar
ketmar
Lunatic
Lunatic
Posts: 369
Joined: 2015-07-28, 11:10
Location: Earth

Re: simple userscript engine aimed at power users

Unread post by ketmar » 2015-12-13, 12:40

it using synchronous XMLHttpRequest(). sorry, this is not supported.

smason

Re: simple userscript engine aimed at power users

Unread post by smason » 2016-12-08, 21:15

Trying to use this on Windows, you mention userscript directory many times in the documentation but never say where this directory is in the filesystem!
I don't have such a directory after installing Guerilla script, where should I create this directory on Windows 7 so I can drop .js files in it?

User avatar
ketmar
Lunatic
Lunatic
Posts: 369
Joined: 2015-07-28, 11:10
Location: Earth

Re: simple userscript engine aimed at power users

Unread post by ketmar » 2016-12-08, 23:20

in your profile dir. there should be "guerillajs/scripts" directory, and it should be automatically created.

i prolly should add a menu entry to open that directory at least as a new PM tab, so users can copy-paste the path. will think about that. ;-)

_yuyu_
Lunatic
Lunatic
Posts: 253
Joined: 2015-03-02, 14:18

Re: simple userscript engine aimed at power users

Unread post by _yuyu_ » 2016-12-09, 00:35

Using your engine instead of GM. Great, thank you.
But what does this error mean?

Code: Select all

GM_registerMenuCommand(): stub!
Source File: chrome://guerilla-script-jscode/content/startup.js
Line: 101
It appears in the console everytime a page is (re)loaded.
Pale Moon 32-bit on Win 7 x64

User avatar
ketmar
Lunatic
Lunatic
Posts: 369
Joined: 2015-07-28, 11:10
Location: Earth

Re: simple userscript engine aimed at power users

Unread post by ketmar » 2016-12-10, 15:40

i'm not supporting `GM_registerMenuCommand()` API (and there are no plans to implement it), and userscript wants to use it. it is mostly harmless, you just won't get items in page context menu. still, user may be interested in that fact, so instead of ignoring it completely GS outputs console warning. you may ignore it. or use, for example, Console Squared port -- it can collapse similar strings or block console output per-site.

_yuyu_
Lunatic
Lunatic
Posts: 253
Joined: 2015-03-02, 14:18

Re: simple userscript engine aimed at power users

Unread post by _yuyu_ » 2016-12-10, 22:02

ketmar wrote:i'm not supporting `GM_registerMenuCommand()` API (and there are no plans to implement it), and userscript wants to use it. it is mostly harmless, you just won't get items in page context menu. still, user may be interested in that fact, so instead of ignoring it completely GS outputs console warning. you may ignore it. or use, for example, Console Squared port -- it can collapse similar strings or block console output per-site.
Thanks for clarifying.
Pale Moon 32-bit on Win 7 x64

User avatar
ketmar
Lunatic
Lunatic
Posts: 369
Joined: 2015-07-28, 11:10
Location: Earth

Re: simple userscript engine aimed at power users

Unread post by ketmar » 2016-12-11, 22:33

i'll prolly add an option to turn that warnings off in one of the next updates. i hope. ;-)

_yuyu_
Lunatic
Lunatic
Posts: 253
Joined: 2015-03-02, 14:18

Re: simple userscript engine aimed at power users

Unread post by _yuyu_ » 2016-12-12, 12:50

It seems that in PM 27 'guerilla' commands are not available in the Developer Console.
Pale Moon 32-bit on Win 7 x64

User avatar
ketmar
Lunatic
Lunatic
Posts: 369
Joined: 2015-07-28, 11:10
Location: Earth

Re: simple userscript engine aimed at power users

Unread post by ketmar » 2016-12-12, 13:10

that's 'cause developer console prompt is not the same prompt as shown by shift+f2. they are completely independent: first one is js repl, and second one is "generic cli repl". still, those commands are optional anyway: i didn't used 'em for a year or more. i'll eventually convert some of 'em to menu items.

Locked