Skip to content
This repository has been archived by the owner on Jul 17, 2018. It is now read-only.

the userscript on greasemonkey is not working at all #22

Open
Rysanlos opened this issue Jun 21, 2018 · 15 comments
Open

the userscript on greasemonkey is not working at all #22

Rysanlos opened this issue Jun 21, 2018 · 15 comments

Comments

@Rysanlos
Copy link

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

@EoD
Copy link
Collaborator

EoD commented Jun 21, 2018

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/

@meepen
Copy link
Owner

meepen commented Jun 21, 2018

sorry it's been readded

@duke1102
Copy link

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

@Rysanlos
Copy link
Author

also with the last version 6 it's not working

@meepen
Copy link
Owner

meepen commented Jun 21, 2018

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

@IceQ1337
Copy link

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

@ehea617
Copy link

ehea617 commented Jun 21, 2018

Works fine with Violentmonkey on Firefox.

@meepen
Copy link
Owner

meepen commented Jun 21, 2018

even so, i'd like to have it compatible

@Rysanlos
Copy link
Author

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

@Js41637
Copy link
Contributor

Js41637 commented Jun 21, 2018

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.

@ghost
Copy link

ghost commented Jun 21, 2018

working great with violentmonkey for firefox

@meepen
Copy link
Owner

meepen commented Jun 22, 2018

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

@Js41637
Copy link
Contributor

Js41637 commented Jun 22, 2018

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.

@meepen
Copy link
Owner

meepen commented Jun 22, 2018

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.

@Js41637
Copy link
Contributor

Js41637 commented Jun 22, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants