User talk:DannyS712/Global watchlist

Neat script! Some ideas...
Any plans to add more details to the listed sites? I'm not asking to replicate the full watchlist functionality, but it might be cool to have some summary data for each entry, such as the number of edits since last change (e.g. "25 edits by 7 editors"). That text could also link to the diff of those changes between last seen and current revisions. Also, are the entries in each list sorted by most recent? Perhaps the last edit timestamp could also be added then? If that makes the list too cluttered, it might make more sense as a table instead (which could then be sortable). One final idea: a table of contents to jump to a specific site (for those who might use a large site list).

Just a few thoughts I had. Thanks for making this, btw. — AfroThundr (u · t · c) 01:11, 1 July 2019 (UTC)
 * No problem. It’s still a work in progress - I’ll see what I can do. DannyS712 (talk) 07:09, 1 July 2019 (UTC)

Removed settings
Hi Danny, I tried to add more wikis by settings button, but instead of adding it removed all of them. &#8208;&#8208;1997kB (talk) 13:07, 13 July 2019 (UTC)
 * um, that shouldn't have happened. Can you walk me through what specifically you did? --DannyS712 (talk) 13:08, 13 July 2019 (UTC)
 * , Yes,
 * Open Global watchlist from that button in watchlist (was on meta.wikimedia watchlist).
 * Click settings.
 * Then there's some fields to add new wikis.
 * There was already some (which I added earlier by editing global.js) and I added 2 more and saved.
 * That's all. &#8208;&#8208;1997kB (talk) 13:10, 13 July 2019 (UTC)
 * Okay, try it now. It (likely) won't work, but it also won't redirect you back to your watchlist. Then you can open the development console (in chrome its ) and paste the contents here --DannyS712 (talk) 13:16, 13 July 2019 (UTC)
 * Hold on! &#8208;&#8208;1997kB (talk) 13:21, 13 July 2019 (UTC)
 * Do you need errors only, because there's alot of content? &#8208;&#8208;1997kB (talk) 13:26, 13 July 2019 (UTC)
 * ideally everything, I don't know what could be causing it --DannyS712 (talk) 13:26, 13 July 2019 (UTC)
 * , there you go. &#8208;&#8208;1997kB (talk) 13:35, 13 July 2019 (UTC)
 * There is a lot of stuff, you're right, but a lot of it isn't related to this script, and it makes it hard to parse. Can you temporarily comment out the other scripts in your global.js, or remove them entirely, just to see what happens? (That might even fix it) --DannyS712 (talk) 13:38, 13 July 2019 (UTC)
 * , hope this helps!. &#8208;&#8208;1997kB (talk) 13:42, 13 July 2019 (UTC)
 * try now --DannyS712 (talk) 13:47, 13 July 2019 (UTC)
 * , working. Thanks! &#8208;&#8208;1997kB (talk) 13:50, 13 July 2019 (UTC)
 * glad I could help. Do you want me to remove you from the debug list so that it redirects you back to the watchlist again? --DannyS712 (talk) 13:55, 13 July 2019 (UTC)
 * , Yeah remove please. &#8208;&#8208;1997kB (talk) 13:58, 13 July 2019 (UTC)
 * ✅ --DannyS712 (talk) 14:34, 13 July 2019 (UTC)
 * Hello, I am wondering if you could add a space between two entries, as it creates a long chain without space and starts interfering with viewport of page.
 * I mean  instead of  . &#8208;&#8208;1997kB (talk) 02:50, 21 July 2019 (UTC)
 * if you put that in manually it'll still work, but will be overwritten when the script saves. I'll look into adding that though --DannyS712 (talk) 03:16, 21 July 2019 (UTC)
 * just noting that this was done --DannyS712 (talk) 02:09, 15 August 2019 (UTC)

Rapid Grant
Have you considered asking for a Rapid Grant to further develop this script? Sophivorus (talk) 13:08, 17 July 2019 (UTC)
 * umm, no, I hadn't considered that... --DannyS712 (talk) 13:13, 17 July 2019 (UTC)
 * but, under the grant rules, "Compensation for people’s time (for example: project management or coordination)" is not eligible for rapid grant funding --DannyS712 (talk) 13:18, 17 July 2019 (UTC)
 * That's not so, see meta:Grants:Project/Rapid/Enhance the ProveIt gadget, part 2 Sophivorus (talk) 13:20, 17 July 2019 (UTC)
 * I'll take a look, but I'd prefer not to need to identify myself, and don't have a way to prove that I actually know what I am doing - I have no formal credentials DannyS712 (talk) 13:26, 17 July 2019 (UTC)

Need simple step-by-step instructions
I looked at User:DannyS712/Global watchlist.

I have no idea what to do. Please give me simple instructions to set up a global watchlist based at English Wikipedia.

In these instructions please only include English Wikipedia, Meta, and MediaWiki.org.

Once I see how that works, I can add or remove watchlists.

Step by step instructions. Skip nothing please. Assume total ignorance on my part. -- Timeshifter (talk) 05:49, 27 August 2019 (UTC)
 * Because its a 'global' watchlist, it is designed to be based on meta. At m:User:Timeshifter/global.js, add the line  and navigate to Special:BlankPage/GlobalWatchlist (on any wiki). Once you do that, there is a settings button visible, and the UI should be pretty intuitive. Let me know if that works --DannyS712 (talk) 06:19, 27 August 2019 (UTC)


 * Thanks. I set it up at meta:User:Timeshifter/global.js and I see the results at meta:Special:BlankPage/GlobalWatchlist.


 * I can not see how to remove watchlists in settings:
 * meta:Special:BlankPage/GlobalWatchlistConfig


 * And how exactly do I add them? Am I to use the instructions at User:DannyS712/Global watchlist? That looks difficult for most people.


 * As for the resulting watchlists, they are not much use to me in their current format. I was hoping the watchlists would be exactly the same as in their home location. Using the preferences I have chosen in the standard preferences.


 * Is simple transclusion of existing watchlists possible yet? With all my standard preferences? Something like:


 * Then they could be stacked (as above) on any of my user subpages.
 * -- Timeshifter (talk) 00:57, 28 August 2019 (UTC)
 * no transclusion is not possible, and while I plan to add log entries to the watchlist, it will never be the same as just copying the sites individually. At https://meta.wikimedia.org/wiki/Special:BlankPage/GlobalWatchlistConfig, next to each site, there should be a 'remove' button - remove the sites you don't want, add the sites you do want (if you need more rows, hit 'add') and then hit save. I'll try to upload some screenshots to help. --DannyS712 (talk) 01:05, 28 August 2019 (UTC)
 * See mw:User:DannyS712/Global watchlist --DannyS712 (talk) 01:26, 28 August 2019 (UTC)


 * Thanks for the screenshots. My "User defined site list" is blank. In Firefox and Chrome. I disabled Adblock Plus on that page in Firefox. I am not seeing anything to remove in that list. It is just a single blank line followed by the Add and Save buttons. The Remove button is to the right of the single blank line. -- Timeshifter (talk) 02:14, 28 August 2019 (UTC)
 * that is because you haven't created a custom site list yet - you are only using the defaults, so those aren't pre filled --DannyS712 (talk) 02:43, 28 August 2019 (UTC)
 * I tried adding simple.wikipedia since it was one item showing on the screenshots at mw:User:DannyS712/Global watchlist. But no luck. I tried clicking on add, save, reset. In multiple orders. Nothing showing up in the list, nor on my watchlist page: Special:BlankPage/GlobalWatchlist. -- Timeshifter (talk) 04:33, 28 August 2019 (UTC)
 * Try replacing the `_` with ` ` (underscore -> space) in your import in your global.js DannyS712 (talk) 04:36, 28 August 2019 (UTC)
 * I did that at meta:User:Timeshifter/global.js. Then I added and saved simple.wikipedia at meta:Special:BlankPage/GlobalWatchlistConfig. It showed up at Special:BlankPage/GlobalWatchlist and meta:Special:BlankPage/GlobalWatchlist. But all the other watchlists were gone. And I hadn't removed them. I do not see them in the list at meta:Special:BlankPage/GlobalWatchlistConfig. And Special:BlankPage/GlobalWatchlistConfig is blank. I guess I should stick with settings at Meta? I am bouncing around between Meta and English Wikipedia. -- Timeshifter (talk) 04:59, 28 August 2019 (UTC)
 * once you set the custom site list, the defaults go away. You can set them yourself if you want --DannyS712 (talk) 05:02, 28 August 2019 (UTC)
 * That's asking a lot of people unfamiliar with all this. Is it possible to pre-fill the list? That would be intuitive. Plus a link to a list of wiki names to copy and paste from. People need to see a pattern to copy from. -- Timeshifter (talk) 05:07, 28 August 2019 (UTC)
 * Okay, it should always pre-fill - if you manually remove the line with `GlobalWatchlistConfig` in your global.js, going to the settings page should prefill the default sites --DannyS712 (talk) 05:10, 28 August 2019 (UTC)
 * That's the ticket! Much more intuitive. Need links to your screenshots, help page, list of wiki names, etc.. -- Timeshifter (talk) 05:18, 28 August 2019 (UTC)
 * I'll add a dedicated help page as some point, but its just the name from the url - .  - `fr.wikinews`, `de.wiktionary`, `www.wikidata`, etc --DannyS712 (talk) 05:21, 28 August 2019 (UTC)

User defined site list
I tried to add other sites to watch (fr.wikipedia) but nothing is saved after I clik on the save button. Is it a bug? Djiboun (talk) 17:24, 15 September 2019 (UTC)
 * your script import is 'Global_watchlist' - it needs to be 'Global watchlist' to be recognized DannyS712 (talk) 20:14, 15 September 2019 (UTC)
 * Ok, I made the change in the script import. But I still can't add other sites to watch. Any other suggestions? BY the way, thank you for adding the French translations. Djiboun (talk) 20:49, 17 September 2019 (UTC)
 * really? Can you provide the information specified in Reporting JavaScript errors? DannyS712 (talk) 21:59, 17 September 2019 (UTC)
 * I've just tried again this morning and it seems to work now. Thank you for your help and for this great tool! Djiboun (talk) 08:20, 22 September 2019 (UTC)

Thanks
Thanks, DannyS712, for this Global watchlist. I use it some weeks now and it is getting more and more convenient. It gives great oversight and rest also. Thank you, Eissink (talk) 16:45, 7 November 2019 (UTC).
 * no problem. If there are any features you want, just file a task on phab DannyS712 (talk) 21:12, 7 November 2019 (UTC)

Local settings
Hi. Great script! Is there a way to make the settings button to work on meta if working on local wiki? Thank you. IKhitron (talk) 13:11, 31 January 2020 (UTC)
 * Can you explain what you mean? The settings button should always be working on meta DannyS712 (talk) 17:54, 31 January 2020 (UTC)
 * Well, there are two cases. When I import the script by global.js, open on local wiki, click on Settings, I get the settings page. But if I remove the import from global.js, put it in my common.js on local wiki, open on local wiki, click on Settings, I get a blank page on Meta. IKhitron (talk) 17:58, 31 January 2020 (UTC)
 * Since the script is designed to be global, it is only intended to work via global.js. If you want to use it only for a specific wiki, you need to manually edit your settings. --DannyS712 (talk) 18:06, 31 January 2020 (UTC)
 * I see. Well, there is nothing to do. I just know for sure that if I suggest our users to add it to global.js, there will be about 3 users. To improve this number, there should be a local gadget that loads the script. Thank you. IKhitron (talk) 18:12, 31 January 2020 (UTC)

Anyway, may add one more translation to your script? IKhitron (talk) 19:45, 31 January 2020 (UTC)
 * Sure, I'll update translations this weekend - what language did you translate it to? DannyS712 (talk) 20:48, 31 January 2020 (UTC)
 * Thanks. Hebrew. Where do you want me to put the draft? IKhitron (talk) 21:00, 31 January 2020 (UTC)
 * Translation is done at meta:User:DannyS712/Global watchlist/Translate DannyS712 (talk) 21:01, 31 January 2020 (UTC)
 * Well, it's looks ready there. Looks like it just was not deployed yet. IKhitron (talk) 21:05, 31 January 2020 (UTC)
 * I'll sync it soon DannyS712 (talk) 21:11, 31 January 2020 (UTC)

One more question, please. The script can read the wikipedia edits from the last months, if I'm right, and from wikiquote from the last day, even if there are some from the last months, between July and yesterday. Is it depend on the site type? Thank you. IKhitron (talk) 18:17, 2 February 2020 (UTC)
 * its based only on what the watchlist api returns. It should be the last 3 months for all sites DannyS712 (talk) 20:24, 2 February 2020 (UTC)
 * I see. Well it isn't. Is there a way to know the number for each site? Thank you. IKhitron (talk) 20:42, 2 February 2020 (UTC)
 * I'm not sure what you mean - I would check the filters you have enabled, those may be reducing the number of edits shown DannyS712 (talk) 20:59, 2 February 2020 (UTC)
 * Great, thanks. This fixed from a day to a month. Still do not know how to make it 3 months, there is not such a filter value. IKhitron (talk) 21:11, 2 February 2020 (UTC)
 * I'll try to investigate, but it should be the same DannyS712 (talk) 21:49, 2 February 2020 (UTC)
 * Thank you. One more question, please. The settings should work? Because I use global settings page to set show log entries to false, it indeed edits the global.js, but I still can see all the log entries. IKhitron (talk) 18:57, 3 February 2020 (UTC)
 * m:User:IKhitron/global.js says that log entries should be shown DannyS712 (talk) 03:17, 4 February 2020 (UTC)
 * Sure, because it didn't work, so I've restored it. See the previous version. IKhitron (talk) 11:05, 4 February 2020 (UTC)

And also, is there a chance you wrap every user name with " x" in span with some class? For example,. Please, otherwise it will remain unreadable. (example) IKhitron (talk) 14:58, 4 February 2020 (UTC)
 * I can take a look - I didn't test it with right to left names DannyS712 (talk) 17:01, 4 February 2020 (UTC)

Thanks. And one more - you check if the skin is minerva. I believe it should be the opposite - portlet on vector and toollinks otherwise. I've checked monobook, modern and timeless, they have no link. IKhitron (talk) 17:40, 4 February 2020 (UTC)
 * When I checked them when adding the portlet code, it worked. I'll check the other skins again though DannyS712 (talk) 19:28, 4 February 2020 (UTC)
 * Thanks again. IKhitron (talk) 20:40, 4 February 2020 (UTC)

Well, spent some time and resolved the skin problem. Minerva it's okay, p-views isn't. It should be. IKhitron (talk) 14:49, 6 February 2020 (UTC)
 * I'll try that out DannyS712 (talk) 17:30, 6 February 2020 (UTC)

One more bug. The settings of log entries and new pages not just do not work, but also cannot be saved properly. If uncheck them, save, and then open the settings again, they still will be checked. And maybe these two problem are connected somehow. IKhitron (talk) 20:36, 7 February 2020 (UTC)
 * not sure what you're doing at he:מדיה ויקי:GlobalWatchlistConfig.js / he:משתמש:IKhitron/GlobalWatchlist.json. Please let me know if this doesn't work when using just by script (as opposed to your modified one) DannyS712 (talk) 22:41, 7 February 2020 (UTC)
 * Of course, I'm telling you only about what happens when I use your script as you've recommended, in global.js, and with no custom code on the wiki site. IKhitron (talk) 22:54, 7 February 2020 (UTC)
 * And I can explain what I'm doing there, if you're interested. IKhitron (talk) 22:56, 7 February 2020 (UTC)
 * Can you please uncheck them, hit save, and then, without closing the tab, check if it worked? If it didn't, can you file a phabricator report with the contents of the console? DannyS712 (talk) 06:19, 8 February 2020 (UTC)
 * No, it didn't. Filled T244638, will add the console content tomorrow, I'm on mobile now. IKhitron (talk) 13:42, 8 February 2020 (UTC)

Thanks again. A piece of advice: you should rebuild the configuration page layout. Now you get the saving button in the middle of the screen on wider devices. IKhitron (talk) 21:09, 9 February 2020 (UTC)

And one more thing. I spent a lot of time writing the Watchlist Manager gadget. You're invited to use any part of the code to save your time, if you want to. IKhitron (talk) 14:39, 10 February 2020 (UTC)

Hi again. We've already talked about the problems in rtl. It took a week and some help from Amire80, but here is the code that solves all the problems. Please add it or equivalent one to the css page. Thank you. IKhitron (talk) 12:52, 12 February 2020 (UTC)
 * Can you open a phab task, and assign it to yourself? I prefer to use that for issue tracking, and it'll remind me to implement the change DannyS712 (talk) 17:54, 12 February 2020 (UTC)
 * Done. T245042. IKhitron (talk) 18:02, 12 February 2020 (UTC)
 * The same applies to the other suggestions you made above, if you can DannyS712 (talk) 18:34, 12 February 2020 (UTC)
 * Done for T245051. The rest waits for your investigation. IKhitron (talk) 19:11, 12 February 2020 (UTC)

Stable
Hello, DannyS712. Did you ever thought about a possibility to make the last working version to be stable as is? Thank you. IKhitron (talk) 16:04, 1 July 2020 (UTC)


 * @IKhitron if you take a look at the changes (https://meta.wikimedia.org/wiki/Special:ComparePages?page1=User%3ADannyS712%2FGlobal+watchlist%2Fstable.js&rev1=&page2=User%3ADannyS712%2FGlobal+watchlist.js&rev2=&action=&diffonly=&unhide=) there isn't anything major that I felt warranted updating the stable version DannyS712 (talk) 16:15, 1 July 2020 (UTC)
 * I see. A pity. IKhitron (talk) 00:26, 2 July 2020 (UTC)