20 Commits

Author SHA1 Message Date
bad697fa99 Merge branch 'main' of https://git.wbell.dev/TussockyJoker/Aula-Extension 2026-02-26 22:52:57 +00:00
b6edcdc8c0 zip created 2026-02-26 22:52:56 +00:00
1c839e6b54 Update README.md 2026-02-26 22:50:16 +00:00
843d38bccb Delete builds/aula_fixer-1.4.xpi 2026-02-26 22:41:04 +00:00
21b1ee40e6 Update README.md 2026-02-26 22:40:56 +00:00
46f81a1e81 updated build scripts, built 1.4.1 xpi 2026-02-26 22:31:46 +00:00
105ff6e0cd Updated xpi for ff, updated manifests, updated build script 2026-02-26 22:07:40 +00:00
fd1452d0ce Merge pull request 'add .env support' (#2) from Ugric/Aula-Fixer:main into main
Reviewed-on: #2
2026-02-26 21:22:24 +00:00
Ugric
28d5fb6f83 re add .env to .gitignore and make example 2026-02-26 21:20:01 +00:00
Ugric
b5984fba76 re add .env to .gitignore and make example 2026-02-26 21:19:52 +00:00
Ugric
ad17674577 add .env support 2026-02-26 21:18:39 +00:00
Ugric
5fe2d981e8 add .env support 2026-02-26 21:18:32 +00:00
6f15bf70c6 Added build scripts for ff 2026-02-26 20:59:38 +00:00
3c703d7425 Merge branch 'main' of https://git.wbell.dev/TussockyJoker/Aula-Extension 2026-02-26 20:52:49 +00:00
91b692593f Added separate manifests for chrome and ff 2026-02-26 20:52:18 +00:00
c7b4955291 Update keywords.txt 2026-02-26 17:51:18 +00:00
2706812496 Update keywords.txt 2026-02-26 17:45:12 +00:00
a6bd5a5d5c Update keywords.txt 2026-02-26 17:43:57 +00:00
bc0f77bfd4 Update keywords.txt 2026-02-26 11:54:20 +00:00
c48c5c45ba Updated .xpi for Firefox 2026-02-25 15:56:09 +00:00
16 changed files with 114 additions and 8 deletions

2
.env_example Normal file
View File

@@ -0,0 +1,2 @@
API_KEY="YOUR_API_KEY"
API_SECRET="YOUR_API_SECRET"

4
.gitignore vendored
View File

@@ -4,3 +4,7 @@ Archive.zip
dev-resources dev-resources
content copy.js content copy.js
aula-fixer_v1-2.zip aula-fixer_v1-2.zip
.env
web-ext-artifacts
src.pem

Binary file not shown.

Binary file not shown.

View File

@@ -1,18 +1,22 @@
# Aula-Fixer # Aula-Fixer
Browser extension that removes all the notifications about rooms for rent and tenancy takeovers from Aula and changes the styling of the pages to stop wasting so much space. This is a browser extension that removes all the notifications about rooms for rent and tenancy takeovers etc. from Aula and changes the styling of the pages to stop wasting so much space.
Will remove any notifications containing the any of the ~keywords~ keyphrases in the keywords.txt file stored in this repo, it can also fall back on a local keywords.txt if the server cannot be reached. Will remove any notifications containing the any of the ~keywords~ keyphrases in the keywords.txt file stored in this repo, it can also fall back on a local keywords.txt if the server cannot be reached.
I've only tested with Chrome, Brave and Firefox. The easiest way to install this on chromium or similar is to use the prepackaged .crx. You can also install it by cloning this repo to a folder on your computer, turning on dev mode in chrome://extensions (or equivalent), clicking on 'Load unpacked' and selecting the Aula-Extension folder, if you update/customize the extension, reload it to apply any changes. I've only tested with Chrome, Brave and Firefox. The easiest way to install this on chromium or similar is to download the .zip file, extract it somewhere, turn on dev mode in chrome://extensions (or equivalent), clicking on 'Load unpacked' and select the extracted folder. Alternatively clone this repo and select the src folder. I did pack a .crx for this purpose but Chrome has removed the ability to load .crx files 😐
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 made a signed .xpi which can be found in builds. To install from here, 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. The Firefox version will often be slightly more up-to-date compared to the chrome version as building for chrome cannot be done from the CLI (afaik).
I'm working on getting the extension published on both the Chrome and Firefox stores.
https://addons.mozilla.org/en-GB/firefox/addon/aula-ad-filter/ https://addons.mozilla.org/en-GB/firefox/addon/aula-ad-filter/
https://chromewebstore.google.com/detail/aula-ad-filter/ooghijbicaoiccbkjplnellggncbcgbl?authuser=0&hl=en-GB https://chromewebstore.google.com/detail/aula-ad-filter/ooghijbicaoiccbkjplnellggncbcgbl?authuser=0&hl=en-GB
If you just want the 'ad-blocker' function, I've kept a separate branch in this repo. If you just want the 'ad-blocker' function, I've kept a separate branch in this repo.
If you want to use a custom keywords.txt, you can break the url in background.js and it will then fall back on the local keywords.txt file. This only works if you are NOT using the prepackaged extensions or extensions from the chrome/firefox stores, these will only pull from the file in this repo. If you think a word or phrase should be added to keywords.txt, either submit a pull request or raise an issue. If you have customised keywords.txt, you will have to break the url in 'background.js' so that it falls back on the local keywords.txt file. This only works if you are NOT using the prepackaged extensions or extensions from the chrome/firefox stores, these will only pull from the file in this repo or fall back on the included version if the server cannot be reached. If you think a word or phrase should be added to keywords.txt, either submit a pull request or raise an issue.
If you would like to build the extension for yourself run /build_scripts/build.sh, which will give you a .zip compatible with most browsers, if you wish to build a Firefox .xpi you will need to get a developer api key and change the id in the manifest.

3
build_scripts/build.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env bash
web-ext build --source-dir=./src --artifacts-dir=./builds

View File

@@ -0,0 +1,11 @@
!/usr/bin/env bash
source .env
echo "Building/signing listed firefox extension"
mv src/manifest.json src/manifest_temp.json
mv src/manifest_ff.json src/manifest.json
echo "manifest_ff > manifest"
web-ext sign --channel=unlisted --api-key=user:$API_KEY --api-secret=$API_SECRET --source-dir=./src --artifacts-dir=./builds
mv src/manifest.json src/manifest_ff.json
mv src/manifest_temp.json src/manifest.json

View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
source .env
echo "Building/signing UNlisted firefox extension"
mv src/manifest.json src/manifest_temp.json
mv src/manifest_ff.json src/manifest.json
web-ext sign --channel=unlisted --api-key=user:$API_KEY --api-secret=$API_SECRET --source-dir=./src --artifacts-dir=./builds
mv src/manifest.json src/manifest_ff.json
mv src/manifest_temp.json src/manifest.json

BIN
builds/aula_fixer-1.4.1.xpi Normal file

Binary file not shown.

BIN
builds/aula_fixer-1.4.zip Normal file

Binary file not shown.

View File

@@ -1,7 +1,7 @@
chrome.runtime.onMessage.addListener((request, sender, sendResponse) => { chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
if (request.type === "GET_KEYWORDS") { if (request.type === "GET_KEYWORDS") {
const remoteUrl = "https://git.wbell.dev/TussockyJoker/Aula-Fixer/raw/branch/main/keywords.txt"; const remoteUrl = "https://git.wbell.dev/TussockyJoker/Aula-Fixer/raw/branch/main/src/keywords.txt";
const localUrl = chrome.runtime.getURL("keywords.txt"); const localUrl = chrome.runtime.getURL("keywords.txt");
// remote // remote

View File

@@ -14,3 +14,6 @@ double studio room is available
need a space for 1 person (girl) to stay need a space for 1 person (girl) to stay
hey everyone looking space for one hey everyone looking space for one
room available for girl (shared accommodation) room available for girl (shared accommodation)
takeover an en-suite room
i'm currently seeking for someone who can take over an en-suite room
accomodation alert

View File

@@ -1,11 +1,12 @@
{ {
"manifest_version": 3, "manifest_version": 3,
"name": "Aula Fixer", "name": "Aula Fixer",
"version": "1.3", "version": "1.4",
"description": "Removes all notifications about rooms for rent etc. on Aula and changes styling so that less screen space is wasted.", "description": "Removes all notifications about rooms for rent etc. on Aula and changes styling so that less screen space is wasted.",
"background": { "background": {
"service_worker": "background.js" "service_worker": "background.js",
"scripts": ["background.js"]
}, },
"content_scripts": [ "content_scripts": [

34
src/manifest_chrome.json Normal file
View File

@@ -0,0 +1,34 @@
{
"manifest_version": 3,
"name": "Aula Fixer",
"version": "1.4",
"description": "Removes all notifications about rooms for rent etc. on Aula and changes styling so that less screen space is wasted.",
"background": {
"service_worker": "background.js"
},
"content_scripts": [
{
"matches": ["https://coventry.aula.education/*"],
"js": ["content.js"]
}
],
"host_permissions": [
"https://git.wbell.dev/*"
],
"web_accessible_resources": [
{
"resources": ["keywords.txt"],
"matches": ["https://coventry.aula.education/*"]
}
],
"browser_specific_settings": {
"gecko": {
"id": "aula-fixer@tussockyjoker.com"
}
}
}

34
src/manifest_ff.json Normal file
View File

@@ -0,0 +1,34 @@
{
"manifest_version": 3,
"name": "Aula Fixer",
"version": "1.4.1",
"description": "Removes all notifications about rooms for rent etc. on Aula and changes styling so that less screen space is wasted.",
"background": {
"scripts": ["background.js"]
},
"content_scripts": [
{
"matches": ["https://coventry.aula.education/*"],
"js": ["content.js"]
}
],
"host_permissions": [
"https://git.wbell.dev/*"
],
"web_accessible_resources": [
{
"resources": ["keywords.txt"],
"matches": ["https://coventry.aula.education/*"]
}
],
"browser_specific_settings": {
"gecko": {
"id": "aula-fixer@tussockyjoker.com"
}
}
}