User:Suffusion of Yellow/filterTest

{{infobox user script

| name = filterTest

| desc = Adds a button to AbuseFilter pages to test the modified pattern

| author = Suffusion of Yellow

| updated = {{start date and age|2021|03|21}}

| status = Beta

| released = {{start date and age|2021|03|21}}

| version =

| source = User:Suffusion of Yellow/filterTest.js

| skins = Tested with MonoBook and Vector

| browsers = Tested with Firefox and Chromium

| logo =

| screenshot =

| screenshot-caption =

}}

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

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

{{User:Suffusion of Yellow/ScriptsNav}}