Added basic chrome extension source codes
Manifest file and some aniwatch utils
This commit is contained in:
parent
da9ecc0e75
commit
ebfc134e3d
20
manifest.json
Normal file
20
manifest.json
Normal 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
10
utils/aniwatchCore.js
Normal 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
1
utils/colors.js
Normal file
|
@ -0,0 +1 @@
|
|||
const aniBlue = "#348fff";
|
Loading…
Reference in a new issue