Added basic chrome extension source codes

Manifest file and some aniwatch utils
This commit is contained in:
Serraniel 2020-04-25 22:20:26 +02:00
parent da9ecc0e75
commit ebfc134e3d
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3
3 changed files with 31 additions and 0 deletions

20
manifest.json Normal file
View file

@ -0,0 +1,20 @@
{
"name": "Enhanced Aniwatch",
"version": "0.1.0.0",
"description": "Contains several enhancments for https://aniwatch.me",
"manifest_version": 2,
"author": "Serraniel",
"homepage_url": "https://github.com/Serraniel/EnhancedAniwatch",
"content_scripts": [
{
"matches": [
"*://aniwatch.me/*"
],
"js": [
"utils/colors.js",
"utils/aniwatchCore.js"
],
"run_at": "document_start"
}
]
}

10
utils/aniwatchCore.js Normal file
View file

@ -0,0 +1,10 @@
function executeAfterPreload(func){
let preLoader = document.getElementById('preloader');
let loop = setInterval(() => {
if(preLoader.style.display==="none"){
clearInterval(loop);
func();
}
}, 100);
}

1
utils/colors.js Normal file
View file

@ -0,0 +1 @@
const aniBlue = "#348fff";