diff --git a/manifest.json b/manifest.json index 23f445f..a3d0bde 100644 --- a/manifest.json +++ b/manifest.json @@ -12,7 +12,7 @@ "content_scripts": [ { - "js": ["version-check.js", "remove-banner.js", "remove-blur.js", "doc-viewer.js"], + "js": ["version-check.js", "remove-banner.js", "remove-blur.js", "doc-viewer.js", "remove-previewBanner.js"], "css": ["style.css"], "matches": ["https://www.studocu.com/*", "https://www.studeersnel.nl/*"] } diff --git a/remove-previewBanner.js b/remove-previewBanner.js new file mode 100644 index 0000000..47d42d9 --- /dev/null +++ b/remove-previewBanner.js @@ -0,0 +1,7 @@ +// Remove "This is preview" banner +window.addEventListener("load", () => { + const previewBanner = document.getElementsByClassName("_95f5f1767857 _0838fb325c04")[0]; + if(previewBanner) { + previewBanner.remove(); + } +});