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": [
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",
"implies": "PHP",
"js": {
"mw.util.toggleToc": ""
},
"meta": {
"generator": "^MediaWiki ?(.+)$\\;version:\\1"
},
"website": "http://www.mediawiki.org"
"website": "https://www.mediawiki.org"
},
"Medium": {
"cats": [

Loading…
Cancel
Save