Skip to content

Instantly share code, notes, and snippets.

@dergachev
Created May 5, 2015 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dergachev/fdef0a21accf308f683e to your computer and use it in GitHub Desktop.
Save dergachev/fdef0a21accf308f683e to your computer and use it in GitHub Desktop.
---
after:
url: https://gist.github.com/dergachev/a3cf9fe176b1a0b949cf
sanitization:
- title: Strip domain names from absolute URLs
pattern: http:\/\/[a-zA-Z0-9.:-]+
substitute: __domain__
disabled: true
paths:
- /
- /7a14cc6cbb5729d24ac8b989dbbad91fda82111c
- /fb4564d1c93d59947d47322fa353c33905874932
- /raw/30d74d258442c7c65512eafab474568dd706c430/test
- /raw/39bd6882b26d6885bace37ea67850432317e54a2/test
- /raw/test
- /revisions
# selector: div.file-data
sanitization:
- pattern: '<meta content="[^"]+" name="csrf-token"\s*/?>'
substitute: '<meta content="REMOVED" name="csrf-token"/>'
- pattern: '<meta content="[^"]+" name="octolytics-dimension-request_id"\s*/?>'
substitute: '<meta content="REMOVED" name="octolytics-dimension-request_id" />'
- pattern: '<li>© 2015 <span title="[^"]+">GitHub</span>, Inc.</li>'
substitute: '<meta content="REMOVED" name="octolytics-dimension-request_id" />'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment