mediawiki-projects-list 4.6.12 → 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.d.ts +0 -1
- package/index.js +2 -1
- package/package.json +1 -1
- package/projects-schema.json +1 -2
- package/projects.json +37 -18
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -3,7 +3,7 @@ const PROJECTS = require('./projects.json');
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* A wiki farm
|
|
6
|
-
* @typedef {"biligame"|"fandom"|"huijiwiki"|"miraheze"|"mywikis"|"shoutwiki"|"telepedia"|"wiki.gg"|"wikimedia"|
|
|
6
|
+
* @typedef {"biligame"|"fandom"|"huijiwiki"|"miraheze"|"mywikis"|"shoutwiki"|"telepedia"|"wiki.gg"|"wikimedia"|null} WikiFarm
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -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-schema.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)",
|
|
@@ -1151,7 +1187,7 @@
|
|
|
1151
1187
|
"articlePath": "/wiki/",
|
|
1152
1188
|
"scriptPath": "/w/",
|
|
1153
1189
|
"fullScriptPath": "https://www.polandballwiki.com/w/",
|
|
1154
|
-
"wikiFarm": "
|
|
1190
|
+
"wikiFarm": "miraheze",
|
|
1155
1191
|
"extensions": [
|
|
1156
1192
|
"CentralAuth",
|
|
1157
1193
|
"OAuth"
|
|
@@ -2173,23 +2209,6 @@
|
|
|
2173
2209
|
"OAuth"
|
|
2174
2210
|
]
|
|
2175
2211
|
},
|
|
2176
|
-
{
|
|
2177
|
-
"name": "wikitide.org",
|
|
2178
|
-
"regex": "(([a-z\\d-]{1,50})\\.wikitide\\.org)",
|
|
2179
|
-
"articlePath": "/wiki/",
|
|
2180
|
-
"scriptPath": "/w/",
|
|
2181
|
-
"idString": {
|
|
2182
|
-
"regex": "([a-z\\d-]{1,50})",
|
|
2183
|
-
"scriptPaths": [
|
|
2184
|
-
"https://$1.wikitide.org/w/"
|
|
2185
|
-
]
|
|
2186
|
-
},
|
|
2187
|
-
"wikiFarm": "wikitide",
|
|
2188
|
-
"extensions": [
|
|
2189
|
-
"CentralAuth",
|
|
2190
|
-
"OAuth"
|
|
2191
|
-
]
|
|
2192
|
-
},
|
|
2193
2212
|
{
|
|
2194
2213
|
"name": "wikiversity.org",
|
|
2195
2214
|
"regex": "((?:([a-z\\d-]{1,50})\\.)?(?:m\\.)?wikiversity\\.org)",
|