Skip to content

Commit

Permalink
1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverschloebe committed Jul 16, 2023
1 parent d2cde6b commit 4f5a374
Show file tree
Hide file tree
Showing 8 changed files with 79 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,5 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

_metadata/
24 changes: 22 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
"name": "Marah Supporter",
"description": "Diverse Arten der Unterstützung für die Twitch-Streamerin Marah.",
"manifest_version": 3,
"version": "1.0.3",
"version": "1.0.4",
"homepage_url": "https://rocketbeans.tv/bohnen/60/Marah",
"browser_specific_settings": {
"gecko": {
"id": "marah-supporter-webext@schloebe.de",
"strict_min_version": "109.0"
}
},
"minimum_chrome_version": "91",
"background": {
"service_worker": "scripts/service_worker.js"
},
Expand All @@ -29,8 +30,27 @@
"default_title": "Marah Supporter",
"default_popup": "popup/overview.html"
},
"declarative_net_request": {
"rule_resources": [
{
"id": "ruleset_marah_amazon",
"enabled": true,
"path": "rules-amazon.json"
},
{
"id": "ruleset_marah_humblebundle",
"enabled": true,
"path": "rules-humblebundle.json"
}
]
},
"permissions": [
"tabs",
"activeTab",
"tabs"
"declarativeNetRequestWithHostAccess"
],
"host_permissions": [
"*://*.amazon.de/*",
"*://*.humblebundle.com/*"
]
}
27 changes: 27 additions & 0 deletions rules-amazon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[
{
"id": 1,
"priority": 1,
"condition": {
"urlFilter": "amazon.de",
"resourceTypes": [
"main_frame"
]
},
"action": {
"type": "redirect",
"redirect": {
"transform": {
"queryTransform": {
"addOrReplaceParams": [
{
"key": "tag",
"value": "marah0f-21"
}
]
}
}
}
}
}
]
27 changes: 27 additions & 0 deletions rules-humblebundle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[
{
"id": 1,
"priority": 1,
"condition": {
"urlFilter": "humblebundle.com",
"resourceTypes": [
"main_frame"
]
},
"action": {
"type": "redirect",
"redirect": {
"transform": {
"queryTransform": {
"addOrReplaceParams": [
{
"key": "partner",
"value": "marah"
}
]
}
}
}
}
}
]
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/service_worker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

importScripts('browser-polyfill.min.js');
importScripts('lib/browser-polyfill.min.js');

const TITLE_OPENREFLINK = "Marah's Reflink öffnen für ";
const APPLICABLE_HOSTS_ALL = ["amazon.de", "humblebundle.com", "www.amazon.de", "www.humblebundle.com"];
Expand Down
Binary file added web-ext-artifacts/marah_supporter-1.0.4.zip
Binary file not shown.

0 comments on commit 4f5a374

Please sign in to comment.