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

Some questions about WebRequest Rules #1

Closed
wordpure opened this issue Feb 19, 2024 · 2 comments
Closed

Some questions about WebRequest Rules #1

wordpure opened this issue Feb 19, 2024 · 2 comments

Comments

@wordpure
Copy link

wordpure commented Feb 19, 2024

Sorry, I did not find a feedback channel for WebRequest Rules, so I can only consult here.

  1. What is the function of Settings - Miscellaneous - Before loading rules?

    At first I thought it was a global tool class, but after adding the Global Tools template, the rule editing area still does not receive the completion prompt for the isDomain() function.

    Did I guess wrong? Or it can't be called directly?

  2. Although most of the functionality of this extension is self-explanatory, it would be more user-friendly with the following additions.

    1. Commonly used functions and corresponding rule examples, such as
      • Redirect request
        remove external link jumps
        redirect to the mirror service...
      • Modify the header
        Disguise the useragent as Chrome or Edge
        remove the site's content-security-policy, x-frame-options...
      • Application of resource types and extended permissions
        limit page redirection to main_frame and sub_frame
        remove history records after redirection...
    2. Provide corresponding instructions for advanced functions
      such as Add template, Adjustable rule priority, Before loading rules, etc.
  3. Are you planning to make WebRequest Rules open source? Or provide it with a dedicated place to collect user feedback?

@ichaoX ichaoX transferred this issue from ichaoX/ext-textFragment Feb 19, 2024
@ichaoX
Copy link
Owner

ichaoX commented Feb 19, 2024

  1. What is the function of Settings - Miscellaneous - Before loading rules?
    At first I thought it was a global tool class, but after adding the Global Tools template, the rule editing area still does not receive the completion prompt for the isDomain() function.
    Did I guess wrong? Or it can't be called directly?

Your guess is correct.
The reason why the autocomplete is not working currently is due to technical limitations with jsdoc/typescript, as referenced in microsoft/TypeScript#7237 microsoft/TypeScript#15626 jsdoc/jsdoc#1826.

2. Although most of the functionality of this extension is self-explanatory, it would be more user-friendly with the following additions.

1. Commonly used functions and corresponding rule examples, such as
   
   * Redirect request
     remove external link jumps
     redirect to the mirror service...
   * Modify the header
     Disguise the useragent as Chrome or Edge
     remove the site's content-security-policy, x-frame-options...
   * Application of resource types and extended permissions
     limit page redirection to `main_frame` and `sub_frame`
     remove history records after redirection...

2. Provide corresponding instructions for advanced functions
   such as `Add template`, `Adjustable rule priority`, `Before loading rules`, etc.

I agree that having examples and detailed instructions would be nice.

3. Are you planning to make WebRequest Rules open source? Or provide it with a dedicated place to collect user feedback?

Yes, I have plans to open source this project.

@wordpure
Copy link
Author

The reason why the autocomplete is not working currently is due to technical limitations with jsdoc/typescript, as referenced in microsoft/TypeScript#7237 microsoft/TypeScript#15626 jsdoc/jsdoc#1826.

It is a pity.

Yes, I have plans to open source this project.

Very much looking forward to it.

ichaoX added a commit that referenced this issue Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants