User talk:Bradv/Scripts/Superlinks

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Patrol Log[edit]

As requested Bradv here's my request to see about incorporating the patrol log into the script. Thanks for your consideration of this. Best, Barkeep49 (talk) 01:04, 1 November 2018 (UTC)[reply]

Barkeep49, to clarify, are you looking for patrol logs for articles or for users? Bradv 00:23, 3 November 2018 (UTC)[reply]
@Bradv: Articles. I'm just trying to have a history of who has done what especially when it comes to reviewing articles. Best, Barkeep49 (talk) 01:10, 3 November 2018 (UTC)[reply]
Barkeep49, I could just show the results of the page log when "patrol" is checked in the current "log" tab. Would that work? Bradv 01:20, 3 November 2018 (UTC)[reply]
@Bradv: What I would be hoping for is that the results you get when going to Special:Log and checking "Patrol log"for a given article could be incorporated into the Logs Superlinks button.Best, Barkeep49 (talk) 20:43, 3 November 2018 (UTC)[reply]
 Done Bradv 02:17, 10 November 2018 (UTC)[reply]

Feb 2019[edit]

The new version of Superlinks includes the following changes:

  1. added filter log tab for both articles and users
  2. added popout button to open results in new tab
  3. limit results to 100 for improved response time
  4. rearranged tab order with better grouping
  5. fixed block log tab for admins
  6. fixed history to account for Mediawiki changes
  7. improved error handling

Feedback, ideas, and bug reports are welcome here. Bradv🍁 02:25, 4 February 2019 (UTC)[reply]

@Bradv: For some reason I can't see the NPP flow. I'm using vector on chrome, and as far as I can tell there aren't any errors in the console associated with this script. --DannyS712 (talk) 02:37, 4 February 2019 (UTC)[reply]
DannyS712, it only displays if you're in mainspace and the page curation toolbar is also visible. Does the curation toolbar work properly on your setup? Bradv🍁 02:38, 4 February 2019 (UTC)[reply]
@Bradv: Yeah, its working fine. Also, I looked through the script, and I can confirm that the curation toolbar is still

<div id="mwe-pt-toolbar" class="mwe-pt-toolbar-big ui-draggable" style="left: auto; right: 0px;"> <div id="mwe-pt-toolbar-active"> <div id="mwe-pt-toolbar-main"> .. --DannyS712 (talk) 02:41, 4 February 2019 (UTC)[reply]

DannyS712, I believe the superlinks script was loading before the page curation script, so it wasn't showing up. I've changed it to use a different method - please let me know if it works as expected now. Bradv🍁 02:56, 4 February 2019 (UTC)[reply]
@Bradv: Yep! Thank you so much. --DannyS712 (talk) 02:57, 4 February 2019 (UTC)[reply]

March 2019[edit]

The NPP flowchart is updated to include clickable links, per this request from Insertcleverphrasehere. Bradv🍁 05:20, 15 March 2019 (UTC)[reply]

Bradv, Awesome work mate! — Insertcleverphrasehere (or here)(click me!) 13:42, 15 March 2019 (UTC)[reply]

Data volume?[edit]

Could I have some indication of what this script adds to the data volume loaded for a given page? I.e., does it poll all linked pages even prior to actively clicking on the link? I'm asking because I'm doing much editing over a very slow connection, and that kind of thing might well add 5-10 s to my loading time (which, living in an Instant Gratification society, I strongly resent :p ) --Elmidae (talk · contribs) 00:11, 16 March 2019 (UTC)[reply]

Elmidae, the script doesn't load anything until you click on the links, and even then it loads less data than if you were to open that link in a new tab. My main reason for writing this script in the first place was to decrease the time I spend waiting for things to load, so I feel your pain. ;) Bradv🍁 00:34, 16 March 2019 (UTC)[reply]
Excellent, thanks! --Elmidae (talk · contribs) 01:28, 16 March 2019 (UTC)[reply]

Screenshots[edit]

Have any screenshots? Hard to picture from text alone czar 22:58, 16 March 2019 (UTC)[reply]

Doesn't work on Microsoft Edge[edit]

Hey Bradv! Since you have implemented this change, the superlinks no longer show up for me. I use the vector skin and my browser is Microsoft Edge. Thanks, MrClog (talk) 11:42, 9 July 2019 (UTC)[reply]

MrClog, I had only ever tested this script on Chrome, and am quite surprised it worked on Edge in the first place. The latest version uses a new regex feature that hasn't been implemented in other browsers yet, which is probably why this is crashing for you. Let me see if I can find a workaround. – bradv🍁 12:00, 9 July 2019 (UTC)[reply]
MrClog, turns out it didn't work on Firefox either. I've replaced the Chrome-only regex feature with a jQuery function, and it appears to now work in Edge and Firefox too. Let me know if you see any other problems. – bradv🍁 13:30, 9 July 2019 (UTC)[reply]
Bradv, everything works now, except for the NPP flowchart, which doesn't show up when I open it. --MrClog (talk) 14:41, 10 July 2019 (UTC)[reply]
MrClog, this should be fixed now. – bradv🍁 14:36, 16 July 2019 (UTC)[reply]
Bradv, it is, thanks! --MrClog (talk) 18:09, 16 July 2019 (UTC)[reply]

Recent changes[edit]

Hi @Bradv. Your recent changes have had a few side effects - an extra [ before the help icon when looking at a page's history, and highlighting some revisions oddly. Thanks, --DannyS712 (talk) 21:24, 9 July 2019 (UTC)[reply]

DannyS712, can you give me a step-by-step? I'm not entirely sure where you're seeing this issue. – bradv🍁 22:22, 9 July 2019 (UTC)[reply]

Missing link[edit]

Hey! I am only seeing the history, log and filter links now when I'm at an article (not the flowchart). I use Firefox now. --MrClog (talk) 22:51, 26 July 2019 (UTC)[reply]

MrClog, the NPP flowchart only shows up on new pages, when the page curation toolbar is also shown. Are you on a new page? – bradv🍁 22:57, 26 July 2019 (UTC)[reply]
Bradv, yes, two pages I reviewed as part of NPP, both did show up the toolbar but not the link. --MrClog (talk) 23:04, 26 July 2019 (UTC)[reply]
MrClog, it looks like the WMF changed the page curation toolbar. I've made a change - please test it for me and let me know if it works. – bradv🍁 23:12, 26 July 2019 (UTC)[reply]
Bradv, doesn't work :( --MrClog (talk) 23:16, 26 July 2019 (UTC)[reply]
MrClog, ok this might be more involved than I thought. Leave it with me. – bradv🍁 23:20, 26 July 2019 (UTC)[reply]
MrClog, this should be fixed now. – bradv🍁 02:34, 27 July 2019 (UTC)[reply]
Bradv, yep, thanks! --MrClog (talk) 10:11, 27 July 2019 (UTC)[reply]

Please see help desk query[edit]

@Bradv: Please see here and ping me when you respond there. Interstellarity (talk) 15:18, 8 September 2019 (UTC)[reply]

Fixed. – bradv🍁 17:06, 8 September 2019 (UTC)[reply]

CSS classes[edit]

Can you add some CSS classes to each link, so that users can hide select tabs by putting a "display: none" for them in their common.css? I, for instance, am not interested in seeing filter logs and ds alerts and restrictions. SD0001 (talk) 18:21, 16 September 2019 (UTC)[reply]

SD0001, this is a good idea. I'll include this in the next update. Thanks. – bradv🍁 18:31, 16 September 2019 (UTC)[reply]

Script causes other title based links to weirdly wrap[edit]

Eg., the script installer script stays on the current line, but forces the main title to go to a new line see [1]. The script is great by the way! — Yours, Berrely • TalkContribs 20:02, 20 November 2020 (UTC)[reply]

Relative paths issue[edit]

Hey BradV. Thanks for making this script. I'm trying to use it on my localhost wiki and the script loads, but when I click on something such as "rights", the content doesn't load and throws an error. I believe this is due to URL relative vs absolute path issues. My console is saying http://localhost/w/index.php?title=Special:UserRights&user=Novem_Linguae&safemode=1 404 (Not Found). This path should actually be http://localhost/Code/MediaWiki/mediawiki/index.php?title=Special:UserRights&user=Novem_Linguae&safemode=1. If you have time, maybe you could look into patching this? I think perhaps a search and replace of /w/index.php to index.php (no slash in front) or similar might do the trick. Thank you. –Novem Linguae (talk) 00:25, 1 December 2021 (UTC)[reply]

Bradv. Fix ping. –Novem Linguae (talk) 00:26, 1 December 2021 (UTC)[reply]

Vector 2022 skin[edit]

Hello friend. Any plans for Vector2022 skin support? Looks like the movement is moving towards making this the default skin. Thanks. –Novem Linguae (talk) 23:01, 21 July 2022 (UTC)[reply]

Feature request: display on non-existent pages[edit]

Currently if one clicks on a redlink signature, superlinks does not display on that page, rather the visual editor loads and lets you create the page. Would be great if we could get superlinks to display in this case too. Thanks. –Novem Linguae (talk) 08:45, 16 August 2022 (UTC)[reply]

Other skins[edit]

You said ask, so I use MonoBook.... MB 23:30, 8 September 2022 (UTC)[reply]

not functional on vector 2022[edit]

the "superlinks" do not appear in the skin vector 2022. pinging @Bradv. lettherebedarklight, 晚安, おやすみ, ping me when replying 13:46, 18 September 2022 (UTC)[reply]

Same -- any chance this will start working on 2022? It's the one thing I really miss. Valereee (talk) 16:17, 19 February 2023 (UTC)[reply]
Hi Bradv, thank you for your work. Please visit this section of our FAQ for more information.--Patafisik (WMF) (talk) 08:37, 20 February 2023 (UTC)[reply]
bradv hasn't edited since last July so I guess not, unfortunately, unless somebody else figures things out Aaron Liu (talk) 20:06, 15 April 2023 (UTC)[reply]

Feature request: display range blocks in the block window for individual IPs[edit]

Maybe just query all the potential range blocks, then append the log results to the bottom. If you get adventurous, you can try to sort them chronologically. –Novem Linguae (talk) 10:21, 23 June 2023 (UTC)[reply]

Bug report: DS alerts for certain users not loading[edit]

Steps to reproduce: 1) Install superlinks. 2) Visit User talk:Hyperbolick. 3) Click "ds alerts". 4) Open DevTools Console. 5) Note the 6 "Failed to load resource: net::ERR_HTTP2_PROTOCOL_ERROR" errors. 6) Click on "/w/api.php?action=..." next to one of the errors. –Novem Linguae (talk) 04:31, 9 August 2023 (UTC)[reply]