User:Daniel Quinlan/Scripts/FilterBlame
Appearance
Author(s) | Daniel Quinlan |
---|---|
Status | Beta |
Updated | 19 April 2025 |
Source | FilterBlame.js |
The FilterBlame script makes it easy to find the version of an AbuseFilter where specific text was added or removed.
Features
[edit]- Both substring and regular expression searches are supported, as well as case-insensitive matching.
- Filter history can be searched using either binary search or linear search.
- Provides the ability to search for either additions or removals.
Usage
[edit]Click the Blame link in the Tools menu from any filter. In the dialog that appears:
- Enter the text or regex you want to search.
- Choose the match type, search method, and whether you're looking for an addition or removal.
- Click Search.
If a matching change is found, a link to the relevant version and its diff is displayed.
Installation
[edit]To install the FilterBlame.js script, follow these steps:
- In your preferences, go to Preferences → Gadgets. At the bottom of the "Advanced" section, click the "Install scripts without having to manually edit JavaScript files (documentation)" checkbox, then click the "Save" button.
- Return to this page and click the blue "Install" button.
Alternatively, you can manually install it by adding the following code to your common.js file:
{{subst:iusc|User:Daniel Quinlan/Scripts/FilterBlame.js}}
Configuration
[edit]None.
Notes
[edit]Binary search is generally faster, but some searches may require more fetches than expected (i.e., removal searches where both the current and earliest versions lack the text, and addition searches where both contain the text).