Extension:SpamDiffTool/sv

From Linux Web Expert

Manual för MediaWikitillägg
SpamDiffTool
Utgivningsstatus: stabil
File:SpamDiffTool Screenshot.png
Genomförande Användarverksamhet , Sidhandling
Beskrivning Allows privileged users to add entries to the spam blacklist right off of a diff page
Författare
MediaWiki 1.39+
Licenser Ingen angiven licens
Ladda ner
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Översätt tillägget SpamDiffTool om det finns tillgängligt på translatewiki.net
Ärenden Öppna ärenden · Rapportera en bugg

The SpamDiffTool extension allows users to add URLs to the SpamBlacklist extension easily without learning how to format entries for the blacklist and copy and paste, etc.

By inserting a link on each diff page, if an editor sees that a given page has been the victim of spam, they can click on "add to spam", which extracts all of the URLs the spammer has placed on the page, going back over their most recent edits on the article (similar to Rollback). Then, for each URL detected, the tool prompts the user the degree to which they want to blacklist the URL. The options are block:

  1. all links from the domain
  2. all links from the specific subdomain
  3. all links from the subdirectory and subdomain
  4. nothing - don't add this to the blacklist

The idea is to try to streamline the process of cleaning up spam, rolling back spam edits and blocking users. When the spam addition process is finished, the user is taken back to the diff page they were on to begin with. From there, they can rollback the edits as required.

This extension was tested with MediaWiki 1.41. You must have the SpamBlacklist extension already installed for this extension to do anything, because this is merely a more graphical, easier-to-use front-end for the functionality provided by SpamBlacklist.

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/SpamDiffTool/sv</tvar>|Download]] and move the extracted <tvar name=name>SpamDiffTool/sv</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamDiffTool%2Fsv
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'SpamDiffTool/sv' );
    
  • Configure as required
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

Konfigurering

To specify which article you use as a spam block list, change the $wgSpamBlacklistArticle variable in your wiki's LocalSettings.php . The default is to use the page called Project:Spam Blacklist.

Bugs and enhancements

Bugs or feature requests can be sent via Phabricator. There is a good chance the regular expressions are not 100% perfect.

Se även