mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-22 14:23:01 +01:00
Change chrome js injection method
This commit is contained in:
1 parent
eb1756cce9
commit
50028762fb
4 files changed
+173
-160
No files matched your search
@@ -0,0 +1,10 @@
|
||||
chrome.runtime.sendMessage({}, (securityToken) => {
|
||||
var script = document.createElement('script');
|
||||
script.setAttribute("security-token", securityToken);
|
||||
script.setAttribute("extension-id", chrome.runtime.id);
|
||||
script.src = chrome.runtime.getURL('script.js');
|
||||
script.onload = function() {
|
||||
this.remove();
|
||||
};
|
||||
(document.head || document.documentElement).appendChild(script);
|
||||
});
|
||||
Reference in new issue
Block a user