☰

injectcode

Almost twelve years after the first version, I finally got around to pushing an update to the Chrome extension - a full rewrite for Manifest V3.

Same idea as before: store your own JavaScript and CSS and run it on the pages you choose. Still a tool for developers though - it runs your code with full access to those pages, including any site you are logged in to. Did you review the code your AI provided before pasting it?

Version 2.0.0

  • JavaScript and CSS scripts grouped by URL match pattern, such as https://example.com/*
  • run a single script, every script of a URL, or all matching scripts at once
  • run on the current tab only or on every open tab
  • Always on scripts that run automatically whenever a matching page loads
  • shared scripts that run before every URL's own scripts
  • drag to reorder, which also sets the run order
  • export and import your scripts as a backup file
  • no server, nothing is sent anywhere, scripts stay in your Chrome profile
  • requires Chrome 138 or newer (also tested on Edge and Brave)

While I tried to make the UI less intrusive, it might not be as intuitive on the first try - something I'll work on improving soon. In the meantime, and I can't stress this enough, please read the docs on the options page - it really saves you a lot of trouble and helps you understand some of the nuances and edge cases.

Upgrading from 1.x: the Chrome Web Store update imports your old scripts once into Shared, all disabled. jQuery and the global InjectCode, openTab(url) and XhrMonitor helpers are gone, so review each script before enabling it.

Source and releases: https://github.com/jaakkytt/InjectCode.

Chrome Web Store: https://chrome.google.com/webstore/detail/injectcode/flhghpihapijancfhnicbnjifdodohpi.

Under the hood it now uses React, Material UI and Prism code editor.

P.S. Bug reports and feature ideas are welcome in the GitHub issues.