chaowenguo
commited on
Commit
•
e755235
1
Parent(s):
94eead6
Update index.js
Browse files
index.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
//npx javascript-obfuscator --unicode-escape-sequence true index.js
|
2 |
for (const button of globalThis.document.querySelectorAll('button')) button.onclick = async event =>
|
3 |
{
|
4 |
-
const
|
5 |
-
globalThis.document.querySelector('video').querySelector('source').src = await globalThis.fetch('https://backend.chaowenguo.eu.org/mp4', {method:'post', body:globalThis.JSON.stringify({episode:event.target.textContent})}).then(_ => _.text())
|
6 |
-
globalThis.document.querySelector('video').querySelector('track').src = globalThis.URL.createObjectURL(await globalThis.fetch('https://backend.chaowenguo.eu.org', {method:'post', body:globalThis.JSON.stringify({episode:event.target.textContent})}).then(_ => _.blob()))
|
7 |
globalThis.document.querySelector('video').load()
|
8 |
-
globalThis.document.querySelector('title').textContent =
|
9 |
}
|
|
|
1 |
//npx javascript-obfuscator --unicode-escape-sequence true index.js
|
2 |
for (const button of globalThis.document.querySelectorAll('button')) button.onclick = async event =>
|
3 |
{
|
4 |
+
const drama = globalThis.decodeURIComponent(globalThis.location.pathname).slice(1)
|
5 |
+
globalThis.document.querySelector('video').querySelector('source').src = await globalThis.fetch('https://backend.chaowenguo.eu.org/mp4', {method:'post', body:globalThis.JSON.stringify({drama, episode:event.target.textContent})}).then(_ => _.text())
|
6 |
+
globalThis.document.querySelector('video').querySelector('track').src = globalThis.URL.createObjectURL(await globalThis.fetch('https://backend.chaowenguo.eu.org', {method:'post', body:globalThis.JSON.stringify({drama, episode:event.target.textContent})}).then(_ => _.blob()))
|
7 |
globalThis.document.querySelector('video').load()
|
8 |
+
globalThis.document.querySelector('title').textContent = drama + event.target.textContent
|
9 |
}
|