Compare commits
8 Commits
aula-ad-bl
...
e1bd9ad31e
| Author | SHA1 | Date | |
|---|---|---|---|
| e1bd9ad31e | |||
| f76a8db079 | |||
| aaeae49517 | |||
| 100bcb4c2c | |||
| 5900482d93 | |||
| a9c257dc99 | |||
| 6f2198a268 | |||
| f9103ba332 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,5 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
Archive.zip
|
Archive.zip
|
||||||
.amo-upload-uuid
|
.amo-upload-uuid
|
||||||
|
dev-resources
|
||||||
|
content copy.js
|
||||||
|
|||||||
Binary file not shown.
BIN
Aula-Fixer.xpi
Normal file
BIN
Aula-Fixer.xpi
Normal file
Binary file not shown.
10
README.md
10
README.md
@@ -1,13 +1,13 @@
|
|||||||
# Aula-Extension
|
# Aula-Fixer
|
||||||
|
|
||||||
Browser extension that removes all the notifications about rooms for rent and shit
|
Browser extension that removes all the notifications about rooms for rent and tenancy takeovers from Aula and also changes the styling of the pages to stop wasting so much space.
|
||||||
|
|
||||||
Will remove any notifications containing the any of the ~keywords~ keyphrases in keywords.txt so you can make it hide other stuff too if you wanted.
|
Will remove any notifications containing the any of the ~keywords~ keyphrases in keywords.txt so you can make it hide other stuff too if you wanted (This file is currently packaged inside the extension and so cannot be updated if you're using a packaged version, I will fix this at some point.).
|
||||||
|
|
||||||
I've only tested with Chrome, Brave and Firefox. The easiest way to install this on chromium or similar is to turn on dev mode in chrome://extensions (or equivalent), click on 'Load unpacked' and select the Aula-Extension folder.
|
I've only tested with Chrome, Brave and Firefox. The easiest way to install this on chromium or similar is to turn on dev mode in chrome://extensions (or equivalent), click on 'Load unpacked' and select the Aula-Extension folder, if you update keywords.txt, just reload the extension.
|
||||||
|
|
||||||
For firefox I've built an xpi which is signed (surprisingly difficult), just open a new firefox tab and drag it into the window.
|
For firefox I've built an xpi which is signed (surprisingly difficult), just open a new firefox tab and drag it into the window.
|
||||||
|
|
||||||
I'm working on getting the extension published on the chrome and firefox stores.
|
I'm working on getting the extension published on the chrome and firefox stores.
|
||||||
|
|
||||||
The keyphrases cannot be edited if you're using the prepacked .xpi file. Possibly an oversight and I may fix this at some point
|
As mentioned before, the keyphrases cannot be edited if you're using the prepacked .xpi file.
|
||||||
39
content.js
39
content.js
@@ -12,6 +12,7 @@ async function loadKeywords() {
|
|||||||
|
|
||||||
console.log("Loaded keywords:", keywords);
|
console.log("Loaded keywords:", keywords);
|
||||||
|
|
||||||
|
injectStyles(); // 👈 Add this
|
||||||
startFiltering();
|
startFiltering();
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -23,7 +24,7 @@ function filterNotifications() {
|
|||||||
const notifications = document.querySelectorAll('div[role="button"]');
|
const notifications = document.querySelectorAll('div[role="button"]');
|
||||||
|
|
||||||
notifications.forEach(notification => {
|
notifications.forEach(notification => {
|
||||||
const text = notification.innerText.toLowerCase();
|
const text = notification.innerText?.toLowerCase() || "";
|
||||||
|
|
||||||
const containsKeyword = keywords.some(keyword =>
|
const containsKeyword = keywords.some(keyword =>
|
||||||
text.includes(keyword)
|
text.includes(keyword)
|
||||||
@@ -35,6 +36,42 @@ function filterNotifications() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function injectStyles() {
|
||||||
|
const style = document.createElement("style");
|
||||||
|
|
||||||
|
style.textContent = `
|
||||||
|
.css-qbgecn {
|
||||||
|
max-height: 99% !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.css-15ampbt {
|
||||||
|
overflow: hidden !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.css-1iji2l6 {
|
||||||
|
margin: 1px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#main-content > div > div > div.css-qbgecn.e1f8gytw1 {
|
||||||
|
overflow-y: hidden !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.css-1vz9kb2 {
|
||||||
|
flex-basis: 85% !important;
|
||||||
|
padding: 0px 0px 0px 1% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.css-nivjaw {
|
||||||
|
padding: 12px 12px 12px 12px;
|
||||||
|
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
document.head.appendChild(style);
|
||||||
|
}
|
||||||
|
|
||||||
function startFiltering() {
|
function startFiltering() {
|
||||||
filterNotifications();
|
filterNotifications();
|
||||||
|
|
||||||
|
|||||||
@@ -8,4 +8,9 @@ i am looking for accomodation
|
|||||||
i'm looking for accomodation
|
i'm looking for accomodation
|
||||||
fully furnished house
|
fully furnished house
|
||||||
ensuite room available
|
ensuite room available
|
||||||
room available cv13gx queens park house unite student
|
room available cv13gx queens park house unite student
|
||||||
|
en-suite room available
|
||||||
|
double studio room is available
|
||||||
|
need a space for 1 person (girl) to stay
|
||||||
|
hey everyone looking space for one
|
||||||
|
room available for girl (shared accommodation)
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "Aula Ad Filter",
|
"name": "Aula Fixer",
|
||||||
"version": "1.1",
|
"version": "1.0",
|
||||||
"description": "Removes all the notifications about rooms for rent on Aula",
|
"description": "Based on my Aula ad remover project, Removes all the notifications about rooms for rent on Aula and changes the styling so that it doesn't waste so much screen space.",
|
||||||
|
|
||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
{
|
{
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
"browser_specific_settings": {
|
"browser_specific_settings": {
|
||||||
"gecko": {
|
"gecko": {
|
||||||
"id": "aulaadremoverpublic@tussockyjoker.com",
|
"id": "aulafixer@tussockyjoker.com",
|
||||||
"data_collection_permissions": {
|
"data_collection_permissions": {
|
||||||
"required": ["none"],
|
"required": ["none"],
|
||||||
"optional": []
|
"optional": []
|
||||||
|
|||||||
Reference in New Issue
Block a user