Jump to content

User talk:DannyS712/Global watchlist

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

Neat script! Some ideas...

[edit]

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)[reply]

No problem. It’s still a work in progress - I’ll see what I can do. DannyS712 (talk) 07:09, 1 July 2019 (UTC)[reply]

Removed settings

[edit]

Hi Danny, I tried to add more wikis by settings button, but instead of adding it removed all of them. ‐‐1997kB (talk) 13:07, 13 July 2019 (UTC)[reply]

@1997kB: um, that shouldn't have happened. Can you walk me through what specifically you did? --DannyS712 (talk) 13:08, 13 July 2019 (UTC)[reply]
DannyS712, Yes,
  1. Open Global watchlist from that button in watchlist (was on meta.wikimedia watchlist).
  2. Click settings.
  3. Then there's some fields to add new wikis.
  4. There was already some (which I added earlier by editing global.js) and I added 2 more and saved.
That's all. ‐‐1997kB (talk) 13:10, 13 July 2019 (UTC)[reply]
@1997kB: 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 f12) and paste the contents here --DannyS712 (talk) 13:16, 13 July 2019 (UTC)[reply]
Hold on! ‐‐1997kB (talk) 13:21, 13 July 2019 (UTC)[reply]
Do you need errors only, because there's alot of content? ‐‐1997kB (talk) 13:26, 13 July 2019 (UTC)[reply]
@1997kB: ideally everything, I don't know what could be causing it --DannyS712 (talk) 13:26, 13 July 2019 (UTC)[reply]
DannyS712, there you go. ‐‐1997kB (talk) 13:35, 13 July 2019 (UTC)[reply]
@1997kB: 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)[reply]
DannyS712, hope this helps!. ‐‐1997kB (talk) 13:42, 13 July 2019 (UTC)[reply]
@1997kB: try now --DannyS712 (talk) 13:47, 13 July 2019 (UTC)[reply]
DannyS712, working. Thanks! ‐‐1997kB (talk) 13:50, 13 July 2019 (UTC)[reply]
@1997kB: 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)[reply]
DannyS712, Yeah remove please. ‐‐1997kB (talk) 13:58, 13 July 2019 (UTC)[reply]
@1997kB:  Done --DannyS712 (talk) 14:34, 13 July 2019 (UTC)[reply]
Hello DannyS712, 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 "en.wikipedia.org", "meta.wikimedia.org" instead of "en.wikipedia.org","meta.wikimedia.org". ‐‐1997kB (talk) 02:50, 21 July 2019 (UTC)[reply]
@1997kB: 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)[reply]
@1997kB: just noting that this was done --DannyS712 (talk) 02:09, 15 August 2019 (UTC)[reply]

Rapid Grant

[edit]

Have you considered asking for a Rapid Grant to further develop this script? Sophivorus (talk) 13:08, 17 July 2019 (UTC)[reply]

@Sophivorus: umm, no, I hadn't considered that... --DannyS712 (talk) 13:13, 17 July 2019 (UTC)[reply]
@Sophivorus: 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)[reply]
That's not so, see meta:Grants:Project/Rapid/Enhance the ProveIt gadget, part 2 Sophivorus (talk) 13:20, 17 July 2019 (UTC)[reply]
@Sophivorus: 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)[reply]

Need simple step-by-step instructions

[edit]

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)[reply]

@Timeshifter: Because its a 'global' watchlist, it is designed to be based on meta. At m:User:Timeshifter/global.js, add the line mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:DannyS712/Global_watchlist.js&action=raw&ctype=text/javascript'); 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)[reply]
@DannyS712: 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:
  • {{Special:Watchlist|English Wikipedia}}
  • {{Special:Watchlist|Meta}}
  • {{Special:Watchlist|Mediawiki}}
Then they could be stacked (as above) on any of my user subpages.
-- Timeshifter (talk) 00:57, 28 August 2019 (UTC)[reply]
@Timeshifter: 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)[reply]
@Timeshifter: See mw:User:DannyS712/Global watchlist --DannyS712 (talk) 01:26, 28 August 2019 (UTC)[reply]
@DannyS712: 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)[reply]
@Timeshifter: 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)[reply]
@DannyS712: 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)[reply]
@Timeshifter: Try replacing the `_` with ` ` (underscore -> space) in your import in your global.js DannyS712 (talk) 04:36, 28 August 2019 (UTC)[reply]
@DannyS712: 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)[reply]
@Timeshifter: 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)[reply]
@DannyS712: 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)[reply]
@Timeshifter: 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)[reply]
@DannyS712: 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)[reply]
@Timeshifter: I'll add a dedicated help page as some point, but its just the name from the url - lang.site - `fr.wikinews`, `de.wiktionary`, `www.wikidata`, etc --DannyS712 (talk) 05:21, 28 August 2019 (UTC)[reply]

User defined site list

[edit]

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)[reply]

@Djiboun: your script import is 'Global_watchlist' - it needs to be 'Global watchlist' to be recognized DannyS712 (talk) 20:14, 15 September 2019 (UTC)[reply]
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)[reply]
@Djiboun: really? Can you provide the information specified in Wikipedia:Reporting JavaScript errors? DannyS712 (talk) 21:59, 17 September 2019 (UTC)[reply]
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)[reply]

Thanks

[edit]

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).[reply]

@Eissink: no problem. If there are any features you want, just file a task on phab DannyS712 (talk) 21:12, 7 November 2019 (UTC)[reply]

Local settings

[edit]

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)[reply]

@IKhitron: Can you explain what you mean? The settings button should always be working on meta DannyS712 (talk) 17:54, 31 January 2020 (UTC)[reply]
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)[reply]
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)[reply]
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)[reply]

Anyway, may add one more translation to your script? IKhitron (talk) 19:45, 31 January 2020 (UTC)[reply]

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

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)[reply]

@IKhitron: 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)[reply]
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)[reply]
@IKhitron: 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)[reply]
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)[reply]
@IKhitron: I'll try to investigate, but it should be the same DannyS712 (talk) 21:49, 2 February 2020 (UTC)[reply]
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)[reply]
@IKhitron: m:User:IKhitron/global.js says that log entries should be shown DannyS712 (talk) 03:17, 4 February 2020 (UTC)[reply]
Sure, because it didn't work, so I've restored it. See the previous version. IKhitron (talk) 11:05, 4 February 2020 (UTC)[reply]

And also, is there a chance you wrap every user name with "<number>x" in span with some class? For example, , <span class="UserNameWithXFancyClass">[[User:ABC|ABC]] 15x</span>,. Please, otherwise it will remain unreadable. (example) IKhitron (talk) 14:58, 4 February 2020 (UTC)[reply]

@IKhitron: I can take a look - I didn't test it with right to left names DannyS712 (talk) 17:01, 4 February 2020 (UTC)[reply]

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)[reply]

@IKhitron: 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)[reply]
Thanks again. IKhitron (talk) 20:40, 4 February 2020 (UTC)[reply]

Well, spent some time and resolved the skin problem. Minerva it's okay, p-views isn't. It should be

mw.util.addPortletLink('p-views', target, text, '', text) ||
mw.util.addPortletLink('p-personal', target, text, '', text);

. IKhitron (talk) 14:49, 6 February 2020 (UTC)[reply]

@IKhitron: I'll try that out DannyS712 (talk) 17:30, 6 February 2020 (UTC)[reply]

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)[reply]

@IKhitron: 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)[reply]
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)[reply]
And I can explain what I'm doing there, if you're interested. IKhitron (talk) 22:56, 7 February 2020 (UTC)[reply]
@IKhitron: 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)[reply]
No, it didn't. Filled phab:T244638, will add the console content tomorrow, I'm on mobile now. IKhitron (talk) 13:42, 8 February 2020 (UTC)[reply]

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)[reply]

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)[reply]

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.

#globalWatch-watchlistsFeed {
	text-align: left;
	direction: ltr;
}

[id^='globalWatch-feed-site-he_'], [id^='globalWatch-feed-site-ar_'], [id^='globalWatch-feed-site-azb_'], [id^='globalWatch-feed-site-ckb_'], [id^='globalWatch-feed-site-dv_'], [id^='globalWatch-feed-site-fa_'], [id^='globalWatch-feed-site-glk_'], [id^='globalWatch-feed-site-ks_'], [id^='globalWatch-feed-site-lrc_'], [id^='globalWatch-feed-site-mzn_'], [id^='globalWatch-feed-site-nqo_'], [id^='globalWatch-feed-site-pnb_'], [id^='globalWatch-feed-site-ps_'], [id^='globalWatch-feed-site-sd_'], [id^='globalWatch-feed-site-ug_'], [id^='globalWatch-feed-site-ur_'], [id^='globalWatch-feed-site-yi_'] {
	text-align: right;
	direction: rtl;
}

.globalWatch-site a {
	unicode-bidi: isolate;
	display: inline-block;
}

Thank you. IKhitron (talk) 12:52, 12 February 2020 (UTC)[reply]

@IKhitron: 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)[reply]
Done. phab:T245042. IKhitron (talk) 18:02, 12 February 2020 (UTC)[reply]
@IKhitron: The same applies to the other suggestions you made above, if you can DannyS712 (talk) 18:34, 12 February 2020 (UTC)[reply]
Done for phab:T245051. The rest waits for your investigation. IKhitron (talk) 19:11, 12 February 2020 (UTC)[reply]

Stable

[edit]

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)[reply]

@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)[reply]
I see. A pity. IKhitron (talk) 00:26, 2 July 2020 (UTC)[reply]