Add files via upload

This commit is contained in:
Yûki VACHOT 2022-09-04 18:39:13 +02:00 committed by GitHub
parent cf5f79c223
commit 28c1ebbacf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 59 additions and 22 deletions

10
background.js Normal file
View file

@ -0,0 +1,10 @@
chrome.runtime.onInstalled.addListener(function() {
chrome.tabs.onUpdated.addListener(function (tabId, changeInfo, tab) {
if(changeInfo.status == 'complete' && tab.url == 'https://www.dofusbook.net/fr/outils/atelier' && tab.status == 'complete'){
chrome.scripting.executeScript({
target: { tabId: tab.id },
files: ["dofusbook.atelier.copy.js"]
});
}
});
});