Add files via upload
This commit is contained in:
parent
cf5f79c223
commit
28c1ebbacf
3 changed files with 59 additions and 22 deletions
10
background.js
Normal file
10
background.js
Normal 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"]
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue