User talk:Nardog/MoveHistory

Odd side effect
After I installed this script, I was no longer able to click wikilinks or external URLs in diff view. When I noticed that functionality had disappeared, I commented out this script in my .js and the functionality returned. Just FYI. Schazjmd  (talk)  17:24, 29 August 2021 (UTC)
 * I doubt your issue is related to this script. The script doesn't do anything on pages without  in the URL, and even on such a page it does nothing except add the link in the toolbox until it's clicked. By "diff view", do you mean the preview that appears beneath the diff on pages with , or something else? Do you have an example of a page where links stopped working? Nardog (talk) 03:34, 30 August 2021 (UTC)
 * By "diff view", I mean that when I look at the changes made to the wikitext (example), I can hover over a wikilink and get the preview popup, or I can click the wikilink, or I can click a URL in a ref. all within the wikitext view (not the preview area). It's really handy. A few days ago, I noticed that I'd lost that functionality on every diff. Yesterday, I tried to figure out what recent changes I'd made to my config because maybe it was on my end and not the platform. The most recent script I'd added to my .js was MoveHistory. I commented it out, refreshed the cache, and the clicking-within-wikitext-diff-view came back.I suppose it could be a coincidence. I just reenabled the script to test; I couldn't get popup previews of wikilinks in wikitext view but could still click links, so not a complete repro of the original problem. Disabled the script and wikilink popup preview was restored. Maybe it's just MoveHistory combined with everything else I have running that gave me a glitch...  Schazjmd   (talk)  14:12, 30 August 2021 (UTC)
 * I assume you're referring to wikEdDiff. There was an issue with the script reported just a few days ago, which has apparently been fixed (Village pump (technical)); I wonder if it's related. And by "popup previews", do you mean Page Previews or Navigation popups? If you mean the latter, I think I've figured out what the issue is. If Navigation popups is loaded after wikEdDiff, popups do show up for links in the diff, but not if the other way around because the wikEdDiff links don't exist yet when Navigation popups looks for links to show previews for. I don't know if you can manipulate the order in which gadgets are loaded in a neat way, but you may turn both off in Preferences and add  to your common.js to make sure they are loaded in the right order. Nardog (talk) 21:55, 30 August 2021 (UTC)
 * I just checked and I do have wikEdDiff enabled in preferences, as well as Navigation popups. So it really was just a coincidence that thewikEdDiff issue got fixed just when I disabled MoveHistory! I appreciate the tip for commons.js and will add that, thanks . Since it turns out this had nothing to do with this script (which I find very useful, btw), maybe we should collapse this so other editors don't think it will cause an issue for them? Schazjmd   (talk)  22:21, 30 August 2021 (UTC)
 * I'd rather not. People can figure out it's been resolved, and that is if they find this page in the first place. Nardog (talk) 00:13, 31 August 2021 (UTC)
 * Now that I think about it, you shouldn't turn off wikEdDiff in Preferences (but keep the code in common.js). That way your browser wouldn't have to grab the script for wikEdDiff each time. Nardog (talk) 00:44, 31 August 2021 (UTC)
 * Done, thanks! Schazjmd   (talk)  00:46, 31 August 2021 (UTC)

?withjs
will this work with a ?withjs link? If so perhaps we could add it in to MediaWiki:Histlegend, we already have "external tools" in there. — xaosflux  Talk 23:34, 31 December 2021 (UTC)
 * No, only scripts in the MediaWiki namespace can be loaded via  for security (if you're asking if it'll work if it's in the MediaWiki namespace, then yes). Making this a server-side tool hosted on Toolforge has been on my to-do list, but I'll have to learn lots of things before I can do that (feel free to ask someone who you think is up to the task in the meantime). Nardog (talk) 03:56, 1 January 2022 (UTC)
 * yes of course, would need to move or fork to that namespace. There are a few phab tickets open, and I'm going to put the concept on the wishlist survey this year to see if it can be fixed on the database side. —  xaosflux  Talk 04:06, 1 January 2022 (UTC)
 * +1 to this idea as this is an extremely helpful tool to track past moves. &#8212;CX Zoom[he/him] (let's talk • {C•X}) 11:45, 6 October 2022 (UTC)

Link to copy table
Hi @Nardog, sometimes in move discussions, we want to share the move history of a page with other participants because it provides more context. But, sometimes it may be very difficult/time consuming to type all the history. Can you make a "copy" button, which on clicking, copies the entire table in wikitable markup, that can be just pasted where we want? Thanks! &#8212;CX Zoom[he/him] (let's talk • {C•X}) 11:49, 6 October 2022 (UTC)

Update
Now you no longer need to go to the history page, and you can look up the history of any page. Red links are now more reliably rendered, and links to redirects and dabs now have the respective classes. I've also incorporated CX Zoom's suggestion above to provide an option to copy the results as wikitext. If you prefer the old experience, you can install User:Nardog/MoveHistoryClassic.js, but consider it unsupported. Nardog (talk) 07:01, 17 October 2022 (UTC)


 * Thank you very much! &#8212;CX Zoom[he/him] (let's talk • {C•X}) 07:05, 17 October 2022 (UTC)