Skip to content

he7d3r/mw-gadget-ScoredRevisions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 

Repository files navigation

Installation

  1. Go to one of the js subpages of your user page. You can choose a page such as these:
  1. Copy the following to the page you have chosen:
// [[File:User:He7d3r/Tools/ScoredRevisions.js]] (workaround for [[phab:T35355]])
mw.loader.load( '//meta.wikimedia.org/w/index.php?title=User:He7d3r/Tools/ScoredRevisions.js&action=raw&ctype=text/javascript' );
  1. Clear the cache of your browser.

This will import the minified copy of the script I maintain on Meta-wiki.

Customization

For each model available on ORES, this script adds one of 4 classes. E.g.:

  • sr-damaging-high, sr-damaging-medium, sr-damaging-low or sr-damaging-none
  • sr-reverted-high, sr-reverted-medium, sr-reverted-low or sr-reverted-none

Which class is added depends on the predicted probability for the corresponding model. Users can customize the default style from ScoredRevisions.css (which just changes the background color for now) by changing their personal CSS. You can copy ScoredRevisions.css as a start point, and play with the styles as you like.

Here is an example which adds an icon to the left of the edits which have low probability of being reverted:

li.sr-damaging-low,
ul#pagehistory li.sr-damaging-low,
tr.sr-damaging-low {
    background: #FFE099;
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/9/90/Icons-mini-icon_alert.gif");
    background-repeat: no-repeat;
    padding-left: 20px;
    background-position: left center;
}

About

Filter the recent changes and watchlist by the score of revisions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published