Skip to content

Chrome Extension that allows injection of any hosted JS/CSS file into a webpage. It also modifies headers to overwrite Content-Security-Policy and Feature-Policy.

Notifications You must be signed in to change notification settings

denbue/Prototype

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

Prototype — A tool to test your ideas in real-time

Prototype is a Chrome extension to inject any hosted stylesheets (CSS) or Javascript (JS) file into any webpage.

Installation

After installing the extension from the Chrome Extension Gallery (or loading unpacked from source), right-click on the extension icon and select "Options".

Install the extension: https://chrome.google.com/webstore/detail/fdgdeaiajeafamlgajlpgbejadaegepj/

Features

  • Specify any hosted CSS or JS file to inject (local files must be hosted under http://localhost/ - security restriction of Chrome)
  • It modifies HTTP headers for full prototyping power.
  • You can use the extension for your own prototyping or for others to test your prototype.
  • The extension saves your options even when you restart the browser or change the code.

Currently modified header policies:

  • Disabled Access-Control-Allow-Origin and Content-Security-Policy allow for injecting cross-origin scripts.
  • Explicitly enabled Feature-Policy modules allow to include device hardware. List of supported feature policies

Demos

Enter one of the following URLs into the options of the extension:

Thanks

A special thanks goes to sym3tri, the original creator of CSS-Inject

https://denbue.github.io/Prototype/demo/darkmode/

About

Chrome Extension that allows injection of any hosted JS/CSS file into a webpage. It also modifies headers to overwrite Content-Security-Policy and Feature-Policy.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 65.3%
  • CSS 20.4%
  • HTML 14.3%