Improve mediawiki detection (#2549)

- Optimize the regex
- Add a js detection
- Use https for the website
main
jvoisin 6 years ago committed by Elbert Alias
parent b8cfbf5bcd
commit 0f4dcdb1a7

@ -6007,13 +6007,20 @@
"cats": [ "cats": [
8 8
], ],
"html": "(?:<a[^>]+>Powered by MediaWiki</a>|<[^>]+id=\"t-specialpages)", "html": [
"<body[^>]+class=\"mediawiki\"",
"<(?:a|img)[^>]+>Powered by MediaWiki</a>",
"<a[^>]+/Special:WhatLinksHere/"
],
"icon": "MediaWiki.png", "icon": "MediaWiki.png",
"implies": "PHP", "implies": "PHP",
"js": {
"mw.util.toggleToc": ""
},
"meta": { "meta": {
"generator": "^MediaWiki ?(.+)$\\;version:\\1" "generator": "^MediaWiki ?(.+)$\\;version:\\1"
}, },
"website": "http://www.mediawiki.org" "website": "https://www.mediawiki.org"
}, },
"Medium": { "Medium": {
"cats": [ "cats": [

Loading…
Cancel
Save