[go: up one dir, main page]

Jump to content

User:Suffusion of Yellow/filterTest

From Wikipedia, the free encyclopedia
filterTest
DescriptionAdds a button to AbuseFilter pages to test the modified pattern
Author(s)Suffusion of Yellow
StatusBeta
First releasedMarch 21, 2021; 3 years ago (2021-03-21)
UpdatedMarch 21, 2021; 3 years ago (2021-03-21)
BrowsersTested with Firefox and Chromium
SkinsTested with MonoBook and Vector
SourceUser:Suffusion of Yellow/filterTest.js

filterTest adds a button to Special:AbuseFilter pages that opens Special:AbuseFilter/test with the modified pattern. This lets you test your changes without copying and pasting.

The built-in "Test this filter against recent edits" link opens the test interface with the version that's currently saved in the database, which is probably not what you want.

Installation

[edit]

Add the following line to your common.js:

mw.loader.load( '/w/index.php?title=User:Suffusion_of_Yellow/filterTest.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Suffusion of Yellow/filterTest.js]]