planktos icon indicating copy to clipboard operation
planktos copied to clipboard

Tag Editing

Open georgeaf99 opened this issue 8 years ago • 0 comments

Previous Discussion in #53

Terminology: Intercept mechanism refers to the way in which a request is intercepted e.g. service worker or tag editing. Intercept handler refers to the piece of code which decides how an intercepted request should be handled.

To Do:

  • [ ] Add a folder for different implementations of intercept handlers (for right now it should only contain default.js)
  • [ ] Separate out the intercept handler from sw.js into default.js (service worker specific code should remain)
  • [x] Replace the Planktos fetch interface with something that is agnostic to intercept mechanism (right now it accepts a FetchEvent)
  • [ ] Add a flag for selecting which intercept mechanisms to use
  • [ ] Add a build phase in the CLI that calls the tag editor
  • [ ] Inject the Planktos install script into every JS file during build phase
  • [ ] Create a standard for modifying resource tags (https://github.com/feross/webtorrent/issues/879#issuecomment-280576761)
  • [ ] Handle editing of all tags (<audio>, <base>, <iframe>, <img>, <link>, <object>, <picture>, <source>, <track>, <video>)

georgeaf99 avatar Mar 18 '17 19:03 georgeaf99