Requestly
HTTP InterceptorPricingRequestly vs PostmanBlogDocsDownload

Home / Products / Inject Javascript & CSS on any webpage

Test live changes with inject scripts, no code edits

Inject Custom JavaScript & CSS​

Add Custom Attributes to <Script> tag​

Run Local Scripts on Production​

Trusted by 300,000+ developers from Fortune 500 companies.

Easily insert custom scripts into any webpage

Test features, debug issues, or modify behavior without changing the original code. Perfect for quick experiments and faster development. Insert Custom Js and Css on any website - Insert Script Rule Editor

Inject Custom Js and CSS on any webpage​ Learn more -> Run Local Js on Production - Insert Script Rule

Run Local JS on Production​​ Learn more -> IMultiple Scripts Support - nsert Script Rule

Multiple Scripts Support​​ Learn more ->

Collaboration & 1-Click Sharing

Promote consistency and accelerate development by sharing Requestly rules within your team. Collaboration 1 Click Sharing

More features for your testing needs

These HTTP Rules designed for all your local development and testing needs. Modify Responses Intercept, Modify & Mock API Responses in Real-Time Replace string Replace part of URL like hostname, query values. Redirect URL Redirect any URL to a new destination. Modify Headers Modify HTTP request & response headers. Query params Add or Remove Query Parameters Insert scripts Inject Custom JS & CSS on any website(s). Delay network Simulate delay in response of API calls. Modify request body Modify body of website or application POST requests.

Frequently Asked Questions​

What does the Insert Script rule do in Requestly?

The Insert Script rule lets you inject custom JavaScript into any webpage without modifying the website’s source code. This helps you debug applications, test UI changes, override browser behavior, or run custom scripts directly in your browser.

Where can the injected script run?

You can inject scripts on specific webpages, domains, paths, or URL patterns. The script runs only on pages that match your configured conditions.

Is Requestly open-source

Feel free to check out the GitHub repo

Is the Insert Script rule available in the free plan?

Yes. Requestly offers a Free plan with essential features like unlimited header rules and standard HTTP modifications, perfect for getting started.

Does Requestly offer an enterprise plan?

Yes. Requestly offers an Enterprise Plan built for larger teams and organizations that need full control and compliance. It includes unlimited usage, API access, SSO & SAML, GDPR and SOC 2 compliance, user access management, SLAs for support and uptime, invoice-based billing, and priority support via Slack Connect, Email, and Chat.

Contact Us

Is Requestly free for students?

Yes! Requestly is free for students, enjoy access to powerful tools and features with no cost.

My injected script is not running. What should I check?

First, make sure the rule is enabled, the URL matching condition is correct, and the current page matches your configured pattern. Then refresh the page after saving the rule.

Why is my script working on some pages but not others?

The URL pattern may not match all pages, or some pages may load content dynamically after the initial page load. Verify your matching condition and test against the exact page URL.

Why Aren’t My Requestly Rules Working?

Rule not working doc

How do I inject custom JavaScript into a webpage using Requestly?

Create an Insert Script rule, add the target webpage URL in the source condition, paste your JavaScript code or script URL, save the rule, and refresh the page. Your script will run automatically on matching pages.

How do I test UI changes without modifying the application code?

Use the Insert Script rule to change text, hide elements, update styles, or add new UI components directly in the browser. This helps you validate UI ideas before making code changes.

How do I load an external debugging library on a webpage?

Create an Insert Script rule, provide the external script URL or library code, target the required webpage, save the rule, and reload the page. The library will load automatically on matching pages.

Effortless team collaboration

Share instantly, sync effortlessly, and collaborate effectively with your team in dedicated workspaces.

Learn more →

Quick One time sharing

Instantly generate and share a link to your rules and more

Team workspaces

Collaborate easily with teammates in a shared workspace.

Export data & sync to Git

Easily version-control your configs by exporting and syncing

Secure and private

Enterprise-ready security and compliance

Requestly ensures top-tier security with SOC-II compliance, SSO integration, and role-based access control. We protect your data and secure your workflows, making us the ideal choice for enterprises.

SOC-II Compliance

Adheres to rigorous security standards for data protection and privacy.

Single Sign-On (SSO)

Simplifies user access with secure, centralized authentication.

Role-based access control

Ensures precise control over user permissions and data access.

Data encryption

Protects your data in transit and at rest with advanced encryption protocols.

Audit logs

Tracks and records user actions and system events, giving you complete visibility.

Regular security updates

Keeps your environment secure with timely updates and patches.

Ready to try it yourself?

Intercept, modify and mock HTTP requests in your browser or on desktop. Free to use.

Free · macOS, Windows & Linux