User talk:Evad37/WikidataWatchlistLabels.js

Not working?
Originally posted at User talk:Evad37/ToDoLister.js


 * I added Moon to my watchlist, and it worked for me. But watchlists can be tricky to make scripts for because there's so many different preferences. Did you try bypassing your cache? If that doesn't fix it, what setting do you have in Special:Preferences? And do you get any errors in your browser console (how to open) ? - Evad37 &#91;talk] 01:21, 5 May 2018 (UTC)
 * Yes, I bypassed cache. I have the following checked in my preferences:
 * Expand watchlist to show all changes, not just the most recent
 * Reload the watchlist automatically whenever a filter is changed (JavaScript required)
 * Show Wikidata edits in your watchlist
 * Add pages... options
 * I don't see any errors only warnings. Below is a copy of console. Alexei Kopylov (talk) 05:21, 5 May 2018 (UTC)
 * Well, I really don't know what's going wrong for you. Maybe another script or gadget is interfering with the watchlist before this script loads? - Evad37 &#91;talk] 13:12, 6 May 2018 (UTC)
 * I think the problem is with the option: "Group changes by page in recent changes and watchlist" on Special:Preferences. When I unchecked this, your script works fine, and when I checked this even on clean account without any other scripts, it does not work. Alexei Kopylov (talk) 19:49, 6 May 2018 (UTC)
 * Yeah, that was the problem (that preference gives the watchlist a different html structure). now. - Evad37 &#91;talk] 05:22, 7 May 2018 (UTC)
 * Thank you. Your fix works if there is only one change during the day. But if there are more than one change (and this changes are grouped) then it does not do anything. Example:

m D 03:42 	Gottfried Wilhelm Leibniz‎‎ (3 changes | history). . (0)‎ . . [24.205.86.178‎; Alexei Kopylov‎; Ghuron‎] m D 		03:42 Q9047 (diff | hist). . 24.205.86.178 (talk) (‎Created claim: Property:P800: Q2166858) m D 		03:38 Q9047 (diff | hist). . Alexei Kopylov (talk | contribs) (‎Created claim: Property:P800: Q3030194) m D 		01:09 Q9047 (diff | hist). . Ghuron (talk | contribs) (‎Changed claim: Property:P106: Q333634, because included in the Q7035995)
 * Alexei Kopylov (talk) 04:08, 16 July 2018 (UTC)
 * Sorry for pinging you, but is it possible to fix this bug? Thanks. Alexei Kopylov (talk) 19:08, 28 September 2018 (UTC)

, sorry for the long delay, and thanks for the ping reminder. - Evad37 &#91;talk] 06:04, 29 September 2018 (UTC)
 * Thank you, very much. Alexei Kopylov (talk) 15:58, 29 September 2018 (UTC)

Needs updates for selectors
hey, thank you for developing such a useful script! It seems like it stopped working (both in comments and after page titles) someday with watchlist in multi-column layout (new watchlist or enhanced RC, as I believe it’s called) due to update in selectors. The code still fetches Wikidata information, but doesn’t display the results. Can you update the script inserting it with new selectors? New code for reference (beautified):

Also, just want to add an idea: can it be done so that if page title matches title on Wikidata, the link won’t be changed in some cases? The script is most useful when Wikidata item doesn’t match page title, so this would be a nice-to-have. stjn[ru] 18:50, 27 June 2019 (UTC)
 * ✅. Fixed the selectors, and labels will now be hidden if they match the local page title. - Evad37 &#91;talk] 01:15, 28 June 2019 (UTC)