Firefox Browser Add-ons
  • Extensions
  • Themes
    • for Firefox
    • Dictionaries & Language Packs
    • Other Browser Sites
    • Add-ons for Android
Log in
Preview of WebRequest Rules

WebRequest Rules by sycxyc

Customize web requests by coding JavaScript yourself.

Available on Firefox for Android™Available on Firefox for Android™
4.9 (8 reviews)4.9 (8 reviews)
102 Users102 Users
You’ll need Firefox to use this extension
Download Firefox and get the extension
Download file

Extension Metadata

Screenshots
1. Add a rule and Select a "Match Request" template;
2.Modify the function content as needed;
3.Adding one or more event listener functions to a rule;
4.The toolbar shows which rules the current tab matchesInstall the "Code Editor" extension and enable it in Settings for a better coding experienceCreate your own template
About this extension
Full control of the WebRequest API by coding it yourself.

Main Features:
* Cancel requests
* Redirect requests
* Upgrading to a secure request
* Supply authentication credentials
* Modify request headers (user-agent, x-forwarded-for, referer, cookie...)
* Modify response headers (access-control-allow-*, content-security-policy, x-frame-options...)
* Modify response body
* Read request body
* Adjustable rule priority
* Rules grouping
* Complex conditions available
* Customizable templates
* Support for asyncBlocking
* Import/Export settings

This extension is open source and you can file bug reports on the GitHub issue.

Notes:
* Optional permissions need to be enabled manually only if you want to write functionality that relies on these APIs.
* The optional Code Editor feature is provided by the Code Editor extension.

References:
* https://github.com/ichaoX/ext-webRequest/blob/main/docs/Guide.md
* https://github.com/ichaoX/ext-webRequest/blob/main/docs/Examples.md
Rated 4.9 by 8 reviewers
Sign in to rate this extension
There are no ratings yet

Star rating saved

5
7
4
1
3
0
2
0
1
0
Read all 8 reviews
Permissions and dataLearn more

Required permissions:

  • Access browser tabs
  • Access your data for all websites

Optional permissions:

  • Read and modify bookmarks
  • Get data from the clipboard
  • Input data to the clipboard
  • Read your browsing history
  • Download files and read and modify the browser’s download history
  • Access browsing history
  • Display notifications to you
  • Hide and show browser tabs
  • Access browser activity during navigation
More information
Add-on Links
  • Homepage
  • Support site
Version
4.5
Size
1.61 MB
Last updated
a year ago (Mar 23, 2024)
Related Categories
  • Web Development
  • Privacy & Security
License
All Rights Reserved
Version History
  • See all versions
Tags
  • privacy
  • security
  • user scripts
Add to collection
Report this add-on
More extensions by sycxyc
  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

Go to Mozilla’s homepage

Add-ons

  • About
  • Firefox Add-ons Blog
  • Extension Workshop
  • Developer Hub
  • Developer Policies
  • Community Blog
  • Forum
  • Report a bug
  • Review Guide

Browsers

  • Desktop
  • Mobile
  • Enterprise

Products

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Privacy
  • Cookies
  • Legal

Except where otherwise noted, content on this site is licensed under the Creative Commons Attribution Share-Alike License v3.0 or any later version. Android is a trademark of Google LLC.