Skip to content

Commit

Permalink
add: Google Drive
Browse files Browse the repository at this point in the history
  • Loading branch information
martok committed Sep 18, 2022
1 parent dedc16d commit a99ffed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/builtin-rules.js
Expand Up @@ -37,6 +37,11 @@ godbolt.org
static.ce-cdn.net/vendor.v*.js$script
$script-content,godbolt-script
! --
drive.google.com
std-PerformanceObserver
drive.google.com/_/drive_fe/_/js/k=drive_fe.main.*$script
$script-content,google-regexp
! --
www.ikea.com
std-customElements,std-FunctionToString,ikea-mustard
! --
Expand Down
4 changes: 4 additions & 0 deletions lib/main.js
Expand Up @@ -131,6 +131,10 @@ function evaluateFix(fix, script, csp, contentReplace) {
contentReplace.push([`{signatureHelpTriggerCharacters=["(",","];`,
`{`]);
break;
case "google-regexp":
contentReplace.push([String.raw`(\\p{Ll})(?=\\p{Lu})|(\\p{Ll}|\\p{Lu})(?=\\p{Nd})|(\\p{Nd})(?=\\p{Ll}|\\p{Lu})`,
`([a-z])(?=[A-Z])|([a-z]|[A-Z])(?=[0-9])|([0-9])(?=[a-z]|[A-Z])`]);
break;
case "ikea-mustard":
contentReplace.push(["if (didCutTheMustardBox)", "if (true)"]);
contentReplace.push(["if (didCutTheMustardSERP)", "if (true)"]);
Expand Down

0 comments on commit a99ffed

Please sign in to comment.