-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpatch.js
More file actions
29 lines (22 loc) · 853 Bytes
/
patch.js
File metadata and controls
29 lines (22 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
(function() {
const style = document.createElement('style');
style.id = 'ux-cleanup-patch';
style.innerHTML = `
[class*="Paywall-module-scss-module__"]{
height: 0;
width: 0;
}
/* RESET THE ENVIRONMENT:
Many reactive UIs lock the <body> scroll when a modal triggers.
We force 'overflow: auto' to restore user control. */
body, html {
overflow: auto !important;
}
`;
// Inject into the <head> to ensure it sits at the end of the cascade
document.head.appendChild(style);
console.log("------------------------------------------");
console.log("UX Patch Applied Successfully.");
console.log("Strategy: Chained Attribute Specificity (20pts)");
console.log("------------------------------------------");
})();