Jump to content

Wikipedia:RedWarn/Documentation/RedWarn Tools

From Wikipedia, the free encyclopedia

RedWarn Tools are a set of statistics tools powered by Wikimedia Toolforge. You do not need permission to use it, and feel free to add it to your script or tool. You do not need to have the RedWarn userscript enabled to use these tools. They are not hosted on the English Wikipedia and are completely standalone pages.

Reverts per minute (RPM) analysis

[edit]

GUI

[edit]
Screenshot of RPM Analysis Tool

RedWarn Tools RPM Analysis can provide graphed data for the reverts per minute data for the past 24 hours. This data is automatically recorded every 10 minutes.

Links:

  1. https://redwarn.toolforge.org/tools/rpm - All data for the past 24 hours
  2. https://redwarn.toolforge.org/tools/rpm/#Last90Mins - Data for the last 90 mins
  3. https://redwarn.toolforge.org/tools/rpm/#Hourly - 24 Hour Average, and the average RPM for the past 60 mins.

API

[edit]

This API provides RPM values for both reverts via MediaWiki's undo feature and the rollback feature on the English Wikipedia over the past 24 hours, measured automatically every 10 minutes. A RPM value can be used as a rough approximation for the number of vandalism reverts, and consequently, the amount of vandalism at any given time. It is calculated by getting the last 100 reverts (50 from undo, and 50 from rollback) then working out how many have occurred on average in a minute.

GET: https://redwarn.toolforge.org/tools/rpmInfo.php
Example result:

[{
  "timestamp":"1593389425",
  "undoRPM":"4.5",
  "rollbackRPM":"0.63",
  "totalRPM":"5.13"
}, ...]

CDN

[edit]

RedWarn Tools mirrors a number of common open source scripts and resources in a Wikimedia privacy policy friendly way. A list of scripts is below.

RedWarn CDN
Source CDN Mirror
https://cdnjs.cloudflare.com/ajax/libs/jquery-contextmenu/2.7.1/jquery.contextMenu.min.js https://redwarn.toolforge.org/cdn/js/jquery-contextmenu.js
https://cdnjs.cloudflare.com/ajax/libs/jquery-contextmenu/2.7.1/jquery.ui.position.js https://redwarn.toolforge.org/cdn/js/jquery-ui-position.js
https://cdnjs.cloudflare.com/ajax/libs/dialog-polyfill/0.4.2/dialog-polyfill.min.js https://redwarn.toolforge.org/cdn/js/dialogPolyfill.js
https://code.getmdl.io/1.3.0/material.min.js https://redwarn.toolforge.org/cdn/js/mdl.js
https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js https://redwarn.toolforge.org/cdn/js/jQuery.js
https://cdn.jsdelivr.net/npm/sortablejs@1.10.2/Sortable.min.js https://redwarn.toolforge.org/cdn/js/sortable.js
https://cdn.jsdelivr.net/npm/jquery-sortablejs@latest/jquery-sortable.js https://redwarn.toolforge.org/cdn/js/jquery-sortable.js
https://cdn.jsdelivr.net/npm/@simonwep/pickr/dist/pickr.min.js https://redwarn.toolforge.org/cdn/js/pickr.js
https://cdnjs.cloudflare.com/ajax/libs/jquery-contextmenu/2.7.1/jquery.contextMenu.min.css https://redwarn.toolforge.org/cdn/css/jqueryContextMenu.css
https://fonts.googleapis.com/icon?family=Material+Icons https://redwarn.toolforge.org/cdn/css/materialicons.css
https://code.getmdl.io/1.3.0/material.x.min.css https://redwarn.toolforge.org/cdn/css/material.x.min.css (RW CDN only hosts styles used in RedWarn itself)
https://cdn.jsdelivr.net/npm/@simonwep/pickr/dist/themes/classic.min.css https://redwarn.toolforge.org/cdn/css/pickr.css
https://raw.githubusercontent.com/ed6767/redwarn/master/redwarn%20notifs%20new%20edit.mp3 https://redwarn.toolforge.org/cdn/audio/newEdit.mp3
https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.bundle.min.js https://redwarn.toolforge.org/cdn/js/Chart.js
https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.css https://redwarn.toolforge.org/cdn/css/ChartJS.css