webext-content-scripts

Utility functions to inject content scripts from a WebExtension

MIT License

Downloads
3.8K
Stars
20
Committers
3

Bot releases are hidden (Show)

webext-content-scripts - Latest Release

Published by fregante 4 months ago

webext-content-scripts -

Published by fregante 9 months ago

  • executeFunction: support iframe[srcdoc] and about:blank (#32) 25db5c0

https://github.com/fregante/webext-content-scripts/compare/v2.6.0...v2.6.1

webext-content-scripts -

Published by fregante 11 months ago

  • Accept undefined URL in isScriptableUrl 9c98a0c
  • Add support for new Web Store URL a51e1e0

https://github.com/fregante/webext-content-scripts/compare/v2.5.5...v2.6.0

webext-content-scripts -

Published by fregante about 1 year ago

  • Fix script injecting on Safari for iOS (#24) f77bfe5

https://github.com/fregante/webext-content-scripts/compare/v2.5.4...v2.5.5

webext-content-scripts -

Published by fregante over 1 year ago

  • Update dependencies b030fba
  • Resolve executeScript promise after execution (#23) fc44d9b

https://github.com/fregante/webext-content-scripts/compare/v2.5.3...v2.5.4

webext-content-scripts -

Published by fregante over 1 year ago

  • Broaden runAt types to facilitate injection from the manifest b8f88a2

https://github.com/fregante/webext-content-scripts/compare/v2.5.2...v2.5.3

webext-content-scripts -

Published by fregante over 1 year ago

  • Replace browser types with chrome (#21) 29c54b7

https://github.com/fregante/webext-content-scripts/compare/v2.5.1...v2.5.2

webext-content-scripts -

Published by fregante over 1 year ago

  • Fix chrome.scripting detection in Firefox (#20) bc2a182

https://github.com/fregante/webext-content-scripts/compare/v2.5.0...v2.5.1

webext-content-scripts -

Published by fregante over 1 year ago

  • Inject multiple files at once in MV3 (#19) 1e75d5b
  • executeFunction: throw error when passing native functions (#18) 0ec3d36

https://github.com/fregante/webext-content-scripts/compare/v2.4.0...v2.5.0

webext-content-scripts -

Published by fregante almost 2 years ago

  • Add excludeMatches support to getTabsByUrl 8dc6595

https://github.com/fregante/webext-content-scripts/compare/v2.3.0...v2.4.0

webext-content-scripts -

Published by fregante almost 2 years ago

  • Export getTabsByUrl utility to facilitate injectContentScript by URL a160748
  • injectContentScript: Support injecting into multiple targets at once 56f5917

https://github.com/fregante/webext-content-scripts/compare/v2.2.0...v2.3.0

webext-content-scripts -

Published by fregante almost 2 years ago

  • Limit isScriptableUrl to HTTP and HTTPS URLs d6c75e9

https://github.com/fregante/webext-content-scripts/compare/v2.1.0...v2.2.0

webext-content-scripts -

Published by fregante almost 2 years ago

  • Add ignoreTargetErrors option to all injectors fc638bd

This will optionally silence console errors like "Error: The tab was closed." if tab closes while injecting in the background page console.

Whole module sponsored by PixieBrix 🎉

https://github.com/fregante/webext-content-scripts/compare/v2.0.0...v2.1.0

webext-content-scripts -

Published by fregante almost 2 years ago

Breaking changes

  • Add allFrames support to injectContentScript 206ab8b

Details

injectContentScript(123, scripts);

In v1, this would inject the scripts into the top frame of tab 123.
In v2+, this will inject the scripts in all frames of tab 123.

The previous behavior is still achievable via the explicit:

injectContentScript({tabId: 123, frame: 0}, scripts);

https://github.com/fregante/webext-content-scripts/compare/v1.0.3...v2.0.0

webext-content-scripts -

Published by fregante over 2 years ago

  • Allow awaiting injectContentScript and insertCSS (#13) 4641305

https://github.com/fregante/webext-content-scripts/compare/v1.0.2...v1.0.3

webext-content-scripts -

Published by fregante over 2 years ago

webext-content-scripts -

Published by fregante almost 3 years ago

webext-content-scripts -

Published by fregante almost 3 years ago

webext-content-scripts -

Published by fregante almost 3 years ago

  • Add support for Manifest v3 to injectContentScript (#8) 247532a
  • Add executeScript and insertCSS that work both on MV2 and MV3 (#7) abb57e3

https://github.com/fregante/webext-content-scripts/compare/v0.11.1...v0.12.0

webext-content-scripts -

Published by fregante almost 3 years ago