mediawiki-projects-list 4.7.0 → 4.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -0
- package/package.json +1 -1
- package/projects.json +36 -0
package/index.js
CHANGED
|
@@ -248,6 +248,7 @@ function inputToFrontendProxy(input) {
|
|
|
248
248
|
function urlToFix(url) {
|
|
249
249
|
let hostname = url.split('/')[2];
|
|
250
250
|
if ( functionCache.urlToFix.has(hostname) ) return functionCache.urlToFix.get(hostname);
|
|
251
|
+
/** @type {?((href:String,pagelink:String)=>String)} */
|
|
251
252
|
let result = null;
|
|
252
253
|
let frontendProxy = getFrontendProxy(hostname);
|
|
253
254
|
if ( frontendProxy ) {
|
package/package.json
CHANGED
package/projects.json
CHANGED
|
@@ -17,6 +17,35 @@
|
|
|
17
17
|
"scriptPath": "https://$2.fandom.com/",
|
|
18
18
|
"note": "Missing language support."
|
|
19
19
|
},
|
|
20
|
+
{
|
|
21
|
+
"name": "minceraft.wiki",
|
|
22
|
+
"regex": "(((?:[a-z-]{2,12})\\.|)minceraft\\.wiki)(?:/wiki/|/w/|/|$)",
|
|
23
|
+
"namePath": "https://$2minceraft.wiki/",
|
|
24
|
+
"articlePath": "https://$2minceraft.wiki/w/",
|
|
25
|
+
"scriptPath": "https://$2minecraft.wiki/"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "osrs.wiki",
|
|
29
|
+
"regex": "((?:www\\.)?osrs\\.wiki)(?:/wiki/|/w/|/|$)",
|
|
30
|
+
"namePath": "https://osrs.wiki/",
|
|
31
|
+
"articlePath": "https://osrs.wiki/",
|
|
32
|
+
"scriptPath": "https://oldschool.runescape.wiki/"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "rs.wiki",
|
|
36
|
+
"regex": "(((?:os|pt|www)\\.|)rs\\.wiki)(?:/wiki/|/w/|/|$)",
|
|
37
|
+
"namePath": "https://$2rs.wiki/",
|
|
38
|
+
"articlePath": "https://$2rs.wiki/",
|
|
39
|
+
"scriptPath": "https://$2runescape.wiki/"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "tolkien.wiki",
|
|
43
|
+
"regex": "((?:www\\.)?tolkien\\.wiki)/?$",
|
|
44
|
+
"namePath": "https://tolkien.wiki/",
|
|
45
|
+
"articlePath": "https://tolkien.wiki/",
|
|
46
|
+
"scriptPath": "https://tolkiengateway.net/w/",
|
|
47
|
+
"relativeFix": "^/wiki(?=/)"
|
|
48
|
+
},
|
|
20
49
|
{
|
|
21
50
|
"name": "wikiless.org",
|
|
22
51
|
"regex": "(wikiless\\.org/.*?\\?(?:.*?&)?lang=([a-z\\d-]{1,50}))(?:&|/?$)",
|
|
@@ -782,6 +811,13 @@
|
|
|
782
811
|
"scriptPath": "/w/",
|
|
783
812
|
"fullScriptPath": "https://love2d.org/w/"
|
|
784
813
|
},
|
|
814
|
+
{
|
|
815
|
+
"name": "maplestorywiki.net",
|
|
816
|
+
"regex": "((?:www\\.)?maplestorywiki\\.net)",
|
|
817
|
+
"articlePath": "/w/",
|
|
818
|
+
"scriptPath": "/",
|
|
819
|
+
"fullScriptPath": "https://www.maplestorywiki.net/"
|
|
820
|
+
},
|
|
785
821
|
{
|
|
786
822
|
"name": "marcaargentea.net",
|
|
787
823
|
"regex": "((?:www\\.)?marcaargentea\\.net)",
|