User:Daniel Quinlan/Scripts/FilterBlame
{{Infobox user script
| name = FilterBlame
| author = {{u|Daniel Quinlan}}
| updated = {{#time:j F Y|{{REVISIONTIMESTAMP|User:Daniel Quinlan/Scripts/FilterBlame.js}}}}
| status = Beta
| source = FilterBlame.js
}}
The FilterBlame script makes it easy to find the version of an AbuseFilter where specific text was added or removed.
Features
- 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
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
To install the FilterBlame.js script, follow these steps: {{Ordered list|In your preferences, go to {{myprefs|Gadgets}}. At the bottom of the "Advanced" section, click the "{{delink|{{int:Gadget-script-installer}}}}" 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
None.
Notes
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).