salien-bot icon indicating copy to clipboard operation
salien-bot copied to clipboard

the userscript on greasemonkey is not working at all

Open Rysanlos opened this issue 6 years ago • 15 comments

I don't know what to do, I installed the script, I open the mini game but nothing happens, also when I'm joining a game, the script is not working

Rysanlos avatar Jun 21 '18 23:06 Rysanlos

Probably one line missing there

// @match        https://steamcommunity.com/saliengame/play/
// @match        https://steamcommunity.com/saliengame/play

instead of only

// @match        https://steamcommunity.com/saliengame/play/

EoD avatar Jun 21 '18 23:06 EoD

sorry it's been readded

meepen avatar Jun 21 '18 23:06 meepen

Same here, looks like the issue is that the userscript tries to use the gApp aka pixi before it's properly loaded.

duke1102 avatar Jun 21 '18 23:06 duke1102

also with the last version 6 it's not working

Rysanlos avatar Jun 21 '18 23:06 Rysanlos

it could be that firefox's monkey addon might load the window too quickly? i will install firefox to try and fix it

meepen avatar Jun 21 '18 23:06 meepen

I recommend using Tampermonkey for Firefox. Greasemonkey was always a bit unreliable.

IceQ1337 avatar Jun 21 '18 23:06 IceQ1337

Works fine with Violentmonkey on Firefox.

ehea617 avatar Jun 21 '18 23:06 ehea617

even so, i'd like to have it compatible

meepen avatar Jun 21 '18 23:06 meepen

I installed tampermonkey on firefox, it's seems working, but not with greasemonkey :/

Rysanlos avatar Jun 21 '18 23:06 Rysanlos

The issue is greasemonkey runs the script to fast. There is @run-at options in userscripts but I couldn't get a value where it wasn't erroring.

You'll probably need to wrap the whole function in something that waits until gApp is defined before initalizing.

Js41637 avatar Jun 21 '18 23:06 Js41637

working great with violentmonkey for firefox

ghost avatar Jun 21 '18 23:06 ghost

well i've added a notification until we figure out how to support it.

meepen avatar Jun 22 '18 00:06 meepen

I could get past the errors but then the script just wouldn't do anything. Greasemonkey is super confusing and so bad compared to Tampermonkey. I think it has something to do with it not having the same access to the page that tampermonkey has.

Js41637 avatar Jun 22 '18 00:06 Js41637

Yeah I tried the same thing and gave up as well. no clue what is happening either, added a whole try catch block and it didn't spit out errors even.

meepen avatar Jun 22 '18 00:06 meepen

Well I got past the initial errors but now the script fails trying to add the ticker to PIXI (gApp) with Error: Permission denied to access object

Js41637 avatar Jun 22 '18 01:06 Js41637