mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-24 15:23:02 +01:00
implement webpack and create scripts to bundle source
This commit is contained in:
1 parent
e39b52e8e7
commit
7b9c1781b4
11 files changed
+3743
-20
No files matched your search
@@ -1 +0,0 @@
|
||||
RYD.getInstance().init();
|
||||
@@ -25,8 +25,9 @@
|
||||
"*://m.youtube.com/*"
|
||||
],
|
||||
"exclude_matches": ["*://*.music.youtube.com/*"],
|
||||
"js": ["ryd.content-script.js", "ryd.tools.js", "/init/init.js"],
|
||||
"css": ["content-style.css"]
|
||||
"run_at": "document_idle",
|
||||
"css": ["content-style.css"],
|
||||
"js": ["bundled-content-script.js"]
|
||||
}
|
||||
],
|
||||
"externally_connectable": {
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"exclude_matches": ["*://*.music.youtube.com/*"],
|
||||
"run_at": "document_idle",
|
||||
"css": ["content-style.css"],
|
||||
"js": ["ryd.content-script.js", "ryd.tools.js", "/init/init.js"]
|
||||
"js": ["bundled-content-script.js"]
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
@@ -375,3 +375,21 @@ RYD.getInstance = function () {
|
||||
if (typeof RYD.instance == "undefined") RYD.instance = new RYD();
|
||||
return RYD.instance;
|
||||
};
|
||||
|
||||
RYDTools = {};
|
||||
|
||||
RYDTools.getBrowser = function () {
|
||||
if (typeof chrome !== "undefined" && typeof chrome.runtime !== "undefined") {
|
||||
return chrome;
|
||||
} else if (
|
||||
typeof browser !== "undefined" &&
|
||||
typeof browser.runtime !== "undefined"
|
||||
) {
|
||||
return browser;
|
||||
} else {
|
||||
console.log("browser is not supported");
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
RYD.getInstance().init();
|
||||
@@ -1,17 +1,2 @@
|
||||
RYDTools = {};
|
||||
|
||||
RYDTools.getBrowser = function () {
|
||||
if (typeof chrome !== "undefined" && typeof chrome.runtime !== "undefined") {
|
||||
return chrome;
|
||||
} else if (
|
||||
typeof browser !== "undefined" &&
|
||||
typeof browser.runtime !== "undefined"
|
||||
) {
|
||||
return browser;
|
||||
} else {
|
||||
console.log("browser is not supported");
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user