Wikipedia:Bots/Requests for approval/ScannerBot: Difference between revisions
Content deleted Content added
No edit summary |
→Discussion: Reply |
||
Line 56:
*:I didn't have a method for determining that they are actually parameters of an URL. I tested with a python script that just matched on keywords within the source. I didn't know that there were previous tasks. I will take a look at those and perhaps amend the regex to match more parameters. [[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:30, 8 May 2022 (UTC)
*::<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)
|