Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
decentraleyes
decentraleyes
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 84
    • Issues 84
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 9
    • Merge Requests 9
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards

Microsoft has acquired GitHub. Decentraleyes has left GitHub. Welcome to its new home!

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

Past contributions on GitHub? Be sure to reclaim your Comments, Issues, and Pull Requests.

  • Thomas Rientjes
  • decentraleyesdecentraleyes
  • Merge Requests
  • !291

Open
Opened Jan 16, 2019 by Alaska@Alaska
  • Report abuse
Report abuse

Check out, review, and merge locally

Step 1. Fetch and check out the branch for this merge request

git fetch "https://git.synz.io/Alaska/decentraleyes.git" "master"
git checkout -b "Alaska/decentraleyes-master" FETCH_HEAD

Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up

git fetch origin
git checkout "master"
git merge --no-ff "Alaska/decentraleyes-master"

Step 4. Push the result of the merge to GitLab

git push origin "master"

Note that pushing to GitLab requires write access to this repository.

Tip: You can also checkout merge requests locally by following these guidelines.

Master

  • 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
None
Milestone
None
Assign milestone
Time tracking
Reference: Synzvato/decentraleyes!291
Source branch: master