Compare commits

..

4 Commits

Author SHA1 Message Date
vel c66f2440aa
more documentation 2022-01-30 20:18:41 -08:00
vel 4e6d5f4c6b
documentation 2022-01-30 18:25:54 -08:00
vel 11b73b13ea
beautify everything 2022-01-30 15:55:15 -08:00
vel 0a56c12270
add v2.1.0 2022-01-30 15:06:29 -08:00
23 changed files with 5908 additions and 4979 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"discord.removeRemoteRepository": true
}

View File

@ -2,44 +2,44 @@ Manifest-Version: 1.0
Name: manifest.json
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: QyOWplGk05hY8yqOckI5ow3flts=
SHA256-Digest: YsavbsFOHi+AXVSbguQu0Tv60yoFhK9W3mW++ablOII=
SHA1-Digest: 8r4ge1MUkevIu5TBkndNSqufFpQ=
SHA256-Digest: fs4jGOByTYlWclNPpZVNV+wBFaXT6bWERzbjCnnoPe4=
Name: background.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: otZGFtDhcnbfdUJOCjW9i1NYPO0=
SHA256-Digest: mgVRfmNzMoxvuLndSlKK4AkCWDabpbekleOV++9cWtU=
SHA1-Digest: XqO63B4wrLb+qeRrur//MuXmTDg=
SHA256-Digest: MBwWJFWEitL5u4MiFpXe9wLvbu0v7biLBR5Wisap2RI=
Name: index-6137f488.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: rNamLTYc/X4gd/dLBlk300AQOW8=
SHA256-Digest: S33prVTiy5xonbBTGTEKPY1v+Lb84anybWbye+zq6wE=
Name: background.injected-af36b849.js
Name: background.injected-3cca8ca2.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: UF0lgn7oKe72Bjg/lBEwzH4Umis=
SHA256-Digest: NTFIqjrprPiv/JKI7ppnvr3q1Ibt8C/IGbLwkr3nHNk=
SHA1-Digest: Jkar4HKfUBl6hXuMilzSMoCT0Aw=
SHA256-Digest: jgpG5gD1Z25xRR6P5j0WTobFMtp6RcO8WDHHfIp6itk=
Name: get_stream_details-b6177000.js
Name: get_stream_details-14cd00a5.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: yCTRLEgpVeUuVBx6nRlIZGc/FkA=
SHA256-Digest: QzA+2ffC9lOLR9vXjdJYGXg12fQY0Fo5ga6Na4muGqU=
SHA1-Digest: iAnKOLOb4udJzWaXY204OcbQYSc=
SHA256-Digest: jJzqqz7+uuyLnGe0wOWx+0AHgeSmQLAiIhKUALSiL2M=
Name: parse_token.util-ed270559.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: IBgALOyVpV5c2qndWHw3xIwYD8o=
SHA256-Digest: EVxzphZ3DjnCxgg69Bb+Cb6qU+IQuSD6dp93AIhNWZg=
Name: fetch_youtube-71c76849.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: 42eBw2OqRR68eu8r/SPuKyFKaOQ=
SHA256-Digest: MRh597WCWZkT9t03IVvwdcOZZmjMuu7K4soQU/T2a/0=
Name: router.interface-6cdbc015.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: W9ch3UrWE93U87O7CGQLo4Zn1O8=
SHA256-Digest: icJArSO2T+nG5wNcv9j54PPcb7/4hrTvQgkyxvoww74=
Name: fetch_youtube-cfbafc47.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: vT66ulvIu0xCOVXaZGZWh2c2nF0=
SHA256-Digest: 6cQ6wZl/x0zOK/qQemwBNcc2ZkofI5ouXjHMG+t5cBE=
Name: style-inject.es-a0e1a0ba.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: syuFaCktG1wUUxfCChPrKvOC3Po=
@ -60,10 +60,10 @@ Digest-Algorithms: SHA1 SHA256
SHA1-Digest: pr0Fwt3L3YF+gW2/f1rMEthMD3c=
SHA256-Digest: QWplWRax1J1pkq64mM1eTeDg5Djv/CtiLJoIYlrZSI0=
Name: inject_script.util-c1ec59e3.js
Name: inject_script.util-a32f14cf.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: A1nesjjyxjUtFgzMB/LrqVTxYvA=
SHA256-Digest: v9JV86okMb2y8UCyST10ZJmZi28egw6Fpua+HOdpAKU=
SHA1-Digest: 8HCRlK+lL8ZtNwyF7mNi5KuuuzM=
SHA256-Digest: nfDXmVeKgo/UF0V4X6ISb/OUvw68r2Pf7OCDffa40sg=
Name: when_ready.util-91474a6b.js
Digest-Algorithms: SHA1 SHA256
@ -77,8 +77,8 @@ SHA256-Digest: 9CNJMH1v+j2WlTe+sIo78TZ6LuVLab2QIwGtrMhSFLw=
Name: popup/index.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: X/+QqwkoQ/2LSAmw6IojRy+ZFEA=
SHA256-Digest: ELssVW8zEux25qpRliKg44b0YVg8g8MKJ+rSvVpZnQM=
SHA1-Digest: whRlFIsgAHUsxXG+LklCWr4h5xY=
SHA256-Digest: GCERazX/02M0DPZ0xM6LZlOPqojqYzvKRklDqKea0rQ=
Name: assets/icon16.png
Digest-Algorithms: SHA1 SHA256
@ -117,23 +117,23 @@ SHA256-Digest: SWQ0c104tRKLaUEOp9jtdl1bKuDYXQQNNXxQjdw6wJ4=
Name: content/youtube/inject.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: Ov5ue5JIapXyBOzbveEVoBNFPXk=
SHA256-Digest: FOL1i7Z8U1fU66AAbV3F2sSWGlMgSWfSNUAQdP8CgnM=
SHA1-Digest: pByrb3KBCtpW0DLo6/VPDpMRLQY=
SHA256-Digest: TqqIA4FQmVJvtMDGhDnNlVKSLVtGdLDIIl1IqwlH75M=
Name: content/youtube/index.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: FzEoDMTpvO6RgnXhR7dbrHb9EuU=
SHA256-Digest: uDoKZjRVQJc+v2MjqjIFM5sVrXufOPcRD+BRlXk2Wxg=
SHA1-Digest: sMJtFK28CDraOhO5E5Xa/tDUlQ0=
SHA256-Digest: 0EfiLGj1p2s6EiWdj6A18qNR3KsrusoapIpFw90xb0k=
Name: content/twitch/inject.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: 7NMc9FYcdiJ+XH27GauS1qIRsac=
SHA256-Digest: SHAgW6ZzT6DnrZMj+fBld3X/GcvpeydsH+zP+JgK+jw=
SHA1-Digest: 3J65UKR/H09RbyTokYymXyxMj/k=
SHA256-Digest: dnGWTJZWut83QwepmncuWjln0/clpDRmUskguhI+Q+Q=
Name: content/twitch/index.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: 0OlsTi3u80Ji/nlfE/jDs/H3BKQ=
SHA256-Digest: 1UDKMJwQ7k23j1hOxDrq5Mbt3uiLKSfmLQ0lHXDPe54=
SHA1-Digest: HqiBCgezv+LUYn4Umiw4bWs+ePs=
SHA256-Digest: EcqpAHaExr3EikKXkO3w4zw5zKmPu/w8efSbxKPIp5k=
Name: content/mogultv/index.js
Digest-Algorithms: SHA1 SHA256

Binary file not shown.

View File

@ -2,44 +2,44 @@ Manifest-Version: 1.0
Name: manifest.json
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: QyOWplGk05hY8yqOckI5ow3flts=
SHA256-Digest: YsavbsFOHi+AXVSbguQu0Tv60yoFhK9W3mW++ablOII=
SHA1-Digest: 8r4ge1MUkevIu5TBkndNSqufFpQ=
SHA256-Digest: fs4jGOByTYlWclNPpZVNV+wBFaXT6bWERzbjCnnoPe4=
Name: background.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: otZGFtDhcnbfdUJOCjW9i1NYPO0=
SHA256-Digest: mgVRfmNzMoxvuLndSlKK4AkCWDabpbekleOV++9cWtU=
SHA1-Digest: XqO63B4wrLb+qeRrur//MuXmTDg=
SHA256-Digest: MBwWJFWEitL5u4MiFpXe9wLvbu0v7biLBR5Wisap2RI=
Name: index-6137f488.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: rNamLTYc/X4gd/dLBlk300AQOW8=
SHA256-Digest: S33prVTiy5xonbBTGTEKPY1v+Lb84anybWbye+zq6wE=
Name: background.injected-af36b849.js
Name: background.injected-3cca8ca2.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: UF0lgn7oKe72Bjg/lBEwzH4Umis=
SHA256-Digest: NTFIqjrprPiv/JKI7ppnvr3q1Ibt8C/IGbLwkr3nHNk=
SHA1-Digest: Jkar4HKfUBl6hXuMilzSMoCT0Aw=
SHA256-Digest: jgpG5gD1Z25xRR6P5j0WTobFMtp6RcO8WDHHfIp6itk=
Name: get_stream_details-b6177000.js
Name: get_stream_details-14cd00a5.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: yCTRLEgpVeUuVBx6nRlIZGc/FkA=
SHA256-Digest: QzA+2ffC9lOLR9vXjdJYGXg12fQY0Fo5ga6Na4muGqU=
SHA1-Digest: iAnKOLOb4udJzWaXY204OcbQYSc=
SHA256-Digest: jJzqqz7+uuyLnGe0wOWx+0AHgeSmQLAiIhKUALSiL2M=
Name: parse_token.util-ed270559.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: IBgALOyVpV5c2qndWHw3xIwYD8o=
SHA256-Digest: EVxzphZ3DjnCxgg69Bb+Cb6qU+IQuSD6dp93AIhNWZg=
Name: fetch_youtube-71c76849.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: 42eBw2OqRR68eu8r/SPuKyFKaOQ=
SHA256-Digest: MRh597WCWZkT9t03IVvwdcOZZmjMuu7K4soQU/T2a/0=
Name: router.interface-6cdbc015.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: W9ch3UrWE93U87O7CGQLo4Zn1O8=
SHA256-Digest: icJArSO2T+nG5wNcv9j54PPcb7/4hrTvQgkyxvoww74=
Name: fetch_youtube-cfbafc47.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: vT66ulvIu0xCOVXaZGZWh2c2nF0=
SHA256-Digest: 6cQ6wZl/x0zOK/qQemwBNcc2ZkofI5ouXjHMG+t5cBE=
Name: style-inject.es-a0e1a0ba.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: syuFaCktG1wUUxfCChPrKvOC3Po=
@ -60,10 +60,10 @@ Digest-Algorithms: SHA1 SHA256
SHA1-Digest: pr0Fwt3L3YF+gW2/f1rMEthMD3c=
SHA256-Digest: QWplWRax1J1pkq64mM1eTeDg5Djv/CtiLJoIYlrZSI0=
Name: inject_script.util-c1ec59e3.js
Name: inject_script.util-a32f14cf.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: A1nesjjyxjUtFgzMB/LrqVTxYvA=
SHA256-Digest: v9JV86okMb2y8UCyST10ZJmZi28egw6Fpua+HOdpAKU=
SHA1-Digest: 8HCRlK+lL8ZtNwyF7mNi5KuuuzM=
SHA256-Digest: nfDXmVeKgo/UF0V4X6ISb/OUvw68r2Pf7OCDffa40sg=
Name: when_ready.util-91474a6b.js
Digest-Algorithms: SHA1 SHA256
@ -77,8 +77,8 @@ SHA256-Digest: 9CNJMH1v+j2WlTe+sIo78TZ6LuVLab2QIwGtrMhSFLw=
Name: popup/index.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: X/+QqwkoQ/2LSAmw6IojRy+ZFEA=
SHA256-Digest: ELssVW8zEux25qpRliKg44b0YVg8g8MKJ+rSvVpZnQM=
SHA1-Digest: whRlFIsgAHUsxXG+LklCWr4h5xY=
SHA256-Digest: GCERazX/02M0DPZ0xM6LZlOPqojqYzvKRklDqKea0rQ=
Name: assets/icon16.png
Digest-Algorithms: SHA1 SHA256
@ -117,23 +117,23 @@ SHA256-Digest: SWQ0c104tRKLaUEOp9jtdl1bKuDYXQQNNXxQjdw6wJ4=
Name: content/youtube/inject.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: Ov5ue5JIapXyBOzbveEVoBNFPXk=
SHA256-Digest: FOL1i7Z8U1fU66AAbV3F2sSWGlMgSWfSNUAQdP8CgnM=
SHA1-Digest: pByrb3KBCtpW0DLo6/VPDpMRLQY=
SHA256-Digest: TqqIA4FQmVJvtMDGhDnNlVKSLVtGdLDIIl1IqwlH75M=
Name: content/youtube/index.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: FzEoDMTpvO6RgnXhR7dbrHb9EuU=
SHA256-Digest: uDoKZjRVQJc+v2MjqjIFM5sVrXufOPcRD+BRlXk2Wxg=
SHA1-Digest: sMJtFK28CDraOhO5E5Xa/tDUlQ0=
SHA256-Digest: 0EfiLGj1p2s6EiWdj6A18qNR3KsrusoapIpFw90xb0k=
Name: content/twitch/inject.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: 7NMc9FYcdiJ+XH27GauS1qIRsac=
SHA256-Digest: SHAgW6ZzT6DnrZMj+fBld3X/GcvpeydsH+zP+JgK+jw=
SHA1-Digest: 3J65UKR/H09RbyTokYymXyxMj/k=
SHA256-Digest: dnGWTJZWut83QwepmncuWjln0/clpDRmUskguhI+Q+Q=
Name: content/twitch/index.js
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: 0OlsTi3u80Ji/nlfE/jDs/H3BKQ=
SHA256-Digest: 1UDKMJwQ7k23j1hOxDrq5Mbt3uiLKSfmLQ0lHXDPe54=
SHA1-Digest: HqiBCgezv+LUYn4Umiw4bWs+ePs=
SHA256-Digest: EcqpAHaExr3EikKXkO3w4zw5zKmPu/w8efSbxKPIp5k=
Name: content/mogultv/index.js
Digest-Algorithms: SHA1 SHA256
@ -142,11 +142,11 @@ SHA256-Digest: tAOufek6iJjCxZ5pmi9oNsTJl9EeiQppgYLc+9yq19s=
Name: META-INF/cose.manifest
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: JbBDgY4Auec9tEuvS6VrbtqtU88=
SHA256-Digest: TnnqxR++CyBRAEwdlIwvhgX7w7TJqfoi16AKWXm6nFM=
SHA1-Digest: BYmOAwTNBgO8Wxycx1Kf8NZscOU=
SHA256-Digest: Zi0CEgOSQTn5wZ0RfTnvHcb1xxKi3JWXHh8Vdb5TzIY=
Name: META-INF/cose.sig
Digest-Algorithms: SHA1 SHA256
SHA1-Digest: aq3V7SWNxTjUOvac4nR0ASzSuCo=
SHA256-Digest: NjaNWpbF0miRPZBdCYp2gIlbe0x6ekUrgeZX3GGkUK4=
SHA1-Digest: WVA3bcRE0X2r9BxtYMVyizWvBdo=
SHA256-Digest: r+7Plk+kPNkGrfm3iSQ3YrzmK0RMrInUx2arhNlpwx0=

Binary file not shown.

View File

@ -1,4 +1,4 @@
Signature-Version: 1.0
SHA1-Digest-Manifest: JvgRKeFOOFxt5PuYl6SWkpcmiRw=
SHA256-Digest-Manifest: RxJHimH6MUnrcxmytp7w/FtE2hPteHedAiMOwT1Gzow=
SHA1-Digest-Manifest: rXxx/jmQTUEvUnA0Ur7L1rDFQBY=
SHA256-Digest-Manifest: CQU6cByn0//bBe6Y2EED4kMJtPUxSzHwufrpQAfXJAI=

View File

@ -1,31 +1,38 @@
import {
t
} from './index-6137f488.js';
import {
s,
m
} from './storage-a8ac7bd3.js';
import {
n
} from './connectRuntime-a699491c.js';
import { t } from "./index-6137f488.js";
import { s, m } from "./storage-a8ac7bd3.js";
import { n } from "./connectRuntime-a699491c.js";
class o extends t {
constructor() {
super(), this.fetch = async (t, e) => {
super();
this.fetch = async (t, e) => {
const s = Math.random().toString();
return this.port.postMessage({
return (
this.port.postMessage({
nonce: s,
path: t,
body: e
}), new Promise((t => {
const e = a => {
body: e,
}),
new Promise((t) => {
const e = (a) => {
a.meta.nonce === s && (this.port.onMessage.removeListener(e), t(a));
};
this.port.onMessage.addListener(e);
}))
}, this.extensionId = s.runtime.id, this.port = this.connectToBackground(), this.port.onMessage.addListener(this.onMessage), window.addEventListener("message", (async t => {
})
);
};
this.extensionId = s.runtime.id;
this.port = this.connectToBackground();
this.port.onMessage.addListener(this.onMessage);
window.addEventListener("message", async (t) => {
var e, a, o;
if (t.source !== window || (null === (e = t.data) || void 0 === e ? void 0 : e.id) !== this.extensionId || "response" === (null === (a = t.data) || void 0 === a ? void 0 : a.type)) return;
if (
t.source !== window ||
(null === (e = t.data) || void 0 === e ? void 0 : e.id) !==
this.extensionId ||
"response" === (null === (a = t.data) || void 0 === a ? void 0 : a.type)
)
return;
let n;
switch (null === (o = t.data) || void 0 === o ? void 0 : o.type) {
case "fetch":
@ -34,30 +41,28 @@ class o extends t {
case "storage.get": {
const [e, a] = t.data.data.split(".");
n = await m[e].get(a);
break
break;
}
case "storage.set": {
const [e, a] = t.data.data[0].split(".");
n = await m[e].set(a, t.data.data[1]);
break
break;
}
}
window.postMessage({
id: this.extensionId,
nonce: t.data.nonce,
type: "response",
data: n
data: n,
});
});
}));
}
connectToBackground() {
return n()
return n();
}
async onMessage(t) {
window.postMessage(t);
}
}
export {
o
};
export { o };

View File

@ -0,0 +1,69 @@
import { t } from "./index-6137f488.js";
class e extends t {
constructor() {
super();
this.fetch = async (t, e) => this.sendToContentScript("fetch", [t, e]);
this.extensionId = (function () {
var t;
const e =
null === (t = document.getElementById("XQpBuigyZWZGIjvE")) ||
void 0 === t
? void 0
: t.getAttribute("XQpBuigyZWZGIjvE");
if (!e)
throw new Error("Could not resolve extension ID from injected script");
return e;
})();
window.addEventListener("message", (t) => {
var e, n;
t.source === window &&
(null === (e = t.data) || void 0 === e ? void 0 : e.id) ===
this.extensionId &&
"event" === (null === (n = t.data) || void 0 === n ? void 0 : n.type) &&
this.onMessage(t.data.data);
});
}
async onMessage(t) {}
async getStorage(t) {
return await this.sendToContentScript("storage.get", t);
}
async getLiveStorageValue(t, e = (t) => t) {
const n = {
value: e(await this.getStorage(t)),
},
o = window.setInterval(async () => {
n.value = e(await this.getStorage(t));
}, 1e3);
return (n.interval = o), n;
}
async setStorage(t, e) {
return this.sendToContentScript("storage.set", [t, e]);
}
async sendToContentScript(t, e) {
const n = Math.random().toString();
return (
window.postMessage({
id: this.extensionId,
nonce: n,
type: t,
data: e,
}),
new Promise((t) => {
const e = (o) => {
var s, a, i;
o.source === window &&
(null === (s = o.data) || void 0 === s ? void 0 : s.id) ===
this.extensionId &&
(null === (a = o.data) || void 0 === a ? void 0 : a.nonce) === n &&
"response" ===
(null === (i = o.data) || void 0 === i ? void 0 : i.type) &&
(t(o.data.data), window.removeEventListener("message", e));
};
window.addEventListener("message", e);
})
);
}
}
export { e };

View File

@ -1,52 +0,0 @@
import {
t
} from './index-6137f488.js';
class e extends t {
constructor() {
super(), this.fetch = async (t, e) => this.sendToContentScript("fetch", [t, e]), this.extensionId = function() {
var t;
const e = null === (t = document.getElementById("jjdtNVhjLLNiwvfY")) || void 0 === t ? void 0 : t.getAttribute("jjdtNVhjLLNiwvfY");
if (!e) throw new Error("Could not resolve extension ID from injected script");
return e
}(), window.addEventListener("message", (t => {
var e, n;
t.source === window && (null === (e = t.data) || void 0 === e ? void 0 : e.id) === this.extensionId && "event" === (null === (n = t.data) || void 0 === n ? void 0 : n.type) && this.onMessage(t.data.data);
}));
}
async onMessage(t) {}
async getStorage(t) {
return await this.sendToContentScript("storage.get", t)
}
async getLiveStorageValue(t, e = (t => t)) {
const n = {
value: e(await this.getStorage(t))
},
o = window.setInterval((async () => {
n.value = e(await this.getStorage(t));
}), 1e3);
return n.interval = o, n
}
async setStorage(t, e) {
return this.sendToContentScript("storage.set", [t, e])
}
async sendToContentScript(t, e) {
const n = Math.random().toString();
return window.postMessage({
id: this.extensionId,
nonce: n,
type: t,
data: e
}), new Promise((t => {
const e = o => {
var s, a, i;
o.source === window && (null === (s = o.data) || void 0 === s ? void 0 : s.id) === this.extensionId && (null === (a = o.data) || void 0 === a ? void 0 : a.nonce) === n && "response" === (null === (i = o.data) || void 0 === i ? void 0 : i.type) && (t(o.data.data), window.removeEventListener("message", e));
};
window.addEventListener("message", e);
}))
}
}
export {
e
};

View File

@ -1,246 +1,314 @@
import {
d as dt
} from './parse_token.util-ed270559.js';
import {
e
} from './fetch_youtube-71c76849.js';
import {
n
} from './router.interface-6cdbc015.js';
import {
s,
m
} from './storage-a8ac7bd3.js';
import { d as dt } from "./parse_token.util-ed270559.js";
import { n } from "./router.interface-6cdbc015.js";
import { e } from "./fetch_youtube-cfbafc47.js";
import { s as s$1, m } from "./storage-a8ac7bd3.js";
class o extends Error {
class s extends Error {
constructor(t, e) {
super(e), this.code = t, this.message = e;
super(e), (this.code = t), (this.message = e);
}
}
const r = (t, e = {}, a) => ({
const r = (t, e = {}, n) => ({
body: e,
meta: {
isSuccess: !1,
code: t,
nonce: a
}
nonce: n,
},
});
let i;
const c = t => s.cookies.getAll({
url: t
}).then((t => t.filter((t => !t.name.startsWith("ST-"))).map((t => [t.name, t.value])))).then(Object.fromEntries),
const c = (t) =>
s$1.cookies
.getAll({
url: t,
})
.then((t) =>
t.filter((t) => !t.name.startsWith("ST-")).map((t) => [t.name, t.value])
)
.then(Object.fromEntries),
u = {
"@me": async () => {
const t = await m.auth.get("token");
return dt(t)
return dt(t);
},
token: async () => await m.auth.get("token"),
logout: async () => {
const t = await m.auth.get("token");
await fetch("https://v2.mogultv.org/auth/youtube", {
method: "DELETE",
headers: {
Authorization: `Bearer ${t}`
}
}), await m.auth.remove("token");
Authorization: `Bearer ${t}`,
},
login: async t => {
const a = await c(t.href),
s = await fetch("https://v2.mogultv.org/auth/youtube", {
}),
await m.auth.remove("token");
},
login: async (t) => {
const n = await c(t.href),
a = await fetch("https://v2.mogultv.org/auth/youtube", {
method: "POST",
body: JSON.stringify(Object.assign(Object.assign({}, t), {
cookies: a
}))
body: JSON.stringify(
Object.assign(Object.assign({}, t), {
cookies: n,
})
),
});
if (200 !== s.status) return null;
const {
jwt: n
} = await s.json();
return await m.auth.set("token", n), n
if (200 !== a.status) return null;
const { jwt: o } = await a.json();
return await m.auth.set("token", o), o;
},
link: async t => {
const a = await m.auth.get("token"),
n = await fetch(`https://v2.mogultv.org/link/${t}`, {
link: async (t) => {
const n = await m.auth.get("token"),
o = await fetch(`https://v2.mogultv.org/link/${t}`, {
method: "GET",
headers: {
Authorization: `Bearer ${a}`
}
Authorization: `Bearer ${n}`,
},
});
if (200 !== n.status) return;
const o = await n.text();
if (200 !== o.status) return;
const s = await o.text();
await chrome.cookies.set({
url: "https://v2.mogultv.org",
name: "Authorization",
value: a,
value: n,
httpOnly: !0,
path: `/link/${t}/callback`,
expirationDate: Math.floor(Date.now() / 1e3) + 3600
}), await chrome.windows.create({
url: o,
expirationDate: Math.floor(Date.now() / 1e3) + 3600,
}),
await chrome.windows.create({
url: s,
focused: !0,
type: "popup",
width: 850,
height: 800
height: 800,
});
const r = await new Promise((t => {
const r = await new Promise((t) => {
i = t;
}));
return m.auth.set("token", r), dt(r)
});
return m.auth.set("token", r), dt(r);
},
"finish-link": async (t, e) => {
var s$1, n;
(null === (s$1 = e.sender.tab) || void 0 === s$1 ? void 0 : s$1.id) && s.tabs.remove(null === (n = e.sender.tab) || void 0 === n ? void 0 : n.id), null == i || i(t);
var a, o;
(null === (a = e.sender.tab) || void 0 === a ? void 0 : a.id) &&
s$1.tabs.remove(
null === (o = e.sender.tab) || void 0 === o ? void 0 : o.id
),
null == i || i(t);
},
"disconnect-link": async t => {
const a = await m.auth.get("token"),
n = await fetch(`https://v2.mogultv.org/link/${t}`, {
"disconnect-link": async (t) => {
const n = await m.auth.get("token"),
o = await fetch(`https://v2.mogultv.org/link/${t}`, {
method: "DELETE",
headers: {
Authorization: `Bearer ${a}`
}
Authorization: `Bearer ${n}`,
},
});
if (200 !== n.status) return;
const {
jwt: o
} = await n.json();
return await m.auth.set("token", o), dt(o)
}
if (200 !== o.status) return;
const { jwt: s } = await o.json();
return await m.auth.set("token", s), dt(s);
},
};
const l = t => async () => {
var a, s;
const n = await m.cache.get(t);
let o;
if (n && n.expiresAt > Date.now()) o = n.value;
const l = (t) => async () => {
var n, a;
const o = await m.cache.get(t);
let s;
if (o && o.expiresAt > Date.now()) s = o.value;
else {
const n = await fetch("https://v2.mogultv.org" + t),
r = Number(n.headers.get("age")),
i = Number((null === (s = null === (a = n.headers.get("cache-control")) || void 0 === a ? void 0 : a.match(/max-age=(\d+)/)) || void 0 === s ? void 0 : s[1]) || 300) - r,
const o = await fetch("https://v2.mogultv.org" + t),
r = Number(o.headers.get("age")),
i =
Number(
(null ===
(a =
null === (n = o.headers.get("cache-control")) || void 0 === n
? void 0
: n.match(/max-age=(\d+)/)) || void 0 === a
? void 0
: a[1]) || 300
) - r,
c = Date.now() + 1e3 * i;
o = await n.json(), await m.cache.set(t, {
(s = await o.json()),
await m.cache.set(t, {
expiresAt: c,
value: o
value: s,
});
}
return o
}, h = {
return s;
};
async function d(t, e) {
const n = {
sourceType: t,
sourceId: e,
};
try {
const t = await (async function (t, e, n, { throwIfErrors: a } = {}) {
var o;
const s = await fetch(t, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
query: e,
variables: n,
}),
}),
r = await s.json();
if (a && (null === (o = r.data) || void 0 === o ? void 0 : o.errors))
throw new Error(`spore graphql error ${r.data.errors}`);
return r.data;
})(
"https://zygote.spore.build/graphql",
"query GetExtensionMappingConnection($sourceType: String, $sourceId: String) {\n\textensionMappingConnection(sourceType: $sourceType, sourceId: $sourceId) {\n\t\tnodes {\n\t\t\tid\n\t\t\tslug\n\t\t\tiframeUrl\n\t\t\tdomAction\n\t\t\tquerySelector\n\t\t\tiframeQuerySelector\n\t\t}\n\t}\n}",
n
);
return t.extensionMappingConnection.nodes;
} catch (t) {
console.error(t);
}
}
const h = {
youtube: {
"get-stream": async () => {
const t = await m.cache.get("get-stream");
let a;
if (t && t.expiresAt > Date.now()) a = t.value;
let n;
if (t && t.expiresAt > Date.now()) n = t.value;
else {
const t = Date.now() + 6e4;
a = await async function() {
(n = await (async function () {
try {
const t = await fetch("https://youtube.com/channel/UCrPseYLGpNygVi34QpGNqpA/live");
const t = await fetch(
"https://youtube.com/channel/UCrPseYLGpNygVi34QpGNqpA/live"
);
if (200 !== t.status) return null;
const e = await t.text(),
a = /(?:window\s*\[\s*["']ytInitialData["']\s*\]|ytInitialData)\s*=\s*({.+?})\s*;/.exec(e);
if (a) {
const t = JSON.parse(a[1]),
n =
/(?:window\s*\[\s*["']ytInitialData["']\s*\]|ytInitialData)\s*=\s*({.+?})\s*;/.exec(
e
);
if (n) {
const t = JSON.parse(n[1]),
e = t.currentVideoEndpoint.watchEndpoint.videoId,
s = t.contents.twoColumnWatchNextResults.results.results.contents[0].videoPrimaryInfoRenderer,
n = t.contents.twoColumnWatchNextResults.results.results.contents[1].videoSecondaryInfoRenderer.owner.videoOwnerRenderer.thumbnail.thumbnails[0].url,
o = s.viewCount.videoViewCountRenderer.viewCount.runs.find((t => /^[0-9,]+$/.test(t.text))).text;
a =
t.contents.twoColumnWatchNextResults.results.results
.contents[0].videoPrimaryInfoRenderer,
o =
t.contents.twoColumnWatchNextResults.results.results
.contents[1].videoSecondaryInfoRenderer.owner
.videoOwnerRenderer.thumbnail.thumbnails[0].url,
s = a.viewCount.videoViewCountRenderer.viewCount.runs.find(
(t) => /^[0-9,]+$/.test(t.text)
).text;
return {
title: s.title.runs[0].text,
viewersCount: parseInt(o.replace(/,/g, "")),
title: a.title.runs[0].text,
viewersCount: parseInt(s.replace(/,/g, "")),
previewImageURL: `https://i.ytimg.com/vi/${e}/mqdefault.jpg`,
profileImageURL: n
}
profileImageURL: o,
};
}
} catch (t) {
console.warn(t);
}
return null
}(), await m.cache.set("get-stream", {
return null;
})()),
await m.cache.set("get-stream", {
expiresAt: t,
value: a
value: n,
});
}
return a
return n;
},
"get-user": async t => {
"get-user": async (t) => {
const e$1 = await c(t.href),
a = await e(Object.assign(Object.assign({}, t), {
cookies: e$1
}));
if (!a.success) throw new o(a.code, a.message);
return a.data
}
n = await e(
Object.assign(Object.assign({}, t), {
cookies: e$1,
})
);
if (!n.success) throw new s(n.code, n.message);
return n.data;
},
},
gateway: {
users: l("/gateway/users"),
emotes: l("/gateway/emotes"),
badges: l("/gateway/badges"),
"set-settings": async t => {
const a = await m.auth.get("token"),
n = await fetch("https://v2.mogultv.org/gateway/settings", {
"set-settings": async (t) => {
const n = await m.auth.get("token"),
o = await fetch("https://v2.mogultv.org/gateway/settings", {
method: "PUT",
headers: {
Authorization: `Bearer ${a}`
Authorization: `Bearer ${n}`,
},
body: JSON.stringify(t)
body: JSON.stringify(t),
}),
{
jwt: o
} = await n.json();
return m.auth.set("token", o), dt(o)
}
{ jwt: s } = await o.json();
return m.auth.set("token", s), dt(s);
},
},
auth: u,
extension: {
popup: () => s.action.openPopup(),
"open-tab": async t => {
await s.tabs.create({
url: t
popup: () => s$1.action.openPopup(),
"open-tab": async (t) => {
await s$1.tabs.create({
url: t,
});
}
}
}, d = async (e, a) => {
var s;
const {
path: n$1,
body: o
} = e;
if (!n$1) return;
e.meta ? e.meta.sender = a : e.meta = {
sender: a,
isPort: !1
}, e.meta.isPort || (e.meta.isPort = !1);
const i = t => {},
c = n$1.split("/").filter(Boolean),
},
},
spore: {
"fetch-extension-mappings": async (t) => await d("youtube", t),
},
};
const w = async (e, n$1) => {
var a;
const { path: o, body: s } = e;
if (!o) return;
e.meta
? (e.meta.sender = n$1)
: (e.meta = {
sender: n$1,
isPort: !1,
}),
e.meta.isPort || (e.meta.isPort = !1);
const i = (t) => {},
c = o.split("/").filter(Boolean),
u = c[0];
if (!(u in h)) {
return r(n.NotFound, void 0, e.nonce)
return r(n.NotFound, void 0, e.nonce);
}
const l = h[u][c.slice(1).join("/")];
if (!l) {
return r(n.NotFound, void 0, e.nonce)
return r(n.NotFound, void 0, e.nonce);
}
try {
const a = ((e, a) => ({
const n$1 = ((e, n$1) => ({
body: e,
meta: {
isSuccess: !0,
code: n.Success,
nonce: a
}
}))(await l(o, e.meta), e.nonce);
return i(a), a
} catch (a) {
const n$1 = a;
return r(null !== (s = n$1.code) && void 0 !== s ? s : n.Unknown, {
message: n$1.message
}, e.nonce)
nonce: n$1,
},
}))(await l(s, e.meta), e.nonce);
return i(n$1), n$1;
} catch (n$1) {
const o = n$1;
return r(
null !== (a = o.code) && void 0 !== a ? a : n.Unknown,
{
message: o.message,
},
e.nonce
);
}
};
s.runtime.onConnect.addListener((t => {
s$1.runtime.onConnect.addListener((t) => {
const e = t.sender;
e && t.onMessage.addListener((async a => {
a.meta = {
isPort: !0
e &&
t.onMessage.addListener(async (n) => {
n.meta = {
isPort: !0,
};
const s = await d(a, e);
t.postMessage(s);
}));
})), s.runtime.onMessage.addListener(d);
const a = await w(n, e);
t.postMessage(a);
});
}),
s$1.runtime.onMessage.addListener(w);

View File

@ -5,7 +5,7 @@ import {
o
} from '../../background.content-5f02aba1.js';
import {
e
} from '../../inject_script.util-c1ec59e3.js';
t
} from '../../inject_script.util-a32f14cf.js';
new o, e("content/twitch/inject.js");
new o, t("content/twitch/inject.js");

View File

@ -1,7 +1,7 @@
import '../../index-6137f488.js';
import {
e
} from '../../background.injected-af36b849.js';
} from '../../background.injected-3cca8ca2.js';
import {
s
} from '../../router.interface-6cdbc015.js';

View File

@ -1,7 +1,7 @@
import '../../index-6137f488.js';
import {
e as e$3
} from '../../get_stream_details-b6177000.js';
e as e$2
} from '../../get_stream_details-14cd00a5.js';
import {
e
} from '../../style-inject.es-a0e1a0ba.js';
@ -14,16 +14,16 @@ import {
o as o$1
} from '../../background.content-5f02aba1.js';
import {
e as e$2
} from '../../inject_script.util-c1ec59e3.js';
t
} from '../../inject_script.util-a32f14cf.js';
import {
e as e$1
} from '../../when_ready.util-91474a6b.js';
var o = "settings-module_ludwigLogo__Wt9ZZ",
i = "settings-module_ludwigSettingsPopup__Mfv9p";
async function c() {
const g = await d();
async function d() {
const g = await c();
let I = document.getElementById("ludwig-settings-popup");
g.addEventListener("click", (() => {
I ? I.style.display = "none" === I.style.display ? "block" : "none" : I = function() {
@ -39,12 +39,12 @@ async function c() {
}));
}
function d() {
function c() {
const g = document.getElementById("ludwig-settings-button");
if (g) return Promise.resolve(g);
const I = document.querySelector("ytd-masthead #end");
if (!I) return new Promise((g => {
setTimeout((() => g(d())), 1e3);
setTimeout((() => g(c())), 1e3);
}));
const A = document.createElement("yt-icon-button");
A.id = "ludwig-settings-button", A.setAttribute("label", "Mogul.TV Settings"), A.className = "style-scope ytd-masthead";
@ -56,12 +56,12 @@ async function a() {
setInterval((async () => {
await async function() {
const g = await m.settings.get("chatStyles"),
I = e$3();
I = e$2();
return g && I
}() ? document.body.setAttribute("data-mogul-chat-styles", "") : document.body.removeAttribute("data-mogul-chat-styles");
}), 250);
}
e('/* Overwrite colors on verified/owner names */\nyt-live-chat-author-chip[is-highlighted] #author-name.owner.yt-live-chat-author-chip,\n#author-name.owner.yt-live-chat-author-chip {\n color: var(--yt-live-chat-author-chip-owner-text-color) !important;\n}\n\nyt-live-chat-author-chip[is-highlighted] #author-name.yt-live-chat-author-chip {\n color: var(--yt-live-chat-author-chip-verified-text-color) !important;\n}\n\n\nbody[data-mogul-chat-styles] #author-photo.yt-live-chat-text-message-renderer {\n\tdisplay: none;\n}\n\nbody[data-mogul-chat-styles] yt-live-chat-text-message-renderer {\n\tmin-height: 24px;\n}\n\nbody[data-mogul-chat-styles] yt-live-chat-author-chip {\n\tdirection: rtl;\n}\n\nbody[data-mogul-chat-styles] yt-live-chat-author-chip::before {\n\tcontent: ":";\n}\n\nbody[data-mogul-chat-styles] #author-name.member.yt-live-chat-author-chip,\n#author-name.moderator.yt-live-chat-author-chip {\n font-weight: 800 !important;\n}\n\nbody[data-mogul-chat-styles] yt-live-chat-author-badge-renderer.yt-live-chat-author-chip {\n margin: 0 4px 0 0 !important;\n}\n\n#message.yt-live-chat-text-message-renderer .emoji.yt-live-chat-text-message-renderer {\n width: auto !important;\n}'), e$1((() => {
const g = null !== document.querySelector("yt-live-chat-app");
new o$1, e$2("content/youtube/inject.js"), g ? a() : c();
new o$1, t("content/youtube/inject.js"), g ? a() : d();
}));

File diff suppressed because it is too large Load Diff

View File

@ -7,20 +7,20 @@ async function e(e) {
message: "Missing cookie"
};
const n = new URL(t.href).origin,
c = Math.floor(Date.now() / 1e3),
a = await async function(e) {
a = Math.floor(Date.now() / 1e3),
s = await async function(e) {
const t = await crypto.subtle.digest("SHA-1", (new TextEncoder).encode(e));
return Array.from(new Uint8Array(t)).map((e => e.toString(16).padStart(2, "0"))).join("")
}(`${c} ${o} ${n}`), s = {
}(`${a} ${o} ${n}`), c = {
"x-origin": n,
authorization: `SAPISIDHASH ${c}_${a}`,
authorization: `SAPISIDHASH ${a}_${s}`,
"x-goog-authuser": t.authUser,
cookie: Object.entries(t.cookies).map((([e, t]) => `${e}=${t}`)).join(";")
};
t.pageId && (s["x-goog-pageid"] = t.pageId);
t.pageId && (c["x-goog-pageid"] = t.pageId);
const i = await fetch(`https://www.youtube.com${e}?key=${t.key}`, {
method: "POST",
headers: s,
headers: c,
body: JSON.stringify({
context: t.context
})
@ -35,11 +35,13 @@ async function e(e) {
try {
const e = o.actions[0].openPopupAction.popup.multiPageMenuRenderer,
t = e.header.activeAccountHeaderRenderer,
n = e.sections[0].multiPageMenuSectionRenderer.items[0].compactLinkRenderer.navigationEndpoint.browseEndpoint.browseId.trim().replace(/\n/g, "");
n = e.sections[0].multiPageMenuSectionRenderer.items[0].compactLinkRenderer.navigationEndpoint.browseEndpoint.browseId.trim().replace(/\n/g, ""),
a = o.responseContext.mainAppWebResponseContext.datasyncId.split("||")[0];
return /^UC.{22}$/.test(n) ? {
success: !0,
data: {
id: n,
googleUserId: a,
profile: t.accountPhoto.thumbnails[0].url,
username: t.accountName.simpleText
}

View File

@ -5,7 +5,7 @@ function n() {
return null === (e = null === (n = null == t ? void 0 : t.data) || void 0 === n ? void 0 : n.playerResponse) || void 0 === e ? void 0 : e.videoDetails
}();
return n || (n = function() {
const n = new URLSearchParams(window.location.hash.substring(1)).get("QXZRwEzaeHNfDqtD");
const n = new URLSearchParams(window.location.hash.substring(1)).get("rVuDVKjClhIQSUGR");
if (n) try {
return JSON.parse(n)
} catch (n) {

View File

@ -1,53 +1,73 @@
var e = {
exports: {}
exports: {},
};
! function(e) {
!(function (e) {
var t = Object.prototype.hasOwnProperty,
n = "~";
function r() {}
function o(e, t, n) {
this.fn = e, this.context = t, this.once = n || !1;
(this.fn = e), (this.context = t), (this.once = n || !1);
}
function s(e, t, r, s, i) {
if ("function" != typeof r) throw new TypeError("The listener must be a function");
if ("function" != typeof r)
throw new TypeError("The listener must be a function");
var c = new o(r, s || e, i),
f = n ? n + t : t;
return e._events[f] ? e._events[f].fn ? e._events[f] = [e._events[f], c] : e._events[f].push(c) : (e._events[f] = c, e._eventsCount++), e
return (
e._events[f]
? e._events[f].fn
? (e._events[f] = [e._events[f], c])
: e._events[f].push(c)
: ((e._events[f] = c), e._eventsCount++),
e
);
}
function i(e, t) {
0 == --e._eventsCount ? e._events = new r : delete e._events[t];
0 == --e._eventsCount ? (e._events = new r()) : delete e._events[t];
}
function c() {
this._events = new r, this._eventsCount = 0;
(this._events = new r()), (this._eventsCount = 0);
}
Object.create && (r.prototype = Object.create(null), (new r).__proto__ || (n = !1)), c.prototype.eventNames = function() {
var e, r, o = [];
Object.create &&
((r.prototype = Object.create(null)), new r().__proto__ || (n = !1)),
(c.prototype.eventNames = function () {
var e,
r,
o = [];
if (0 === this._eventsCount) return o;
for (r in e = this._events) t.call(e, r) && o.push(n ? r.slice(1) : r);
return Object.getOwnPropertySymbols ? o.concat(Object.getOwnPropertySymbols(e)) : o
}, c.prototype.listeners = function(e) {
for (r in (e = this._events)) t.call(e, r) && o.push(n ? r.slice(1) : r);
return Object.getOwnPropertySymbols
? o.concat(Object.getOwnPropertySymbols(e))
: o;
}),
(c.prototype.listeners = function (e) {
var t = n ? n + e : e,
r = this._events[t];
if (!r) return [];
if (r.fn) return [r.fn];
for (var o = 0, s = r.length, i = new Array(s); o < s; o++) i[o] = r[o].fn;
return i
}, c.prototype.listenerCount = function(e) {
for (var o = 0, s = r.length, i = new Array(s); o < s; o++)
i[o] = r[o].fn;
return i;
}),
(c.prototype.listenerCount = function (e) {
var t = n ? n + e : e,
r = this._events[t];
return r ? r.fn ? 1 : r.length : 0
}, c.prototype.emit = function(e, t, r, o, s, i) {
return r ? (r.fn ? 1 : r.length) : 0;
}),
(c.prototype.emit = function (e, t, r, o, s, i) {
var c = n ? n + e : e;
if (!this._events[c]) return !1;
var f, a, u = this._events[c],
var f,
a,
u = this._events[c],
v = arguments.length;
if (u.fn) {
switch (u.once && this.removeListener(e, u.fn, void 0, !0), v) {
switch ((u.once && this.removeListener(e, u.fn, void 0, !0), v)) {
case 1:
return u.fn.call(u.context), !0;
case 2:
@ -59,13 +79,17 @@ var e = {
case 5:
return u.fn.call(u.context, t, r, o, s), !0;
case 6:
return u.fn.call(u.context, t, r, o, s, i), !0
return u.fn.call(u.context, t, r, o, s, i), !0;
}
for (a = 1, f = new Array(v - 1); a < v; a++) f[a - 1] = arguments[a];
u.fn.apply(u.context, f);
} else {
var p, l = u.length;
for (a = 0; a < l; a++) switch (u[a].once && this.removeListener(e, u[a].fn, void 0, !0), v) {
var p,
l = u.length;
for (a = 0; a < l; a++)
switch (
(u[a].once && this.removeListener(e, u[a].fn, void 0, !0), v)
) {
case 1:
u[a].fn.call(u[a].context);
break;
@ -80,34 +104,49 @@ var e = {
break;
default:
if (!f)
for (p = 1, f = new Array(v - 1); p < v; p++) f[p - 1] = arguments[p];
for (p = 1, f = new Array(v - 1); p < v; p++)
f[p - 1] = arguments[p];
u[a].fn.apply(u[a].context, f);
}
}
return !0
}, c.prototype.on = function(e, t, n) {
return s(this, e, t, n, !1)
}, c.prototype.once = function(e, t, n) {
return s(this, e, t, n, !0)
}, c.prototype.removeListener = function(e, t, r, o) {
return !0;
}),
(c.prototype.on = function (e, t, n) {
return s(this, e, t, n, !1);
}),
(c.prototype.once = function (e, t, n) {
return s(this, e, t, n, !0);
}),
(c.prototype.removeListener = function (e, t, r, o) {
var s = n ? n + e : e;
if (!this._events[s]) return this;
if (!t) return i(this, s), this;
var c = this._events[s];
if (c.fn) c.fn !== t || o && !c.once || r && c.context !== r || i(this, s);
if (c.fn)
c.fn !== t || (o && !c.once) || (r && c.context !== r) || i(this, s);
else {
for (var f = 0, a = [], u = c.length; f < u; f++)(c[f].fn !== t || o && !c[f].once || r && c[f].context !== r) && a.push(c[f]);
a.length ? this._events[s] = 1 === a.length ? a[0] : a : i(this, s);
for (var f = 0, a = [], u = c.length; f < u; f++)
(c[f].fn !== t || (o && !c[f].once) || (r && c[f].context !== r)) &&
a.push(c[f]);
a.length ? (this._events[s] = 1 === a.length ? a[0] : a) : i(this, s);
}
return this
}, c.prototype.removeAllListeners = function(e) {
return this;
}),
(c.prototype.removeAllListeners = function (e) {
var t;
return e ? (t = n ? n + e : e, this._events[t] && i(this, t)) : (this._events = new r, this._eventsCount = 0), this
}, c.prototype.off = c.prototype.removeListener, c.prototype.addListener = c.prototype.on, c.prefixed = n, c.EventEmitter = c, e.exports = c;
}(e);
return (
e
? ((t = n ? n + e : e), this._events[t] && i(this, t))
: ((this._events = new r()), (this._eventsCount = 0)),
this
);
}),
(c.prototype.off = c.prototype.removeListener),
(c.prototype.addListener = c.prototype.on),
(c.prefixed = n),
(c.EventEmitter = c),
(e.exports = c);
})(e);
var t = e.exports;
export {
e,
t
};
export { e, t };

View File

@ -0,0 +1,13 @@
import {
s
} from './storage-a8ac7bd3.js';
function t(t) {
const n = document.head || document.documentElement,
i = document.createElement("script");
i.type = "module", i.id = "XQpBuigyZWZGIjvE", i.setAttribute("XQpBuigyZWZGIjvE", s.runtime.id), i.src = s.runtime.getURL(t), n.prepend(i);
}
export {
t
};

View File

@ -1,13 +0,0 @@
import {
s
} from './storage-a8ac7bd3.js';
function e(e) {
const d = document.head || document.documentElement,
n = document.createElement("script");
n.type = "module", n.id = "jjdtNVhjLLNiwvfY", n.setAttribute("jjdtNVhjLLNiwvfY", s.runtime.id), n.src = s.runtime.getURL(e), d.prepend(n);
}
export {
e
};

View File

@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Mogul.TV",
"version": "2.0.1",
"version": "2.1.0",
"description": "Enhance your Ludwig viewing experience",
"browser_specific_settings": {
"gecko": {
@ -63,16 +63,16 @@
"web_accessible_resources": [
"content/youtube/inject.js",
"content/twitch/inject.js",
"background.injected-af36b849.js",
"get_stream_details-b6177000.js",
"background.injected-3cca8ca2.js",
"get_stream_details-14cd00a5.js",
"index-6137f488.js",
"parse_token.util-ed270559.js",
"fetch_youtube-71c76849.js",
"router.interface-6cdbc015.js",
"fetch_youtube-cfbafc47.js",
"style-inject.es-a0e1a0ba.js",
"storage-a8ac7bd3.js",
"background.content-5f02aba1.js",
"inject_script.util-c1ec59e3.js",
"inject_script.util-a32f14cf.js",
"connectRuntime-a699491c.js",
"when_ready.util-91474a6b.js",
"content/twitch/index.js",

File diff suppressed because it is too large Load Diff

7
sporeinjection.json Normal file
View File

@ -0,0 +1,7 @@
{
"iframeQuerySelector": "",
"querySelector": "",
"slug": "ludwig",
"domAction": "append",
"iframeUrl": "https://ludwig.social/component-instance/4e8899d0-6d27-11ec-88da-c92b950649ef"
}