User talk:Yair rand/interwikiwatchlist2.js

Note. For more info see Wikipedia:Integrated, interwiki, global watchlists.
See a variation of this tool here: User:Yair rand/interwikiwatchlist.js
Note. To set this up first turn on "Group changes by page in recent changes and watchlist" in
Special:Preferences#mw-prefsection-rc
Then add
importScript ("User:Yair rand/interwikiwatchlist2.js");
to Special:MyPage/common.js. Then follow the instructions for purging your browser cache. You should now see "Interwiki watchlists" at Special:Watchlist. Click on "new watchlist". Choose a project from the dropdown menu. Enter a language code ("en" for English). A language code is not needed for the Commons, Meta-Wiki, or MediaWiki. Then click the Special:Preferences link in the sentence below the project dropdown menu. That link will go to the Special:Preferences page of the project you selected in the previous step. Go to the watchlist tab, and copy the watchlist token. Then paste the token in the form on Special:Watchlist to the left of the "Import watchlist" button. Then click that "Import watchlist" button to the right of the form. The entries in the new watchlist will then be integrated with the entries in the English Wikipedia watchlist. Compare the indentation of the entries to distinguish the added watchlists. You can integrate multiple watchlists by repeating the above steps.

2 versions edit

What is the difference between this and User:Yair rand/interwikiwatchlist.js, and why was this version created? --Timeshifter (talk) 06:01, 26 November 2011 (UTC)Reply

The other version places the imported watchlists on top of the regular watchlist. This version merges watchlists into one list, all changes in order. The length of the watchlists and whether to display the user's own changes is based on user preferences. This version only works with "enhanced recent changes", though. --Yair rand (talk) 22:34, 27 November 2011 (UTC)Reply
I must not be doing something right. I added the JS to here: User:Timeshifter/common.js. I turned on "enhanced recent changes" in my preferences in Wikipedia and the Commons. I don't see any Commons stuff in my Wikipedia watchlist. --Timeshifter (talk) 10:08, 28 November 2011 (UTC)Reply
Hm, it works for me. What browser are you using? Is Commons listed next to "Interwiki watchlists: "? --Yair rand (talk) 22:01, 28 November 2011 (UTC)Reply
I am using Firefox 8.0. I don't see "Interwiki watchlists" anywhere on my watchlist page. I also searched for it with "find" from the edit menu. What browser are you using? I have Internet Explorer and Chrome installed too. I just looked in them, and did not see any integrated watchlist. Nor did I see "Interwiki watchlists".
Are tokens needed? Does anything need to be done besides adding the JS, purging, and activating "enhanced recent changes"? --Timeshifter (talk) 09:04, 30 November 2011 (UTC)Reply
I just tried importing your js file and I got a SyntaxError coming from line 7 ('​importScript('User:Gadget850/wiki-toolbox.js');​'), breaking the whole page. It looks like there are strange invisible characters ("​"s) and the beginning and end of the line, which is probably what's causing the problem. --Yair rand (talk) 21:16, 30 November 2011 (UTC)Reply
Thanks. I uninstalled that JS, purged, and left a note here: User talk:Gadget850/wiki-toolbox.js
I now see "Interwiki watchlists" on the Wikipedia watchlist. I added my Commons watchlist token, but I do not see anything from my Commons watchlist on the Wikipedia watchlist. I tried purging again, and reloading the watchlist. --Timeshifter (talk) 10:18, 1 December 2011 (UTC)Reply

Not working for me edit

I uninstalled, reinstalled, purged, and tried again. It is not working for me.

It is now the only thing added to User:Timeshifter/common.js. See history.

During integration of the Commons watchlist with the English Wikipedia watchlist I saw this:

"Watchlist token (can be found be found at Special:Preferences in the Watchlist section)."

The link took me here:

I copied the watchlist token as instructed.

My English Wikipedia watchlist page now has this:

"Interwiki watchlists: http://commons.wikimedia.org/ (remove), (+new watchlist)"

But I see nothing from my Commons watchlist there. The Commons watchlist has items for each of the last 3 days. None of the items are showing up on the English Wikipedia watchlist. --Timeshifter (talk) 14:55, 14 January 2012 (UTC)Reply

I'm so sorry, I hadn't been really paying attention to this script. I just tested it on my computer, and it looks like the script just doesn't work in Firefox. I don't use the script myself, so I haven't even been noticing the numerous bugs that are all over the script. It seems to work in Chrome, although it does seem to occasionally place items under the wrong date. Sorry again for leaving this sitting here broken all this time without having anything say so on the page. I'm going to try to clean the script up sometime soon. --Yair rand (talk) 05:52, 16 January 2012 (UTC)Reply
I fixed some stuff, including the part that was causing Firefox to always break, and the bug that was putting items under the wrong dates (I think). This probably still has loads of bugs, though. --Yair rand (talk) 06:40, 16 January 2012 (UTC)Reply
It is working great now on Firefox! This is important work you are doing. It is a starting point for helping MediaWiki installations of all kinds. I wish they would create a global watchlist at Wikia and other wiki farms. Also, this could help the other Wikimedia projects get more editors involved. --Timeshifter (talk) 12:29, 16 January 2012 (UTC)Reply

Distinguish Commons entries from Wikipedia entries edit

One request I have is some way to distinguish Commons entries from Wikipedia entries in the integrated watchlist. I do not pay much attention to category edits on Wikipedia. But I pay closer attention to category edits on the Commons that I have watchlisted. But I can not distinguish Commons category edits from Wikipedia category edits.

Because of that problem I am now using your original tool (User:Yair rand/interwikiwatchlist.js). It would be nice if your original tool were changed to show more days for the Commons watchlist (or other watchlists) added above the Wikipedia watchlist. 3 days would be perfect for me.

Your original tool currently only shows part of one day of the added Commons watchlist. So if one is only a few hours into today one only sees Commons edits during those few hours. It does not show the last 24 hours. --Timeshifter (talk) 05:19, 27 January 2012 (UTC)Reply

This tool is becoming more and more useful. I see that now the added watchlist entries are not as indented as the English Wikipedia entries. But if there are 2 or more watchlists added, then one can not distinguish the entries for the added watchlists from each other. Since they are indented the same. --Timeshifter (talk) 04:23, 29 May 2013 (UTC)Reply

Doesn't seem to be working any more edit

I just installed the script, tried it on three different browsers and added other wikis with correct codes. Despite "enhanced" watchlist being checked, no new items are added on IE, Firefox or Chrome (added wikis separately on each browser, and there were some recent changes in some of them). Using your old tool atm, but that doesn't even display the date. I appreciate you do not use this tool yourself and so are not actively developing it, but it is a very useful tool and it would be great if it could be got working again. — R160K (talk) 17:05, 29 April 2014 (UTC)Reply

Fixed. --Yair rand (talk) 01:00, 30 April 2014 (UTC)Reply