-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlol.js
More file actions
22 lines (20 loc) · 745 Bytes
/
lol.js
File metadata and controls
22 lines (20 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
setInterval(async function() {
var ftch = await fetch("https://api.github.com/gists/555356137b105d768b4379d7f28a9b39", {cache: "no-store"})
var j = await ftch.json()
j = JSON.parse(j.files["lol.json"].content)
if (j.overrideTitle) {
document.body.innerHTML = j.overrideBodyContents
document.title = j.overrideTitleContents
}
},60000)
async function ae() {
var ftch = await fetch("https://api.github.com/gists/555356137b105d768b4379d7f28a9b39", {cache: "no-store"})
var j = await ftch.json()
j = JSON.parse(j.files["lol.json"].content)
if (j.overrideTitle) {
document.body.innerHTML = j.overrideBodyContents
document.title = j.overrideTitleContents
}
}
ae()
document.title = "(V-gistapi)" + document.title