Skip to content
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

Add Support For More APIs #33

Closed
MuhammadBayiz opened this issue Apr 9, 2023 · 21 comments
Closed

Add Support For More APIs #33

MuhammadBayiz opened this issue Apr 9, 2023 · 21 comments
Labels
enhancement New feature or request

Comments

@MuhammadBayiz
Copy link

Hi, i Have a Particular Script That Requires Some API Which is Not Supported by Chrome XT Unfortunately and I'm asking to support them.

Required APIs:
grant (GM_getValue, GM_setValue, GM_addValueChangeListener, GM_registerMenuCommand, GM_download)

@JingMatrix
Copy link
Owner

Tell me the script and describe which important function is missing particularly.
Those APIs are too hard to support, I would like to give partial support to solve particular problems.

@JingMatrix JingMatrix added the enhancement New feature or request label Apr 9, 2023
@MuhammadBayiz
Copy link
Author

MuhammadBayiz commented Apr 9, 2023

This script in particular
https://greasyfork.org/en/scripts/427320-imdb-quick-search

Also this script
https://github.com/FarisHijazi/Rarbg-Enhancer-UserScript

There's no missing function because they don't work

@JingMatrix
Copy link
Owner

The first script is now running well.

The second one is running, but its function may not work since Android Chrome doesn't support @require from https://raw.githubusercontent.com.

@JingMatrix
Copy link
Owner

As a solution, you may ask the original author to follow this advice: https://github.com/orgs/community/discussions/25343

@MuhammadBayiz
Copy link
Author

First script works like a charm, as for the second one I contacted the author and waiting for an answer. So for now (hopefully for ever) my issue is solved.
Thanks for the amazing respond for issues and question. Great support! Keep up the good work.

@JingMatrix
Copy link
Owner

Thanks for your comments!

The second script is now working as well.
You may need to reinstall the script (due to a bug in the front-end part).

The script is consuming a lot of RAM. (Persionally, I conjecture there is better way to remove AD redirections.)
This makes ChromeXt not ideal for this script.

@JingMatrix JingMatrix reopened this Apr 9, 2023
@JingMatrix
Copy link
Owner

I write a simple script removing all ADs there by blocking javascripts:

// ==UserScript==
// @name	Disable ADS - Rarbg
// @namespace	JingMatrix
// @match	https://rarbgunblocked.org/*
// @run-at	document-start
// ==/UserScript==

const meta = document.createElement("meta");
meta.setAttribute("http-equiv", "Content-Security-Policy");
meta.setAttribute("content", "script-src 'none'");
try {
  document.head.append(meta);
} catch {
  setTimeout(() => {
    document.head.append(meta);
  }, 0);
}

It works perferctly for ChromeXt, not sure for other userscript engines.
It seems there is no need to enter CAPTCHA neither.
To install it, you save it to your phone with a name like rarbg.user.js and open it with ChromeXt.
You may ask the original author to adopt it.

@MuhammadBayiz
Copy link
Author

But wouldn't disabling JavaScript cause some down sides? Like Limits the website's functions?

@MuhammadBayiz
Copy link
Author

Also i didn't understand this

It seems there is no need to enter CAPTCHA neither.

So does the script bypass the captcha or the captcha is disabled?

@JingMatrix
Copy link
Owner

JingMatrix commented Apr 9, 2023

I think the captcha is disabled.
That website could run without javascript, you need to try and see how it looks.

@MuhammadBayiz
Copy link
Author

Captcha isn't disabled but there's no ads and the website works simple and fast

@MuhammadBayiz
Copy link
Author

Mainly i use the script for the captcha solver it makes using the website easier
The author published a standalone script for the captcha solver but i guess i can't use it with JavaScript disabled

@MuhammadBayiz
Copy link
Author

Beside the script works great now it's Supported! 👍

@MuhammadBayiz
Copy link
Author

Hi! This script has every supported API and yet doesn't work, can you check it please
https://greasyfork.org/en/scripts/388069-subscene-url-search/code

@JingMatrix
Copy link
Owner

Fixed, it was url matching problem.

@MuhammadBayiz
Copy link
Author

Fixed, it was url matching problem.

👏🔥 Thanks

@JingMatrix
Copy link
Owner

Thanks

@MohamadBayz , I also appreciate your help of finding and reporting bugs.
You are contributing to the project to make it better, that is very nice.

@MuhammadBayiz
Copy link
Author

I'm loving this project and Happy to help in any way possible.

@MuhammadBayiz
Copy link
Author

Hi again! A usersctipt I'm trying to use has @Grant None API and it's not supported. Can you check it?
https://greasyfork.org/en/scripts/416491-redirect-to-high-res-image

@JingMatrix
Copy link
Owner

It is the problem of the matching urls.
My code requires the matching url to include :// to start macthing.
You can edit the matching rules in the front-end.

@MuhammadBayiz
Copy link
Author

U r right sorry for my ignorance I didn't notice that. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants