Operator: Novem Linguae ( talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 20:49, Friday, April 15, 2022 ( UTC)
Automatic, Supervised, or Manual: automatic
Programming language(s): AutoWikiBrowser
Source code available:
Function overview: Remove the following text from pages: Please select the <code><span style="color:#0645AD;">New section</span></code> tab above to post your comments below.
Links to relevant discussions (where appropriate): Wikipedia:Village pump (miscellaneous)/Archive 70#Talk page "Please select the New section tab ... " message, Wikipedia:Bot requests#Talk page "Please select the New section tab ... " message removal
Edit period(s): One time run
Estimated number of pages affected: 7,000
Exclusion compliant (Yes/No): No
Already has a bot flag (Yes/No): Yes
Function details: Will use a search for insource:"tab above to post your comments below.", namespace=all to generate the list. Will use replace to replace the text with blank. Will probably search for the following within the page and replace with blank. This will include a newline at the beginning that also gets deleted, so as not to leave a blank line:
Please select the <code><span style="color:#0645AD;">New section</span></code> tab above to post your comments below.
<!-- please add new posts to the bottom -->
VPM thread is pretty new as of the time of this filing, but is leaning toward consensus to remove. By the time this BRFA gets reviewed, hopefully will be enough discussion there for a clear consensus.
Approved for trial (30 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete.
ProcrastinatingReader (
talk)
21:27, 15 April 2022 (UTC)
reply
"\nPlease select the <code><span style="color:#0645AD;">New section<\/span><\/code> tab above to post your comments below.
(?:\n==Untitled==)?\nPlease select the <code><span style="color:#0645AD;">New section<\/span><\/code> tab above to post your comments below.(?:\n<!-- please add new posts to the bottom -->)?
. As I immerse myself more in this project, I may add more. If I shouldn't do this let me know. These extra things must be touching the "Please select the ..." text, are often found adjacent to it, and I think it's an improvement to delete them.(?:\n+==+.*==+)?\nPlease select the <code><span style="color:#0645AD;">New section<\/span><\/code> tab above to post your comments below.(?:\n<!-- please add new posts to the bottom -->)?
(nb: untested)When the bot incorrectly deletes the phrase from here, I will just revert it if that's OK.I'd suggest limiting it to talk namespaces (ns % 2 == 1), which seems the bulk of the additions, and seeing where that leaves you.
Updated RegEx, for the record: (?:\n+==[^=]+==+)?\nPlease select the <code><span style="color:#0645AD;">New section<\/span><\/code> tab above to post your comments below.(?:\n<!-- please add new posts to the bottom -->)?
–
Novem Linguae (
talk)
00:05, 25 April 2022 (UTC)
reply