Wikipedia talk:AutoWikiBrowser/Typos: Difference between revisions
Content deleted Content added
m Archiving 2 discussion(s) to Wikipedia talk:AutoWikiBrowser/Typos/Archive 4) (bot |
→Testing with JWB: new section |
||
Line 61:
:@[[User:MB|MB]] I just added a rule for you to fix both "less-populated" and "more-populated". [[User:GoingBatty|GoingBatty]] ([[User talk:GoingBatty|talk]]) 04:34, 19 April 2022 (UTC)
== Testing with JWB ==
Perhaps everyone else knew this already, and there may well be an easier way to do it, but I've finally found a way to test new additions without riskily adding them to the public list or going through the tedious and error-prone process of copying and pasting every regexp into the UI. To add a custom set of typos in a format matching AWB/T to the list, start [[WP:JWB|JWB]], invoke the browser's JavaScript console and paste
<syntaxhighlight lang="javascript" start="1">
RETF.list = []; // Empty the list - only needed for iterative testing
(new mw.Api()).get({
action: 'query',
prop: 'revisions',
titles: 'User:Example/typos', // Substitute the title of your typo list page here
rvprop: 'content',
rvlimit: '1',
indexpageids: true,
format: 'json',
}).done(RETF.buildList);
</syntaxhighlight>
Omit the first line to retain the standard list, but it's useful to get rid of a broken custom list before retesting after a fix. The titles: line can be any Wikipedia page, e.g. User:You/sandbox. [[User:Certes|Certes]] ([[User talk:Certes|talk]]) 21:03, 20 April 2022 (UTC)
|