-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working in browsers without ECMAScript 2020 support #57
Comments
Please provide the link to the video and the error message from the developer console (F12) |
I was getting it on various videos but can't remember any of them. They came up when searching for "age restricted test". |
I need more information otherwise I can't help you. |
Script may no works with Waterfox Classic 2021.04 - detected by @decembre. I no tested this with Waterfox Classic 2021.07 - I only know in next classic release programmers try overidde UA to emulate useage Firefox 68. |
Yes, thats because Waterfox Classic doesn't support ECMAScript 2020 features like "optional chaining" used by this script :( |
Thanks: |
HI zerody, not working here either. I confirm you the same issue with Palemoon as with Waterfox. a workaround would be nice. |
At some point we could make a build step and compile the release to be compatible with older browsers. Might give it a try if this is needed. |
that would be wonderful )) |
works on Firefox 91.0.3, so no geolocked and not hidden by paid membership if broken with your Firefox 91 / Chrome 92 (and other updated chromium browser) / Safari 14 so needed is error log from dev tools console. For PaleMoon/Basilisk/Waterfox Classic maybe better create mega theard as new issue. |
I'm currently working on it as seen above. Are any of you willing to test this out and report back if this fixes the issue? |
Tested (tampermonkey + Waterfox Classic 56.5) but not working: Note it's maybe due to the formating? |
But still works in Firefox 92 + Tampermonkey. |
not working on palemoon. |
This comment has been minimized.
This comment has been minimized.
Ok after hard looking I think I'm confident that I've found the problem and a possible solution. This is probably gonna be a 2 stage fix. |
In Waterfox Classic the execution works with the following babel.config.js preset:
|
@zerodytrash Second problem lies here. if ((typeof GM_info === "undefined" ? "undefined" : _typeof(GM_info)) === "object" && GM_info.scriptHandler === "Greasemonkey") {
window.eval("(" + initUnlocker.toString() + ")();");
} else {
initUnlocker();
} |
A direct execution (without |
That's the weird thing, because I used Greasemonkey since it looks like it's the only option for Palemoon. |
I assume the following (not tested): |
We could maybe use a different injection method to get around this. What do you think? const nScript = createElement('script', { innerHTML: "(" + initUnlocker.toString() + ")();" });
document.head.append(nScript); |
The web page (YouTube) does not know |
Is there perhaps a way to tell babel to declare such variables per function instead globally? |
Was just about to give up and then I got a clever idea ;) Check if the IIFE has a argument (which it won't the first time), then call the IIFE with if (typeof GM_info === "object" && GM_info.scriptHandler === "Greasemonkey" && !arguments[0]) {
window.eval("(" + arguments.callee.toString() + ")(true);");
} else {
initUnlocker();
} We also need to pass the This would be more than fine, until we find a way to do it within the bundle process. |
if i get it right drunkwinter, u found an idea but havent got time to completly write it for the final js ? |
Not at all, consider it almost done ;) |
Tested for: |
Happy to hear! Can you do one last test for me please and see if this one works too? |
Re -Tested with your very last version: |
You're the king drunk winter! i was finding it sooo creepy that youtube asks the scanning of an id to then resell private information. works like a charm )) |
Hi drunkwinter, this has nothing to do with the topic but since u seem to know how to play with greasemonkey for palemoon, it stopped working on youtube, i still have the script of version code 3.3 & the script part of 3.4 above re-added to greasemonkey didn't work.. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
"Maybe what @xlovinglyx uses? https://chrome-extension-downloader.com/" No drunkwinter, (I'm a pale moon user, your previous fix for waterfox worked in palemoon too) I was asking a script based fix, & all other comments, made a point, the addon loops specific parts |
Both don't work with Violentmonkey + Waterfox Classic 2021.08.1 |
Tested it on Waterfox Classic 2021.08.1 with Violentmonkey and everything seems to work accordingly. Make sure you disable the old version if you didn't already overwrite it, also make sure to disable all other extensions you might have and see if that works. If you still have the issue, then it's best to wait till the patch is officially released and if you then get the same result, it might be better if you created a separate issue/report. When the patch releases (soon) this issue will be closed. |
Created the new Waterfox Classic profile. Still I see only "Verify your age" message... it's 2021.08.1 (64-bit) on Win7. |
You installed without rename/unpack? |
Huh, of course I extracted JS file from ZIP archive. :) |
So demo links end error from devtools are needed. We don't have 🔮. |
Like I said, wait for the official patch before opening a new issue. Your issue has likely nothing to do with this one. |
The latest version should be compatible with Waterfox Classic. |
@ DrunkWinter Latest v2.2.1 works like a charm. |
I am trying to watch age restricted videos but am still getting forced to verify my ID even though I am using both this script and a VPN set to Canada.
The text was updated successfully, but these errors were encountered: