-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move load * Revent to mv2 * Implement feedback --------- Co-authored-by: Diana Fulga <[email protected]>
- Loading branch information
1 parent
7a42437
commit 57a3291
Showing
11 changed files
with
97 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { runtime } from 'webextension-polyfill' | ||
|
||
import { initMonetizationTagManager } from '@/utils/monetizationTagManager' | ||
|
||
import { loadObserver } from './linksObserver' | ||
import MessageListener from './messageListener' | ||
|
||
runtime.onMessage.addListener(MessageListener) | ||
|
||
// DEBUG PURPOSE | ||
loadObserver() | ||
|
||
// TBD - check logic | ||
initMonetizationTagManager() |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { wm2Polyfill } from '@/content/static/polyfill' | ||
|
||
function inject(configure: (_script: HTMLScriptElement) => void) { | ||
const script = document.createElement('script') | ||
configure(script) | ||
document.documentElement.appendChild(script) | ||
document.documentElement.removeChild(script) | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-extra-semi | ||
;(function injectCode(code: string) { | ||
inject(script => (script.innerHTML = code)) | ||
})(wm2Polyfill) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,37 @@ | ||
{ | ||
"name": "__MSG_appName__", | ||
"version": "1.0.1", | ||
"manifest_version": 3, | ||
"description": "__MSG_appDescription__", | ||
"icons": { | ||
"34": "assets/icons/icon-34.png", | ||
"128": "assets/icons/icon-128.png" | ||
"name": "__MSG_appName__", | ||
"version": "1.0.1", | ||
"manifest_version": 3, | ||
"description": "__MSG_appDescription__", | ||
"icons": { | ||
"34": "assets/icons/icon-34.png", | ||
"128": "assets/icons/icon-128.png" | ||
}, | ||
"default_locale": "en", | ||
"content_scripts": [ | ||
{ | ||
"matches": ["http://*/*", "https://*/*"], | ||
"js": ["content/content.js"] | ||
}, | ||
"default_locale": "en", | ||
"content_scripts": [ | ||
{ | ||
"matches": ["http://*/*", "https://*/*"], | ||
"js": ["content/content.js"] | ||
} | ||
], | ||
"background": { | ||
"service_worker": "background/background.js" | ||
}, | ||
"permissions": ["tabs", "storage"], | ||
"host_permissions": ["http://*/*", "https://*/*"], | ||
"options_ui": { | ||
"page": "options/index.html" | ||
}, | ||
"action": { | ||
"default_icon": { | ||
"16": "assets/icons/icon-16.png", | ||
"48": "assets/icons/icon-48.png" | ||
}, | ||
"default_title": "Web Monetization", | ||
"default_popup": "popup/index.html" | ||
}, | ||
"web_accessible_resources": [ | ||
{ | ||
"resources": ["assets/*", "content/*", "options/*", "popup/*", "background/*"], | ||
"matches": ["<all_urls>"] | ||
} | ||
] | ||
{ | ||
"run_at": "document_start", | ||
"matches": ["http://*/*", "https://*/*"], | ||
"js": ["contentStatic/contentStatic.js"] | ||
} | ||
], | ||
"background": { | ||
"service_worker": "background/background.js" | ||
}, | ||
"permissions": ["tabs", "storage"], | ||
"host_permissions": ["http://*/*", "https://*/*"], | ||
"action": { | ||
"default_title": "Web Monetization", | ||
"default_popup": "popup/index.html" | ||
}, | ||
"web_accessible_resources": [ | ||
{ | ||
"resources": ["assets/*", "content/*", "options/*", "popup/*", "background/*"], | ||
"matches": ["<all_urls>"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters