diff --git a/icons/border-48.png b/icons/border-48.png new file mode 100644 index 0000000..90687de Binary files /dev/null and b/icons/border-48.png differ diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..dc61be5 --- /dev/null +++ b/manifest.json @@ -0,0 +1,28 @@ +{ + "manifest_version": 2, + "name": "Sexy Neptun", + "version": "1.0", + + "description": "Re-adds the theme selection to the NEPTUN system", + + "icons": { + "48": "icons/border-48.png" + }, + + "browser_specific_settings": { + "gecko": { + "id": "beastify@mozilla.org", + "data_collection_permissions": { + "required": ["none"] + } + } + }, + + "content_scripts": [ + { + "matches": ["*://neptun.bme.hu/*"], + "js": ["pink.js"] + } + ] +} + diff --git a/pink.js b/pink.js new file mode 100644 index 0000000..4a8a49a --- /dev/null +++ b/pink.js @@ -0,0 +1,23 @@ +function sleep(ms) { + return new Promise(resolve => setTimeout(resolve, ms)); +} + + +async function waiting() +{ + while (!document.body.contains(document.getElementById("mat-expansion-panel-header-3"))) { + sleep(100); + } +} + +//waiting(); + +console.log('megva'); + +footer = document.getElementsByClassName('footer'); + +console.log(footer.length); + +for (let i = 0; i < footer.length; i++) { + footer[i].style.backgroundColor = '#e4007c'; +}