From db28d05228e9f623f2e301d107b4cd61e7d72645 Mon Sep 17 00:00:00 2001 From: Tussocky Joker Date: Sat, 21 Feb 2026 18:27:54 +0000 Subject: [PATCH] V1 --- .DS_Store | Bin 0 -> 6148 bytes content.js | 31 +++++++++++++++++++++++++++++++ manifest.json | 13 +++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 .DS_Store create mode 100644 content.js create mode 100644 manifest.json diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..1b8f36fe393fa06a8fa498ddf7d32fa54ee55571 GIT binary patch literal 6148 zcmeHL%Sr=55UkN00)hm*c$_Z?_yD_{X&&L&JUI-=pO>!bw>lhxQ@hY@?cV%aJ57l-uh=eWlKh5GyR zKj8(>C^u!?ZOgc2oJd-+E#FOO0T-Rz4IZstAq)K~Z$GM7sZhZ{Fc1s`1Hr&i7~q~Q znV&g^4hDjOVBm`Ztq++^I5ez|wscVG_$>cSD50%mvM@Is8dgVoD9KZao|@VfBY8T< zbBh}qR!2`qvYA<@&HQ)(_Wj|?${)Xt1>9GCx-xbw2oYw)BRaCBKk)7$Kp8 Ifg>>R0fM|OzW@LL literal 0 HcmV?d00001 diff --git a/content.js b/content.js new file mode 100644 index 0000000..fe66e04 --- /dev/null +++ b/content.js @@ -0,0 +1,31 @@ +const keywords = ["tenancy", "bedroom available", "spacious room", "room available cv13GX queens park house unite student"]; + +// Function to check and remove matching notifications +function filterNotifications() { + const notifications = document.querySelectorAll('div[role="button"]'); + + notifications.forEach(notification => { + const text = notification.innerText.toLowerCase(); + + const containsKeyword = keywords.some(keyword => + text.includes(keyword) + ); + + if (containsKeyword) { + notification.remove(); + } + }); +} + +// Run once on load +filterNotifications(); + +// Watch for dynamically loaded notifications +const observer = new MutationObserver(() => { + filterNotifications(); +}); + +observer.observe(document.body, { + childList: true, + subtree: true +}); \ No newline at end of file diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..d93fdd3 --- /dev/null +++ b/manifest.json @@ -0,0 +1,13 @@ +{ + "manifest_version": 3, + "name": "Notification Keyword Filter", + "version": "0.2", + "description": "Removes notifications containing specific keywords", + "permissions": [], + "content_scripts": [ + { + "matches": ["https://coventry.aula.education/*"], + "js": ["content.js"] + } + ] +} \ No newline at end of file