GithubHelp home page GithubHelp logo

denbue / prototype Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sym3tri/css-inject

1.0 0.0 0.0 475 KB

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.

JavaScript 65.28% CSS 20.39% HTML 14.33%

prototype's Introduction

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/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.