diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..f1518ce Binary files /dev/null and b/.DS_Store differ diff --git a/Chrome/icons/logo.png b/Chrome/icons/logo.png index af47bf4..0da264d 100644 Binary files a/Chrome/icons/logo.png and b/Chrome/icons/logo.png differ diff --git a/Chrome/icons/off.png b/Chrome/icons/off.png deleted file mode 100644 index 4b5259d..0000000 Binary files a/Chrome/icons/off.png and /dev/null differ diff --git a/Chrome/icons/on.png b/Chrome/icons/on.png deleted file mode 100644 index 87cc998..0000000 Binary files a/Chrome/icons/on.png and /dev/null differ diff --git a/Chrome/manifest.json b/Chrome/manifest.json index 980e784..a060c05 100644 --- a/Chrome/manifest.json +++ b/Chrome/manifest.json @@ -1,59 +1,42 @@ { "manifest_version": 3, "name": "MoodleCustomizer", - "version": "1.1.2", + "version": "1.1.3", "author": "Hokkaydo", - "description": "Improve your Moodle experience.", - "icons": { - "16": "icons/logo.png" - }, + "description": "Improve Moodle global experience.", "permissions": [ - "activeTab", - "tabs", - "webNavigation", - "scripting", "storage", - "declarativeNetRequest", - "declarativeNetRequestWithHostAccess" + "webRequest", + "scripting", + "tabs", + "activeTab" ], "host_permissions": [ - "" - ], + "*://*/*" + ], + "background": { + "service_worker": "background.js" + }, "content_scripts": [ { - "matches": [ - "http://*/*", - "https://*/*" - ], - "js": [ - "index.js" - ] + "run_at": "document_start", + "matches": ["*://*/*"], + "js": ["index.js"] } ], "action": { - "default_title": "On/Off", + "default_icon": { + "48": "icons/logo.png" + }, + "default_title": "MoodleCustomizer", "default_popup": "popup/options.html" }, - "background": { - "service_worker": "background.js" - }, - "declarative_net_request": { - "rule_resources": [ - { - "id": "ruleset_1", - "enabled": true, - "path": "rules.json" - } - ] + "icons": { + "48": "icons/logo.png" }, - "web_accessible_resources": [ - { - "resources": [ - "retrieveVariables.js" - ], - "matches": [ - "" - ] + "browser_specific_settings": { + "gecko": { + "id": "{34ba4e89-9b36-487b-8866-a27b304f3db6}" } - ] -} \ No newline at end of file + } +} diff --git a/Chrome/popup/options.css b/Chrome/popup/options.css index 185bb17..de58380 100644 --- a/Chrome/popup/options.css +++ b/Chrome/popup/options.css @@ -4,19 +4,37 @@ body { display: flex; flex-direction: column; align-items: center; + background-color: #1F1F1F; + color: #fff; } - - .control { display: flex; align-items: center; + justify-content: space-between } .control > p { margin-right: 10px; } +@font-face { + font-family: 'Geologica'; + src: url('fonts/static/Geologica-Regular.ttf') format('truetype'), + url('fonts/static/Geologica-Bold.ttf') format('truetype'); +} + + +h3 { + font-family: 'Geologica', sans-serif; + font-weight: bold; +} + +p { + font-family: 'Geologica', sans-serif; + font-weight: normal; /* Assuming Geologica-Regular is normal weight */ +} + input[type="checkbox"] { position: relative; appearance: none; @@ -49,4 +67,4 @@ input[type="checkbox"]::after { input:checked[type="checkbox"]::after { left: 50%; -} +} \ No newline at end of file diff --git a/Chrome/popup/static/Geologica-Bold.ttf b/Chrome/popup/static/Geologica-Bold.ttf new file mode 100644 index 0000000..6ffd74f Binary files /dev/null and b/Chrome/popup/static/Geologica-Bold.ttf differ diff --git a/Chrome/popup/static/Geologica-Regular.ttf b/Chrome/popup/static/Geologica-Regular.ttf new file mode 100644 index 0000000..9843d1b Binary files /dev/null and b/Chrome/popup/static/Geologica-Regular.ttf differ diff --git a/Firefox/icons/logo.png b/Firefox/icons/logo.png index af47bf4..0da264d 100644 Binary files a/Firefox/icons/logo.png and b/Firefox/icons/logo.png differ diff --git a/Firefox/icons/off.png b/Firefox/icons/off.png deleted file mode 100644 index 4b5259d..0000000 Binary files a/Firefox/icons/off.png and /dev/null differ diff --git a/Firefox/icons/on.png b/Firefox/icons/on.png deleted file mode 100644 index 87cc998..0000000 Binary files a/Firefox/icons/on.png and /dev/null differ diff --git a/Firefox/index.js b/Firefox/index.js index a85aa2d..a07fec4 100644 --- a/Firefox/index.js +++ b/Firefox/index.js @@ -23,8 +23,6 @@ if (document.URL.includes("moodle") && location.hostname !== 'moodle') { } - - function runKeepAlive() { wrappedJSObject.console.log("ran") if(moodleURLBase === '') { diff --git a/Firefox/manifest.json b/Firefox/manifest.json index e966be8..a060c05 100644 --- a/Firefox/manifest.json +++ b/Firefox/manifest.json @@ -1,45 +1,42 @@ { + "manifest_version": 3, "name": "MoodleCustomizer", - "version": "1.1.2", - "manifest_version": 2, - "browser_specific_settings": { - "gecko": { - "id": "{34ba4e89-9b36-487b-8866-a27b304f3db6}" - } - }, + "version": "1.1.3", "author": "Hokkaydo", + "description": "Improve Moodle global experience.", "permissions": [ - "activeTab", "storage", "webRequest", - "webRequestBlocking", - "*://*/*" + "scripting", + "tabs", + "activeTab" ], + "host_permissions": [ + "*://*/*" + ], "background": { - "scripts": [ - "background.js" - ], - "persistent": false + "service_worker": "background.js" }, - "description": "Improve Moodle global experience.", "content_scripts": [ { - "matches": [ - "*://*/*" - ], - "js": [ - "index.js" - ] + "run_at": "document_start", + "matches": ["*://*/*"], + "js": ["index.js"] } ], - "browser_action": { + "action": { "default_icon": { "48": "icons/logo.png" }, - "default_title": "On/Off", + "default_title": "MoodleCustomizer", "default_popup": "popup/options.html" }, "icons": { "48": "icons/logo.png" + }, + "browser_specific_settings": { + "gecko": { + "id": "{34ba4e89-9b36-487b-8866-a27b304f3db6}" + } } -} \ No newline at end of file +} diff --git a/Firefox/popup/fonts/.DS_Store b/Firefox/popup/fonts/.DS_Store new file mode 100644 index 0000000..dea87b3 Binary files /dev/null and b/Firefox/popup/fonts/.DS_Store differ diff --git a/Firefox/popup/fonts/static/Geologica-Bold.ttf b/Firefox/popup/fonts/static/Geologica-Bold.ttf new file mode 100644 index 0000000..6ffd74f Binary files /dev/null and b/Firefox/popup/fonts/static/Geologica-Bold.ttf differ diff --git a/Firefox/popup/fonts/static/Geologica-Regular.ttf b/Firefox/popup/fonts/static/Geologica-Regular.ttf new file mode 100644 index 0000000..9843d1b Binary files /dev/null and b/Firefox/popup/fonts/static/Geologica-Regular.ttf differ diff --git a/Firefox/popup/options.css b/Firefox/popup/options.css index 185bb17..de58380 100644 --- a/Firefox/popup/options.css +++ b/Firefox/popup/options.css @@ -4,19 +4,37 @@ body { display: flex; flex-direction: column; align-items: center; + background-color: #1F1F1F; + color: #fff; } - - .control { display: flex; align-items: center; + justify-content: space-between } .control > p { margin-right: 10px; } +@font-face { + font-family: 'Geologica'; + src: url('fonts/static/Geologica-Regular.ttf') format('truetype'), + url('fonts/static/Geologica-Bold.ttf') format('truetype'); +} + + +h3 { + font-family: 'Geologica', sans-serif; + font-weight: bold; +} + +p { + font-family: 'Geologica', sans-serif; + font-weight: normal; /* Assuming Geologica-Regular is normal weight */ +} + input[type="checkbox"] { position: relative; appearance: none; @@ -49,4 +67,4 @@ input[type="checkbox"]::after { input:checked[type="checkbox"]::after { left: 50%; -} +} \ No newline at end of file