Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • decentraleyes decentraleyes
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 83
    • Issues 83
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

To participate, please register, or sign in using an existing GitLab.com, Bitbucket, or GitHub account.

  • Thomas Rientjes
  • decentraleyesdecentraleyes
  • Merge requests
  • !291

Master

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Alaska requested to merge Alaska/decentraleyes:master into master Jan 16, 2019
  • Overview 1
  • Commits 3
  • Changes 2

Glad to be here!

This is meant to be proof of concept, I won't take it further unless it's acceptable. It edits the source (before FF sets about processing the response data) and removes 'crossorigin' from the script tag. I think Thomas had said that removing the attribute doesn't work; but in this approach it does work on the test page code (which I used on localhost) shown here https://git.synz.io/snippets/3

The regex is faulty and needs adjustment! ...because it also deletes 'crossorigin' from unintended places. Pardon me, but I really dislike composing regex. It is meant to replace 'crossorigin' only when found within a script tag.

Won't work on jsFiddle because of how things are nested there. Not tested extensively in the wild. It needs also to handle large pages as demonstrated at: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webRequest/StreamFilter/ondata (the 2nd example there).

It might be possible to edit the data without filtering (and thereby be faster), as done on an MDN example.

Edited Jan 16, 2019 by Alaska
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: master