-
Notifications
You must be signed in to change notification settings - Fork 12
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
Firemonkey: 4chan-x incompatibility? #408
Comments
To start with, 4chan-X.user.js is a massive script, 1.1mb & 28,357 lines. It would only be practical for developers to debug it. Some suggestions:
It would be better to use:
Above are only suggestions and not the cause of the incompatibility. Possible CauseThe possible cause of keeping/saving settings is the use of setValue/getValue. The script supports both synchronous
Since the script is supported in asynchronous GM, it should also work in FireMonkey. However, the way script checks the supported APIs, causes issues on FM.
Personally, I would test the supported API once at the start of the script and then use that value for the entire script. if (!(((typeof GM !== "undefined" && GM !== null ? GM.xmlHttpRequest : void 0) != null) || (typeof GM_xmlhttpRequest !== "undefined" && GM_xmlhttpRequest !== null))) {
... I would ... // check the supported asynchronous/synchronous API
const asyncGM = typeof GM === 'object' && !!GM.info; Then use Solution
📌 I am going to add the feature anyway. It will be there for the next upgrade. |
Yeah, I opened an issue exactly 1 year ago on the 4chan-x repo but never got a reply, so I think it's safe to assume the dev is not going to bother with compatibility with other userscript managers. If you can manage to update Firemonkey so that the script can work as intended (which it does actually, it only doesn't save your prefs), I'll forever be grateful and hopefully some other anons will too. |
If the problem is the sync/async checks, and the userscript work fine on Greasemonkey, then hopefully that will solve the issue. Let's see. Note: I have added support for containers (#378) in v2.41
I am waiting for above to release v2.41 |
v2.41 uploaded Try |
Hi sorry for the late reply but 2.41 + @disable-synchGM now make the script finally save your prefs, thank you very much for this! |
Also in v2.42 |
Above feature may make the |
The script doesn't work at all unless I manually "run" it from the FireMonkey popup. |
Hi. Here's the issue I'm experiencing: 4chan-x doesn't keep your settings, if you reload the page, open a thread or navigate to another board, it reverts to default and it always shows the splash screen for the settings panel like it's the first time you're using the script. What could the cause be? I seem to recall that the script used to work with Firemonkey some years ago but now it's unusable.
The text was updated successfully, but these errors were encountered: