Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update GUI et Icon #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
Binary file modified Chrome/icons/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Chrome/icons/off.png
Binary file not shown.
Binary file removed Chrome/icons/on.png
Binary file not shown.
67 changes: 25 additions & 42 deletions Chrome/manifest.json
Original file line number Diff line number Diff line change
@@ -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": [
"<all_urls>"
],
"*://*/*"
],
"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": [
"<all_urls>"
]
"browser_specific_settings": {
"gecko": {
"id": "{34ba4e89-9b36-487b-8866-a27b304f3db6}"
}
]
}
}
}
24 changes: 21 additions & 3 deletions Chrome/popup/options.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -49,4 +67,4 @@ input[type="checkbox"]::after {

input:checked[type="checkbox"]::after {
left: 50%;
}
}
Binary file added Chrome/popup/static/Geologica-Bold.ttf
Binary file not shown.
Binary file added Chrome/popup/static/Geologica-Regular.ttf
Binary file not shown.
Binary file modified Firefox/icons/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Firefox/icons/off.png
Binary file not shown.
Binary file removed Firefox/icons/on.png
Binary file not shown.
2 changes: 0 additions & 2 deletions Firefox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ if (document.URL.includes("moodle") && location.hostname !== 'moodle') {
}




function runKeepAlive() {
wrappedJSObject.console.log("ran")
if(moodleURLBase === '') {
Expand Down
45 changes: 21 additions & 24 deletions Firefox/manifest.json
Original file line number Diff line number Diff line change
@@ -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}"
}
}
}
}
Binary file added Firefox/popup/fonts/.DS_Store
Binary file not shown.
Binary file added Firefox/popup/fonts/static/Geologica-Bold.ttf
Binary file not shown.
Binary file added Firefox/popup/fonts/static/Geologica-Regular.ttf
Binary file not shown.
24 changes: 21 additions & 3 deletions Firefox/popup/options.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -49,4 +67,4 @@ input[type="checkbox"]::after {

input:checked[type="checkbox"]::after {
left: 50%;
}
}