-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
userscripts.html
165 lines (129 loc) · 6.82 KB
/
userscripts.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-JSVDE0W9KL"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-JSVDE0W9KL');
</script>
<meta charset="UTF-8">
<link rel="stylesheet" href="./css/style.css">
<link rel="icon" href="./files/logo.png">
<title>Bane // Userscripts</title>
</head>
<body>
<div class="header">
<div class="logo">
<img class="logoImg" src="./files/logo.png" style="width:40px; height: 40px;">
<h1 style="line-height: 0.3;">Bane</h1>
<a href="./index.html">
<span class="linkSpan"></span>
</a>
</div>
<h4 class="NavBar">
<a id="secret" style="opacity: 0; margin-right: 10px;" href="./test.html">Test page</a>
<a id="contact" href="https://twitter.com/Jordy_3D">Twitter</a>
<a id="support" href="https://github.com/Jordy3D/">GitHub</a>
</h4>
</div>
<div class="crt">
<div class="scan"></div>
</div>
<div class="content">
<h1 class="separator-title">//About</h1>
<div class="section">
<div class="section-content">
<p>In order to download and use these styles, you need to install something like Tampermonkey
first.<br>Here is a link to the extension:</p>
<div class="stylus-button-holder">
<a id="chrome" href="https://www.tampermonkey.net/">Tampermonkey</a>
</div>
</div>
</div>
<h1 class="separatorTitle">//Content</h1>
<script>
function createCard(script, image, description, leftOverride = null) {
var scriptInfo = loadUserscriptInformation(script);
var container = document.querySelector(".column");
var card = document.createElement("div");
card.classList.add("objectCard");
var cardData = document.createElement("div");
cardData.classList.add("objectCardData");
cardData.style.backgroundImage = `url(${image})`;
var cardFilter = document.createElement("div");
cardFilter.classList.add("objectCardFilter");
cardFilter.style.backdropFilter = "brightness(0.25) blur(16px)";
var cardImageHolder = document.createElement("div");
cardImageHolder.classList.add("objectCardImageHolder");
var cardImage = document.createElement("img");
cardImage.loading = "lazy";
cardImage.src = image;
cardImage.style.left = "-85px";
if (leftOverride != null)
cardImage.style.left = leftOverride;
cardImageHolder.appendChild(cardImage);
var cardInfo = document.createElement("div");
cardInfo.classList.add("objectCardInfo");
var cardHeader = document.createElement("div");
cardHeader.classList.add("objectCardHeader");
var cardTitle = document.createElement("h4");
cardTitle.classList.add("objectCardTitle");
cardTitle.innerHTML = scriptInfo.name;
var cardVersion = document.createElement("h5");
cardVersion.classList.add("objectCardVersion");
cardVersion.innerHTML = `v${scriptInfo.version}`;
var cardDescription = document.createElement("p");
cardDescription.innerHTML = description;
var cardLink = document.createElement("a");
cardLink.href = script;
var cardLinkSpan = document.createElement("span");
cardLinkSpan.classList.add("linkSpan");
cardLink.appendChild(cardLinkSpan);
cardInfo.appendChild(cardHeader);
cardHeader.appendChild(cardTitle);
cardHeader.appendChild(cardVersion);
cardInfo.appendChild(cardDescription);
cardInfo.appendChild(cardLink);
cardFilter.appendChild(cardImageHolder);
cardFilter.appendChild(cardInfo);
cardData.appendChild(cardFilter);
card.appendChild(cardData);
container.appendChild(card);
return card;
}
function loadUserscriptInformation(scriptURL) {
var request = new XMLHttpRequest();
request.open("GET", scriptURL, false);
request.send(null);
var script = request.responseText;
var name = script.match(/\/\/\s*@name\s+(.*)/)[1];
var version = script.match(/\/\/\s*@version\s+(.*)/)[1];
return { name: name, version: version };
}
</script>
<div class="objectListContainer">
<div class="column">
<script>
createCard("files/userscripts/js/YouTubePlus.user.js", "files/userscripts/images/youtubecommentbuttons.png", "A number of bonus features for YouTube.<br><li>SHORTS: Volume Control, Watch as Video, and Download</li><li>GENERAL: Simple Markdown formatting on Comments and Replies.</li>");
createCard("files/userscripts/js/ArxivWebShortcut.user.js", "files/userscripts/images/arxivweb.png", "Arxiv has a cool feature.<br>It shouldn't be hidden.", "-35px");
createCard("files/userscripts/js/DiscordChan.user.js", "files/userscripts/images/discordchan.png", "Greentexts are a gift from God.<br>Create a little Discord.");
createCard("files/userscripts/js/JSRL.user.js", "files/userscripts/images/jsrlp.png", "The streets of Tokyo-to deserve a little more lovin'");
createCard("https://raw.githubusercontent.com/Jordy3D/DeathworldersTweaks/main/userscript/Deathworlders.user.js", "https://raw.githubusercontent.com/Jordy3D/DeathworldersTweaks/main/image/deathworlders.png", "A little bit of extra functionality for the Deathworlders webnovel.", "0px");
</script>
<h1 class="separator-title ">//Support</h1>
<div class="section " id="support">
<div class="section-content ">
<p>This isn't necessary, but any support would be greatly appreciated!</p>
<div class="supportLinks ">
<a href="https://ko-fi.com/jordy3d ">Ko-Fi</a>
<a href="https://www.buymeacoffee.com/jordy3d ">Buymeacoffee</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>