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

Only works in Chrome Devtools

Open ghost opened this issue 5 years ago • 7 comments

Identifier 'moneyPerQuestion' has already been declared

ghost avatar Jan 22 '20 18:01 ghost

Did you paste the code twice? This can be remedied by making our variables non constant or encapsulating, but I don't think this is a bug. V8 has some stuff coming up to handle this in devtools.

On Wed, Jan 22, 2020, 1:11 PM 4424dev [email protected] wrote:

Identifier 'moneyPerQuestion' has already been declared

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ecc521/gimkit-bot/issues/9?email_source=notifications&email_token=AKDVOGZ3DOIDXWE3B2C7FMTQ7CD4JA5CNFSM4KKKGAYKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IIA5PXQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKDVOG233HY6JVJO7MTIEFLQ7CD4JANCNFSM4KKKGAYA .

ecc521 avatar Jan 22 '20 18:01 ecc521

Did you paste the code twice? This can be remedied by making our variables non constant or encapsulating, but I don't think this is a bug. V8 has some stuff coming up to handle this in devtools. On Wed, Jan 22, 2020, 1:11 PM 4424dev @.***> wrote: Identifier 'moneyPerQuestion' has already been declared — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#9?email_source=notifications&email_token=AKDVOGZ3DOIDXWE3B2C7FMTQ7CD4JA5CNFSM4KKKGAYKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IIA5PXQ>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKDVOG233HY6JVJO7MTIEFLQ7CD4JANCNFSM4KKKGAYA .

Sorry, I might have. It didn't work for some reason so I will try it again. I was in a rush and just copied and pasted it.

The real error is 'getEventListeners is not defined'. I'm not sure what it means since I don't really do JS, rather server sided stuff like PHP.

ghost avatar Jan 22 '20 19:01 ghost

getEvenrListeners is a chrome only devtools API. That should have be documented, but I dont think it is.

Where you using firefox?

On Wed, Jan 22, 2020, 2:16 PM 4424dev [email protected] wrote:

Did you paste the code twice? This can be remedied by making our variables non constant or encapsulating, but I don't think this is a bug. V8 has some stuff coming up to handle this in devtools. … <#m_-6954978335502263528_> On Wed, Jan 22, 2020, 1:11 PM 4424dev @.***> wrote: Identifier 'moneyPerQuestion' has already been declared — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#9 https://github.com/ecc521/gimkit-bot/issues/9?email_source=notifications&email_token=AKDVOGZ3DOIDXWE3B2C7FMTQ7CD4JA5CNFSM4KKKGAYKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IIA5PXQ>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKDVOG233HY6JVJO7MTIEFLQ7CD4JANCNFSM4KKKGAYA .

Sorry, I might have. It didn't work for some reason so I will try it again. I was in a rush and just copied and pasted it.

The real error is getEventListeners is not defined. I'm not sure what it means since I don't really do JS, rather server sided stuff like PHP.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ecc521/gimkit-bot/issues/9?email_source=notifications&email_token=AKDVOG34MMLJHNSCOYPXFV3Q7CLSJA5CNFSM4KKKGAYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJUYRSA#issuecomment-577341640, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKDVOG354DVFVC4ORTSPDVTQ7CLSJANCNFSM4KKKGAYA .

ecc521 avatar Jan 22 '20 19:01 ecc521

No, I was actually using Eruda (a mobile console) on Chrome. I even tried to paste the code in the URL bar (with comments removed). Inspect is actually disabled for me so does this mean it does not work for me?

ghost avatar Jan 22 '20 19:01 ghost

getEventListeners is limited to devtools and devtools api on chromium based browsers, so the URL bar would not work. Depending on how Eruda works, and what chrome allows, it is quite possible that it Eruda simply wont work.

getEventListeners is used to defeat isTrusted checks added by GimKit. You could create an extension that used the devtools API to work around isTrusted if you want.

Basically, if getEventListeners isn't available, then the code will have to be modified for your browser/use case.

On Wed, Jan 22, 2020, 2:22 PM 4424dev [email protected] wrote:

No, I was actually using Eruda (a mobile console) on Chrome. I even tried to paste the code in the URL bar (with comments removed). Inspect is actually disabled for me so does this mean it does not work for me?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ecc521/gimkit-bot/issues/9?email_source=notifications&email_token=AKDVOGZZQPAD3T27SASQQKDQ7CMGTA5CNFSM4KKKGAYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJUZD2Q#issuecomment-577343978, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKDVOG4QS2OR3LOR7PBPXADQ7CMGTANCNFSM4KKKGAYA .

ecc521 avatar Jan 22 '20 19:01 ecc521

Got it.

ghost avatar Jan 22 '20 19:01 ghost

This issue would really be a different project - it would require browser extensions or a native app. I don't see this changing any time reasonably soon.

ecc521 avatar Jan 28 '21 01:01 ecc521