mediawiki-extensions-SpamBl.../extension.json
Kunal Mehta 498738a54f Grant bots the "sboverride" userright by default
It's kind of useless to not give this right to anyone by default since
the whole point of introducing the userright was to use it.

Bots are a good place to start as they're usually pre-vetted and
normally just copying already existing links when being blocked
(e.g. archive bots).

Bug: T313107
Bug: T334344
Change-Id: Ib0ff42ed730d3fe5f5bb6c06f0a87b4959c1f989
2023-05-27 02:28:15 -04:00

119 lines
2.5 KiB
JSON

{
"name": "SpamBlacklist",
"author": [
"Tim Starling",
"John Du Hart",
"Daniel Kinzler"
],
"url": "https://www.mediawiki.org/wiki/Extension:SpamBlacklist",
"descriptionmsg": "spam-blacklist-desc",
"type": "antispam",
"license-name": "GPL-2.0-or-later",
"requires": {
"MediaWiki": ">= 1.41.0"
},
"GroupPermissions": {
"user": {
"spamblacklistlog": true
},
"bot": {
"sboverride": true
}
},
"AvailableRights": [
"spamblacklistlog",
"sboverride"
],
"LogTypes": [
"spamblacklist"
],
"LogRestrictions": {
"spamblacklist": "spamblacklistlog"
},
"LogActionsHandlers": {
"spamblacklist/*": "MediaWiki\\Extension\\SpamBlacklist\\SpamBlacklistLogFormatter"
},
"GrantPermissions": {
"viewrestrictedlogs": {
"spamblacklistlog": true
},
"editprotected": {
"sboverride": true
}
},
"APIModules": {
"spamblacklist": "MediaWiki\\Extension\\SpamBlacklist\\ApiSpamBlacklist"
},
"MessagesDirs": {
"SpamBlackList": [
"i18n",
"i18n/api"
]
},
"AutoloadNamespaces": {
"MediaWiki\\Extension\\SpamBlacklist\\": "includes/"
},
"ResourceModules": {
"ext.spamBlacklist.visualEditor": {
"scripts": "ve-spamblacklist/ve.init.mw.SpamBlacklistSaveErrorHandler.js",
"targets": [
"desktop",
"mobile"
]
}
},
"attributes": {
"VisualEditor": {
"PluginModules": [
"ext.spamBlacklist.visualEditor"
]
}
},
"ResourceFileModulePaths": {
"localBasePath": "modules",
"remoteExtPath": "SpamBlacklist/modules"
},
"Hooks": {
"EditFilterMergedContent": "SpamBlacklistHookHandler",
"EditFilter": "SpamBlacklistHookHandler",
"PageSaveComplete": "SpamBlacklistHookHandler",
"UserCanSendEmail": "SpamBlacklistHookHandler",
"ParserOutputStashForEdit": "SpamBlacklistHookHandler",
"UploadVerifyUpload": "SpamBlacklistHookHandler"
},
"HookHandlers": {
"SpamBlacklistHookHandler": {
"class": "MediaWiki\\Extension\\SpamBlacklist\\Hooks",
"services": [
"PermissionManager",
"PageEditStash",
"ContentRenderer",
"ContentHandlerFactory"
]
}
},
"config": {
"BlacklistSettings": {
"value": {
"spam": {
"files": [
"https://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1"
]
}
},
"merge_strategy": "array_plus_2d"
},
"LogSpamBlacklistHits": {
"value": false
}
},
"AuthManagerAutoConfig": {
"preauth": {
"SpamBlacklistPreAuthenticationProvider": {
"class": "MediaWiki\\Extension\\SpamBlacklist\\SpamBlacklistPreAuthenticationProvider"
}
}
},
"manifest_version": 2
}