Wikipedia:Bots/Requests for approval/ScannerBot: Difference between revisions
Content deleted Content added
No edit summary |
→Discussion: Reply |
||
Line 67:
* You'll want to detect primary URLs, or skip archive URLs, changing those will break them. Archive URLs can be 20+ types, it's probably easiest to detect if the twitter URL starts with "/" (example in [[Brandon Clarke]]). -- [[User:GreenC|<span style="color: #006A4E;">'''Green'''</span>]][[User talk:GreenC|<span style="color: #093;">'''C'''</span>]] 16:15, 14 May 2022 (UTC)
*:Yeah, I should probably match {{code|[^/]}} or <code><nowiki>[\s=>]</nowiki></code> for it to be primary. [[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> 02:07, 15 May 2022 (UTC)
*::Great, thanks. Also WebCite like <code><nowiki>https://www.webcitation.org/6d0sXMyOT?url=https://twitter.com</nowiki></code> .. couple others use <code><nowiki>?url=</nowiki></code> vs. "/" as the break point. -- [[User:GreenC|<span style="color: #006A4E;">'''Green'''</span>]][[User talk:GreenC|<span style="color: #093;">'''C'''</span>]] 03:12, 15 May 2022 (UTC)
|