Wikipedia talk:User scripts

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Wikipedia talk:US)

CSS items[edit]

@Nardog I mean, that's what User:BrandonXLF/GreenRedirects is. I don't see why it'd be a worse idea than JS, which can actually compromise one's browser. Aaron Liu (talk) 02:54, 21 February 2024 (UTC)[reply]

It's not. common.css and global.css are loaded automatically for the owners and they can put or remove whatever they want there at any time. If you intend some styles to be imported by other users, you should host it as a separate page. Nardog (talk) 03:01, 21 February 2024 (UTC)[reply]
Also, importing an external CSS via JS causes FOUCs. Using @import doesn't, but can delay first paint. Nardog (talk) 06:12, 21 February 2024 (UTC)[reply]
Speaking about that... my @import doesn't seem to be working right now :p Aaron Liu (talk) 16:07, 21 February 2024 (UTC) Fixed that now! Aaron Liu (talk) 03:05, 22 February 2024 (UTC)[reply]

Highlight username[edit]

Hey, do we have a script which can highlight your own username in a page? I remember seeing something similar a while ago but can't find that now. Can sormeone link it please? Thanks. — The Herald (Benison) (talk) 05:35, 25 February 2024 (UTC)[reply]

@The Herald: Not sure if there's a script, but a userscript wouldn't be super necessary; you could just put this in Special:MyPage/common.css:
a[href$="User:The_Herald"] { background-color:#FFFF00; }
Change the username in quotes to change which page gets highlighted, and change the "FFFF00" to any other hex color code to change the color of the highlight.
EDIT:After rereading, I think I misunderstood your ask; the above will highlight any links to your user page (as in your signature or any pings to you), but not any mere use of your username. That *would* require a script. Writ Keeper  13:45, 25 February 2024 (UTC)[reply]
I think I'll give it a ago. I just want my name to get highlighted, especially in AfD discussions, just to avoid double !votes or avoid WP:INVOLVED when I'm closing discussions. Hope it will work for that. Thanks. The Herald (Benison) (talk) 14:06, 25 February 2024 (UTC)[reply]
Update: It works just how I wanted. Thanks a lot. The Herald (Benison) (talk) 14:09, 25 February 2024 (UTC)[reply]

Navigation arrows in WP:USL[edit]

Which tool was used for installing the navigation arrows colored light blue in the top bottom right corner with url params "#top" and "#skip-to-bottom-anchor" [1]?Qwerty284651 (talk) 05:50, 29 May 2024 (UTC)[reply]

@Qwerty284651: It's {{Skip to top and bottom}}. --Redrose64 🌹 (talk) 16:39, 29 May 2024 (UTC)[reply]
@Redrose64, thanks. Qwerty284651 (talk) 16:48, 29 May 2024 (UTC)[reply]

Should script-installer add userscript pages to the watchlist?[edit]

 You are invited to join the discussion at User talk:Enterprisey/script-installer § Should script-installer add userscript pages to the watchlist?. —⁠andrybak (talk) 13:35, 4 June 2024 (UTC)[reply]