-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.html
128 lines (114 loc) · 8.13 KB
/
settings.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>New Minecraft Wiki Redirect settings</title>
<link rel="stylesheet" href="styles.css">
</head>
<body class="permissions-granted">
<section class="container" id="settings">
<div class="warning section permissions-request" id="permissions-request">
<h3>Permissions are required to continue</h3>
<p>This extension must be assigned the following manifest v3 permissions to work properly:</p>
<ul>
<li>Assign network request rules on <code>minecraft.fandom.com</code></li>
<li>Assign network request rules on <code>*.gamepedia.com</code></li>
<li>Assign network request rules on <code>*.minecraftwiki.net</code></li>
</ul>
<div class="option"><button id="enable-permissions" class="primary permissions-request" autofocus>
Enable permissions required for <span style="white-space: nowrap;">New Minecraft Wiki Redirect</span> to work
</button></div>
</div>
<div class="section">
<h3><span style="white-space: nowrap;">New Minecraft Wiki Redirect</span> settings</h3>
<div class="option">
<label><input type="checkbox" name="redirect" checked> Enable redirect <strong class="permissions-request">⚠️ <a href="#">Permissions required</a></strong></label>
</div>
<div class="option">
<label><input type="checkbox" name="project-promos" id="project-promos-checkbox" checked> Show blurbs on this preferences page for other project(s) made by the developer and friends</label>
</div>
<div class="option"><button id="uninstall">
Uninstall this extension
</button></div>
</div>
</section>
<section class="container" id="project-promos" style="display: none;">
<div class="section uv">
<label for="project-promos-checkbox" class="close">x</label>
<div class="uv-container">
<img src="img/uv.jpg" class="uv-screenshot">
<div class="uv-text">
<p><h3>Looking for a Minecraft server?</h3></p>
<p>Join us at <strong>UltraVanilla</strong> — a wholesome not-for-profit Minecraft SMP server focused on building, events, and socializing. We're great for both serious and casual players alike. We have a nearly 5 year old world, a wiki full of lore, hundreds of map art and dozens of towns to visit!</p>
<label><strong>Address:</strong> <input type="text" value="play.ultravanilla.world" readonly></label>
<p><a href="https://wiki.ultravanilla.world" rel="noopener noreferrer" target="_blank">UltraVanilla Wiki</a> | <a href="https://ultravanilla.world/" rel="noopener noreferrer" target="_blank">UltraVanilla World Map</a> | <a href="https://discord.gg/23GdyeQaBs" rel="noopener noreferrer" target="_blank">UltraVanilla Discord</a></p>
</div>
</div>
</div>
</section>
<section class="container" id="documentation">
<h1>Documentation</h1>
<p>This extension will redirect the Fandom Minecraft wiki to <a href="https://minecraft.wiki" rel="noopener noreferrer" target="_blank">https://minecraft.wiki</a></p>
<p>Made with ❤️ by lordpipe.</p>
<p>It contains no surprises, no data collection, no third party assets, and uses the minimal set of manifest v3 permissions. Unlike userscript-based alternatives, this uses the declarative net requests APIs to redirect the page before an HTTP request to Fandom is sent, so CPU time is not wasted loading the original page.</p>
<h3>Redirected domains</h3>
<p>This extension redirects the following domains:</p>
<ul>
<li><code>minecraft.fandom.com</code></li>
<li><code>minecraft.fandom.com/de</code></li>
<li><code>minecraft.fandom.com/fr</code></li>
<li><code>minecraft.fandom.com/es</code></li>
<li><code>minecraft.fandom.com/ko</code></li>
<li><code>minecraft.fandom.com/pt</code></li>
<li><code>minecraft.fandom.com/ru</code></li>
<li><code>minecraft.fandom.com/uk</code></li>
<li><code>minecraft.fandom.com/zh</code></li>
<li><code>minecraft.gamepedia.com</code></li>
<li><code>minecraft-de.gamepedia.com</code></li>
<li><code>minecraft-es.gamepedia.com</code></li>
<li><code>minecraft-fr.gamepedia.com</code></li>
<li><code>minecraft-ja.gamepedia.com</code></li>
<li><code>minecraft-ko.gamepedia.com</code></li>
<li><code>minecraft-lzh.gamepedia.com</code></li>
<li><code>minecraft-pt.gamepedia.com</code></li>
<li><code>minecraft-ru.gamepedia.com</code></li>
<li><code>minecraft-th.gamepedia.com</code></li>
<li><code>minecraft-uk.gamepedia.com</code></li>
<li><code>minecraft-zh.gamepedia.com</code></li>
<li><code>minecraftwiki.net</code></li>
<li><code>de.minecraftwiki.net</code></li>
<li><code>es.minecraftwiki.net</code></li>
<li><code>fr.minecraftwiki.net</code></li>
<li><code>ja.minecraftwiki.net</code></li>
<li><code>ko.minecraftwiki.net</code></li>
<li><code>lzh.minecraftwiki.net</code></li>
<li><code>pt.minecraftwiki.net</code></li>
<li><code>ru.minecraftwiki.net</code></li>
<li><code>th.minecraftwiki.net</code></li>
<li><code>uk.minecraftwiki.net</code></li>
<li><code>zh.minecraftwiki.net</code></li>
</ul>
<h2>Usage instructions</h2>
<p>To get started, enable permissions for this extension by clicking the button above.</p>
<div><img src="img/tutorial/tutorial-1.png"></div>
<p>Click <code>Allow</code></p>
<div><img src="img/tutorial/tutorial-2.png"></div>
<h3>Toggling redirection</h3>
<p>You may wish to temporarily disable the redirection. To do so, you can click the browser action button for the extension. To show it on the toolbar, click <code>Extensions</code>, click the gear icon next to the extension, and check <code>Pin to Toolbar</code>:</p>
<div><img src="img/tutorial/tutorial-3.png"></div>
<p>Then click on it to toggle between on and off. When the <code>X</code> is shown, redirection is turned off.</p>
<div><img src="img/tutorial/tutorial-4.png"></div>
</section>
<section class="container" id="about">
<h2>About / License</h2>
<p>Made by lordpipe briefly after the Minecraft Wiki switched from Fandom to an independent wiki host.</p>
<p><a href="https://github.com/lordofpipes/new-minecraft-wiki-redirect" rel="noopener noreferrer" target="_blank">Source code on Github</a></p>
<p><strong>Copyright © lordpipe 2023</strong></p>
<p>This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p>
<p>This program is distributed in the hope that it will be useful, but <strong>without any warranty</strong>; without even the implied warranty of <strong>merchantability</strong> or <strong>fitness for a particular purpose</strong>. See the GNU General Public License for more details.</p>
<p><a href="LICENSE" rel="noopener noreferrer" target="_blank">GPLv3 License Plaintext</a></p>
</section>
<script src="settings.js"></script>
</body>
</html>