This commit is contained in:
Dawid Wysokiński 2022-11-14 15:21:26 +01:00
commit 8a0be83783
Signed by: Kichiyaki
GPG Key ID: B5445E357FB8B892
8 changed files with 1555 additions and 0 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
distribution
.idea
node_modules
.parcel-cache

3
.parcelrc Normal file
View File

@ -0,0 +1,3 @@
{
"extends": "@parcel/config-webextension"
}

30
package.json Normal file
View File

@ -0,0 +1,30 @@
{
"name": "sessions-ext",
"version": "0.0.1",
"description": "",
"scripts": {
"build": "parcel build src/manifest.json --no-content-hash --no-source-maps --dist-dir distribution --no-cache --detailed-report 0",
"watch": "parcel watch src/manifest.json --dist-dir distribution --no-cache --no-hmr",
"run:chromium": "web-ext run -t chromium"
},
"author": {
"name": "Dawid Wysokiński",
"email": "contact@dwysokinski.me",
"url": "https://dwysokinski.me/"
},
"license": "ISC",
"devDependencies": {
"@parcel/config-webextension": "^2.8.0",
"@types/chrome": "^0.0.200",
"parcel": "^2.8.0",
"typescript": "^4.8.4"
},
"webExt": {
"sourceDir": "distribution",
"run": {
"startUrl": [
"https://pl181.plemiona.pl/game.php?screen=info_player"
]
}
}
}

1
src/background.ts Normal file
View File

@ -0,0 +1 @@
chrome.cookies.onChanged.addListener(console.log);

BIN
src/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

26
src/manifest.json Normal file
View File

@ -0,0 +1,26 @@
{
"name": "Awesome Extension",
"version": "0.0.0",
"description": "An awesome new browser extension",
"homepage_url": "https://tribalwarshelp.com/",
"manifest_version": 3,
"minimum_chrome_version": "100",
"icons": {
"128": "icon.png"
},
"permissions": [
"storage",
"cookies"
],
"host_permissions": [
"https://*.plemiona.pl/*"
],
"options_ui": {
"browser_style": true,
"page": "options.html"
},
"background": {
"service_worker": "background.ts",
"type": "module"
}
}

13
src/options.html Normal file
View File

@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Sessions</title>
</head>
<body>
<h1>Test</h1>
</body>
</html>

1478
yarn.lock Normal file

File diff suppressed because it is too large Load Diff