Wikipedia:Bots/Requests for approval/ScannerBot: Difference between revisions
Content deleted Content added
→Discussion: Reply |
Change the bot's task to be more specific. |
||
Line 12:
<!-- A SHORT bot function overview (max 2–3 lines); place the in-depth explanation in the "function details" section below-->
'''Function overview:''' Removes tracker tags in
<!-- Automatic: edits are not reviewed, except when issues arise -->
<!-- Supervised: all edits are reviewed soon after being made -->
<!-- Manual: all edits are reviewed before being made -->
'''Automatic, Supervised, or Manual:'''
<!-- Programming Language: The computer language that this bot will be written in. E.g. Python, Java, C, VB, AutoWikiBrowser. NOT English etc. -->
'''[[Programming language|Programming language(s)]]:'''
<!-- Source code available: e.g. a link to the source code, "Standard pywikipedia"/"AWB"/etc. Be sure the bot account's password is not given out! -->
'''[[Source code]] available:'''
<!-- Bot tasks require consensus in order to be approved. Please list any relevant discussions here to indicate consensus for the task. If such input is not necessary (for instance, a task that is duplicating or closely matching an existing bot) leave this blank-->
Line 29:
<!-- e.g. Continuous, daily, one time run, etc. -->
'''Edit period(s):''' One time run
<!-- Should be a reasonable guess as to how many distinct pages you'll be editing. For open-ended tasks, estimate pages per some reasonable time period.-->
'''Estimated number of pages affected:'''
<!-- Which namespace(s) will the bot edit? Mainspace/Articles, Categories, Files, ...-->
Line 38:
<!-- Whether the bot skips articles and other pages with the {{bots}} template. If "no", please provide a reason in the Function details or Discussion.-->
'''[[Template:bots|Exclusion compliant]]''' ''(Yes/No)''''':''' Yes
<!-- Bots with Administrative powers are rare and run by Users who are already Administrators -- >
Line 44:
<!-- List full and complete function details here. Please be precise and explicit, describing all changes the bot would make, including those "bundled" with bot frameworks like AWB or pywikipedia genfixes. Bots cannot be approved for open-ended tasks, so ensure the details cover all cases. Consider making several BRFAs for tasks with large independent changes. Vague or incomplete details can delay the BRFA process. Straight-forward details and examples will speed up the approval. If you need to modify these details after a discussion starts, it is recommended that you use del tags – <del></del> – to remove text and ins tags – <ins></ins> – for additions (this preserves coherence of the discussion), or show/hide boxes as you see fit. -->
'''Function details:''' Finds twitter.com URLs and remove parameters named as {{code|s}} or {{code|t}}.
===Discussion===
{{cot|title=Comments before change}}
{{comment}} if a bot account is needed, I will probably use {{u|ScannerBot}}. [[User:0xDeadbeef|<span style="font-family: Fira Code, Fira Mono, JetBrains Mono, Noto Mono, Courier New, monospace">0xDEADBEEF</span>]] <span style="font-family: serif">([[User talk:0xDeadbeef|T]] [[Special:Contributions/0xDeadbeef|C]])</span> 01:51, 5 May 2022 (UTC)
<!-- This is not a vote. It is a discussion -->
Line 57 ⟶ 58:
*::<code>\??(?:&?(?:fbclid|yclid|tracking_referrer|referrer(?:_access_token)?|gs_l|dclid|_ga|_gl|fb_(?:source|ref)|ref_)=[^&\s\]\|]*?)+(?=<|}|]|\s|\|)|(?<=\?)(?:&?(?:fbclid|yclid|tracking_referrer|referrer(?:_access_token)?|gs_l|dclid|_ga|_gl|fb_(?:source|ref)|ref_)=[^&\s\]\|]*)+&|(?<=&)(?:&?(?:fbclid|yclid|tracking_referrer|referrer(?:_access_token)?|gs_l|dclid|_ga|_gl|fb_(?:source|ref)|ref_)=[^&\s\]\|]*)+&</code> [[User:0xDeadbeef|<span style="font-family: Fira Code, Fira Mono, JetBrains Mono, Noto Mono, Courier New, monospace">0xDEADBEEF</span>]] <span style="font-family: serif">([[User talk:0xDeadbeef|T]] [[Special:Contributions/0xDeadbeef|C]])</span> 02:40, 8 May 2022 (UTC)
*:{{tq|Based on the supposed list of URLs where this tracking is located, the scanner isn't working right either}}: For the record: I didn't know that CirrusSearch allowed regex searching so I used pywikibot. Now I will probably use <code>insource:/.../</code> to generate list of articles to fix, with JWB. [[User:0xDeadbeef|<span style="font-family: Fira Code, Fira Mono, JetBrains Mono, Noto Mono, Courier New, monospace">0xDEADBEEF</span>]] <span style="font-family: serif">([[User talk:0xDeadbeef|T]] [[Special:Contributions/0xDeadbeef|C]])</span> 04:06, 8 May 2022 (UTC)
{{cob}}
*Note: The functionality and the scope of the bot was made more specific. See page history for more details. [[User:0xDeadbeef|<span style="font-family:Fira Mono,Courier New,monospace">0x<span style="text-transform:uppercase">Deadbeef</span></span>]] <span style="font-family: serif">([[User talk:0xDeadbeef|T]] [[Special:Contributions/0xDeadbeef|C]])</span> 06:28, 14 May 2022 (UTC)
|