Skip to content

Commit

Permalink
abusefilter-diff-check.js: Sync with upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Amorymeltzer committed Oct 31, 2023
1 parent 22b0d55 commit 9701fe4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion userScripts/abusefilter-diff-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
} ).then( function ( data ) {
var stringDiffNewId = mw.config.get( "wgDiffNewId" );
var entries = ( data.query.abuselog || [] ).filter( function ( entry ) {
return entry.revid === stringDiffNewId ||
return ( "" + entry.revid ) === stringDiffNewId ||

// Sometimes an abuse filter entry can have a different timestamp than the triggering edit
Math.abs( parseTimestamp( entry.timestamp ) - timestamp ) < 10000; // 10 seconds
Expand Down
2 changes: 1 addition & 1 deletion userScripts/modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ if (cfg.wgCanonicalNamespace === 'Special') {
// Diffs
mw.loader.using(['mediawiki.util'], function() {
if (mw.util.getParamValue('diff') || mw.util.getParamValue('oldid')) {
// mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Enterprisey/abusefilter-diff-check.js&oldid=1047870553&action=raw&ctype=text/javascript'); // placeholder
// mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Enterprisey/abusefilter-diff-check.js&oldid=1182347393&action=raw&ctype=text/javascript'); // placeholder
// Buttons are moved to the end of p-cactions below
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Amorymeltzer/abusefilter-diff-check.js&action=raw&ctype=text/javascript'); // [[User:Enterprisey/abusefilter-diff-check.js]], [[User:Enterprisey/abusefilter-diff-check]], [[User:Amorymeltzer/abusefilter-diff-check.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Enterprisey/link-deleted-revs.js&oldid=954758921&action=raw&ctype=text/javascript'); // [[User:Enterprisey/link-deleted-revs.js]], [[User:Enterprisey/link-deleted-revs]]
Expand Down

0 comments on commit 9701fe4

Please sign in to comment.