User talk:Novem Linguae/Scripts/CiteHighlighter

Latest comment: 25 days ago by Novem Linguae in topic Billboard and other sources

Make colours lighter edit

Hi, I really like this script, it's really helpful! I have a minor concern about the colours. They are currently a little bit to dark and make the references hard to read, and have a few accesibility concerns. Have you considered making them lighter? If you don't want to, would you mind if I forked the script to change the colours?Berrely • TalkContribs 16:47, 8 June 2021 (UTC)Reply

Berrely. Hey there. Thanks for the feedback. I don't think forking this would be a good idea. I don't have the source list set up as a separate file, so it would quickly get out of date. I went ahead and added a way to trigger lighter colors. Add window.citeHighlighterLighterColors = true; to the top of your common.js file. If you want me to tweak any of the colors, let me know. You can use Google's color picker to let me know what shade you want (the "hex" number is what I need). Hope that helps. –Novem Linguae (talk) 02:15, 9 June 2021 (UTC)Reply

Lulu.com edit

This is a self-publishing site, probably needs to be highlighted as generally unreliable. —valereee (talk) 14:36, 21 June 2021 (UTC)Reply

Valereee. Added. Thanks for the tip. Feel free to post tips anytime. –Novem Linguae (talk) 00:01, 22 June 2021 (UTC)Reply
P.S. Looks like lulu.com was already included in CiteHighlighter, since it is in WP:NPPSG, and the highlighter grabs data from there. But still, keep em coming :) –Novem Linguae (talk) 00:05, 22 June 2021 (UTC)Reply
Dammit, this is the second time I've wasted someone else's time today lol... —valereee (talk) 00:27, 22 June 2021 (UTC)Reply

issuu.com edit

isssuu is a publishing platform, so each publication that uses it should be considered by itself, rather than as a group. Vexations (talk) 19:57, 11 December 2021 (UTC)Reply

@Vexations.   Fixed. Thanks. –Novem Linguae (talk) 01:07, 12 December 2021 (UTC)Reply

feature request edit

maybe this could support the citation style used in articles such as Ike for President (advertisement) and C. J. Cregg? (also, I greatly appreciate the needle/haystack variable :D clever clever) theleekycauldron (talkcontribs) (she/they) 04:26, 20 March 2022 (UTC)Reply

@Theleekycauldron. Thanks, I'm glad you like the code. Good feature suggestion. I'm a bit busy with work this week but I'll try to circle back to this. Feel free to remind me in a week or two. Thanks! –Novem Linguae (talk) 05:40, 20 March 2022 (UTC)Reply
gotcha! no worries, I'll remind ya :) theleekycauldron (talkcontribs) (she/they) 07:26, 20 March 2022 (UTC)Reply
@Theleekycauldron.   Done. Thanks for suggesting. Unfortunately CiteHighlighter doesn't highlight most books, but this feature will be useful for things like C. J. Cregg#Articles and tweetsNovem Linguae (talk) 15:04, 3 April 2022 (UTC)Reply

What is the best way to add for example Swedish sites? Javascript questions. All scientific journals. edit

Let's say we want to add the references in this Swedish list and many other Swedish sources to this list, what is the best way? I guess you don't want us to fork the script to our own copy?

Another question: Would it be possible to make this nice script visible outside of the main name space (in non-articles)? For testing and demonstration purposes.

A third question: Many scientific journals have Danish Bibliometric Research Indicator level (P1240) journal rank (score 1, 2 or 3 based on journal impact factor/citation analysis) at Wikidata on my initiative. For example Nature (Q180445) has score 3 out of three. I suggest that all three scores should be dark green - not only medical journals. In non-medicin fields, secondary/meta studies are typically not required. Many of the scientific publications also have other types of scores in review score (P444) that may be useful.SHould the list of scores be imported manually into this list, or should it be imported automatically from Wikidata? Tomastvivlaren (talk) 21:07, 2 April 2022 (UTC)Reply

@Tomastvivlaren. Hey there. Good questions.
1) I would love to use WP:RSPs from other Wikipedias as a dictionary for CiteHighlighter. The best way to help with this is to create a page on wiki somewhere (such as in your userspace) in the same format as WP:NPPSG, that is, with ;Reliable or ;No consensus or ;Unreliable on a line to indicate the reliability, then * [1] on a line below it to indicate the website. Then let me know and I can import it into CiteHighlighter using an offline tool I made.
2) Yes, you can have CiteHighlighter highlight more aggressively by adding window.citeHighlighterHighlightEverything = true; to the top of your common.js. May increase lag on some pages though.
3) CiteHighlighter currently analyzes journals (and everything) solely based on domain name (e.g. nature.com). It doesn't look at journal name, ISSN, etc. I do like this line of thinking though. If you can find a way to generate a list of high quality journal's domain names, I am happy to add it to CiteHighlighter. For pulling stuff from Wikidata, https://www.wikidata.org/wiki/Special:ApiSandbox or https://query.wikidata.org/ would probably be the way to go. –Novem Linguae (talk) 15:17, 3 April 2022 (UTC)Reply

KXRR bug edit

Hi again! Thanks for tackling my previous thing :) The program seems to be throwing a red flag for worldradiohistory.com over at KXRR, despite the source not being listed in the program – what's going on there? theleekycauldron (talkcontribs) (she/they) 22:24, 1 July 2022 (UTC)Reply

@Theleekycauldron. Hey there. Unable to reproduce. Perhaps a different user highlighter is highlighting that one, such as unreliable or CiteUnseen? Screenshot.Novem Linguae (talk) 23:22, 1 July 2022 (UTC)Reply
@Novem Linguae: I don't have either of those – strangely, it doesn't show in the "references" section for me, but it does show up in the tooltips... theleekycauldron (talkcontribs) (she/they) 23:28, 1 July 2022 (UTC)Reply
Unable to reproduce with your common.js loaded. Screenshot. Any other hints? –Novem Linguae (talk) 23:40, 1 July 2022 (UTC)Reply
@Novem Linguae: If that's the case, it's probably something client-side – thanks for digging into it anyway! theleekycauldron (talkcontribs) (she/they) 01:04, 3 July 2022 (UTC)Reply

Interface-protected page edit request edit

Line 60 contains an error; colors should be this.colors. See GH#135. elijahpepe@wikipedia (he/him) 03:31, 28 August 2022 (UTC)Reply

PR accepted and deployed. Thanks for reporting and for writing a patch. No need to use interface administrator edit request in the future for user scripts with active maintainers, I'll just edit it :) –Novem Linguae (talk) 04:28, 28 August 2022 (UTC)Reply

The script is highlighting edit

I was looking at draft:Creepy Nuts and I think the script highlights one of the headers in the contents. Image example link: https://imgur.com/a/W6BXZYq BhamBoi (talk) 18:02, 8 December 2022 (UTC)Reply

  FixedNovem Linguae (talk) 12:46, 26 December 2022 (UTC)Reply

Another weird problem, at w:Draft:Me_vs._Myself#References, there is a highlighted link within a differently-highlighted ref... Example image: https://imgur.com/a/Y4S1eCV BhamBoi (talk) 19:11, 8 December 2022 (UTC)Reply

Probably   Fixed by patch above –Novem Linguae (talk) 12:46, 26 December 2022 (UTC)Reply

Script seems to highlight random things sometimes edit

When viewing this for some reason the script will highlight the following things: the Draft assessment icon, the pagieviews link, the full page statistics link, the links to view the current and prior revision, the edit button on both revisions, the undo button, my talk page and the IPs talk page, the rollback button, the previous edit button, and the changes since my last edit button (as well as the "welcome" button from Twinkle).On the draft the script will also highlight the center of the image (presumably where the link would be if it weren't displaying the image). All of these are highlighted in orange. This doesn't happen on every article either. ― Blaze WolfTalkBlaze Wolf#6545 21:00, 15 December 2022 (UTC)Reply

It also appears to highlight the "improve it" link in the maintenance template as well as the "talk page" link in the same template. I dunno what the hell is going on here, but I"ve noticed that the script really seems to enjoy highlighting whatever the hell it feels like. ― Blaze WolfTalkBlaze Wolf#6545 21:02, 15 December 2022 (UTC)Reply
Happening to me too when I click on your link. Maybe related to my previous report one talk section above. BhamBoi (talk) 04:30, 21 December 2022 (UTC)Reply
  FixedNovem Linguae (talk) 12:54, 26 December 2022 (UTC)Reply

McClatchy edit

Should all of McClatchy's newspapers be added as RS? Every time it's mentioned briefly on RSN, its saying it's not unreliable, but maybe a little bit more consensus should be reached and/or only the News Agency and not their subsidiary papers should be added? BhamBoi (talk) 04:36, 21 December 2022 (UTC)Reply

The standard used at WP:NPPSG, where CiteHighlighter gets a lot of our sources from, is RSN discussions with at least 2 participants. Are there any RSN discussions with at least 2 participants stating something like "all McClatchy newspapers" are reliable? At first glance, looks like a pretty standard WP:NEWSORG so is probably reliable, but would like to see it at WP:RSN to make it official. –Novem Linguae (talk) 13:02, 26 December 2022 (UTC)Reply

Distinction between GU and Depreciated/Blacklisted? edit

I feel as though it's an important distinction between the quality, same as the light green/dark green distinction. DecafPotato (talk) 05:56, 15 January 2023 (UTC)Reply

Unreliable, deprecated, and blacklisted have a lot in common though. They shouldn't normally be used, they don't pass WP:GNG, etc. –Novem Linguae (talk) 09:33, 16 January 2023 (UTC)Reply

Digital Trends edit

Digital Trends is currently highlighted in Orange (see Draft:The Crew Motorfest) however WP:VG/S shows that it's reliable based on 2 discussions. This should be changed to be highlighted in green. ― Blaze WolfTalkBlaze Wolf#6545 19:50, 1 February 2023 (UTC)Reply

@Blaze Wolf. Howdy! That one is getting highlighted orange because it has the spammy keyword "announce" in the URL. Orange highlights can override the other colors, and it means a spammy keyword was found in a particular URL. I think if you check some other Digital Trends cites, you'll find they are highlighted normally. Do you think "announce" has enough false positives that I should remove it? –Novem Linguae (talk) 06:57, 2 February 2023 (UTC)Reply
Probably. Especially regarding video games since usually "announce" is referring to a new video game. ― Blaze WolfTalkBlaze Wolf#6545 12:00, 2 February 2023 (UTC)Reply

The Philadelphia Inquirer edit

inquirer.com should be treated as generally reliable, I assume? theleekycauldron (talkcontribs) (she/her) 22:09, 1 February 2023 (UTC)Reply

@Theleekycauldron. Howdy! I try to only add sources to CiteHighlighter after they've had a discussion at RSN, or they show up on a semi-vetted list of sources such as WP:RSPSOURCES, WP:NPPSG, or a WikiProject source list. While inquirer.com looks pretty reliable and WP:NEWSORG-ish at first glance, do you know if it meets the criteria I just mentioned? If it does I'll be happy to add it. –Novem Linguae (talk) 07:00, 2 February 2023 (UTC)Reply
it doesn't, but The Philadelphia Inquirer is basically a run-of-the-mill major U.S. newspaper, and the paper of record in its area (including parts of South Jersey). I don't think it was something that ever really needed discussion, it's just treated like an RS. theleekycauldron (talkcontribs) (she/her) 18:49, 2 February 2023 (UTC)Reply
Sounds good. Will add in the next update. Thanks. –Novem Linguae (talk) 17:47, 3 March 2023 (UTC)Reply

More sources to add edit

@Novem Linguae I listed some unreliable sources at add to this script at User:137a/sandbox/sources. 137a (talkedits) 16:09, 3 March 2023 (UTC)Reply

Hey @137a. Thanks for making this list. Looks good. I don't have much time right now. If you want you can do the following, and after you make the changes, I will run a script that updates CiteHighlighter:
  • Add any of the sources on your list with an RSN consensus of at least 2 people to WP:NPPSG, copying the format there (include the domain, ref to the RSN discussion, put in correct country/topic section, put in correct reliable/no consensus/unreliable subsection, etc.)
  • Add any of the sources on your list without an RSN consensus to User:Novem Linguae/Scripts/CiteHighlighter/AllSourcesExceptNPPSG, copying the format there (include the domain, put in correct reliable/no consensus/unreliable subsection, etc.)
    • Maybe make your own heading called "== 137a's Miscellaneous ==" at the very bottom. You can include your "overrides" of existing colors there, along with redice.tv, vk.net, gamepedia.com, etc.
    • You can use "; Reliable" "; No consensus" "; Unreliable" "; News aggregator" followed by a series of bullets to set their reliability level.
    • Feel free to leave comments for all your entries. * [https://abc.com/] comment goes here
Good idea on "essay". I will add that to CiteHighlighter's code.
Note to self: Update the code so that if there are duplicate entries, only the last entry is actually added to the dictionary. That should get 137a's overrides working without having to hard-code a bunch of stuff.
Maybe ping me when you're done with that and I will run the update script. How's that sound? –Novem Linguae (talk) 17:46, 3 March 2023 (UTC)Reply
@Novem Linguae
I added a few sources to your subpage (one was blacklisted), and some to NPPSG. I might have more.
[2] 137a (talkedits) 17:30, 10 March 2023 (UTC)Reply
Thanks! Would you mind moving any that have an RSN consensus with at least 2 participants to NPPSG? That's a better spot for them. –Novem Linguae (talk) 22:36, 10 March 2023 (UTC)Reply

science.org edit

As you probably know, Science is a top-tier academic journal and is likely okay to be listed here considering is it on WP:NPPSG. But the link added to the highlighter is sciencemag.org, which is the outdated URL and now a redirect to science.org. Please add the new URL. Thanks! BhamBoi (talk) 04:03, 16 March 2023 (UTC)Reply

  Fixed by editing Wikipedia:New page patrol source guide. Diff. Feel free to fix URLs on this page yourself if you see any other broken ones. –Novem Linguae (talk) 21:12, 6 April 2023 (UTC)Reply

Also, what about the URL for Wired UK? BhamBoi (talk) 18:47, 6 April 2023 (UTC)Reply

  Fixed by adding the URL to NPPSG in this diff. Again, feel free to add URLs yourself if you catch any more. –Novem Linguae (talk) 21:16, 6 April 2023 (UTC)Reply

thoughtco edit

thoughtco should be yellow, not green. it falls under dotdash (about.com). lettherebedarklight晚安 08:00, 8 May 2023 (UTC)Reply

@Lettherebedarklight. Thanks. Feel free to update its entry at WP:NPPSG, which is where CiteHighlighter is getting this rating from. –Novem Linguae (talk) 09:03, 8 May 2023 (UTC)Reply

add user-review as suspicious word edit

Some otherwise-reliable websites let users post reviews about video games and movies, stuff life that. Here is an example. 137a (talkedits) 16:11, 10 May 2023 (UTC)Reply

  Done. Thank for the idea. –Novem Linguae (talk) 09:19, 11 May 2023 (UTC)Reply
also add "viewtopic" since it is used in some forum URLs. 137a (talkedits) 17:15, 24 May 2023 (UTC)Reply
  DoneNovem Linguae (talk) 18:26, 24 May 2023 (UTC)Reply

Source lists edit

Hey Novem, have you added the links from here? Wikipedia:Reliable sources/Perennial sources#Topic-specific pages BhamBoi (talk) 17:25, 11 June 2023 (UTC)Reply

Hello! I think I have most of those either in CiteHighlighter or on my todo list, but I see at least one there that I haven't found before. So thank you for pointing this out. Also, I can only use lists with reliability ratings. –Novem Linguae (talk) 19:19, 11 June 2023 (UTC)Reply

Does this work in other language versions of wiki? edit

Hey, I edit in French Wikipedia as well, this would be a useful tool there, does the script work on other language versions of wiki? Oaktree b (talk) 01:27, 14 June 2023 (UTC)Reply

Hello @Oaktree b. I checked just now and it works on testwiki. Looks like I added this feature on some point. Try adding importScript('en:User:Novem Linguae/Scripts/CiteHighlgihter.js'); to your common.js. –Novem Linguae (talk) 14:02, 14 June 2023 (UTC)Reply
cool, thanks! Oaktree b (talk) 14:38, 14 June 2023 (UTC)Reply

Press releases on AP site edit

The AP's site is generally highlighted green, however press releases (under the pattern apnews.com/press-release/pr-newswire/), such as [3], should probably note be. LittlePuppers (talk) 01:48, 19 June 2023 (UTC)Reply

  Fixed. Although this will increase the false positive rate for orange highlighting. I may roll it back if I get complaints. Thanks for the idea. –Novem Linguae (talk) 05:14, 19 June 2023 (UTC)Reply
I got complaints, so I rolled it back. –Novem Linguae (talk) 04:54, 23 June 2023 (UTC)Reply

Kirkus Reviews marked red edit

Hello, I noticed that Kirkus Reviews has been marked red on articles despite WP:KIRKUS suggesting that it is generally reliable. Thank you for this great tool! ⇒ Lucie Person (talk|contribs) 01:55, 1 August 2023 (UTC)Reply

Looks like it's mostly green, but has some paid reviews that are considered red. I'll average it out to yellow in the next release. Thanks for reporting. –Novem Linguae (talk) 02:07, 1 August 2023 (UTC)Reply

the guardian marked yellow edit

hi, the guardian is marked yellow despite rsp and nppsg saying it is reliable. ltbdl (talk) 02:21, 3 August 2023 (UTC)Reply

At RSP, there's a "Guardian Blogs" right below the Guardian that is marked yellow. That's the reason for The Guardian being yellow. I think they both use the same domain name. –Novem Linguae (talk) 10:56, 3 August 2023 (UTC)Reply
is it possible to switch it to green? ltbdl (talk) 06:32, 5 August 2023 (UTC)Reply

Bug report edit

Hi! I'm not sure why, but Politico is not highlighted by CH. It has an entry at WP:RSPSS. I noticed this on this article. Other sources are still appropriately highlighted. Actualcpscm (talk) 15:52, 4 August 2023 (UTC)Reply

Sources to Highlight edit

Hello Novem Linguae, thank you for writing this script 🙏, as an AfC reviewer (and formerly NPR) and an editor who works heavily on music, I noticed the script does not recognize roughly 98% of the sources listed under WP:RSMUSIC (it highlights Billboard and maybe few others), and also marks Rolling Stone as marginally reliable or no census.
Could you please adjust the script to recognize the reliable sources and of course unreliable source listed under RSMUSIC, thank you.   dxneo (talk) 13:23, 16 October 2023 (UTC)Reply

Hey Dxneo. Looks like I already have WP:RSMUSIC in CiteHighlighter, but I did it a year or two ago so it got out of date. RSMUSIC looks like it has the websites in a format that will be easy to add. I'll try to do an update after lunch :) –Novem Linguae (talk) 21:34, 30 October 2023 (UTC)Reply
Thank you Novem Linguae, if you can, please notify me when it is done. Can't wait. dxneo (talk) 21:51, 30 October 2023 (UTC)Reply
Dxneo. Updated. Give it a try now. –Novem Linguae (talk) 07:25, 31 October 2023 (UTC)Reply
Perfection   Thank you. dxneo (talk) 19:31, 1 November 2023 (UTC)Reply
Novem Linguae, sorry to disturb but I think as much as Billboard is a "chart site", news publishing site, and green source, maybe The Official South African Charts (launched by RiSA) should also be highlighted as they release news and is also a "chart site" and sources listed here. dxneo (talk) 00:39, 8 November 2023 (UTC)Reply

TimesLIVE and IOL edit

Hello NL, I've just noticed that the above mentioned domains are now highlighted yellow (from green), is there something I'm missing? dxneo (talk) 05:47, 22 March 2024 (UTC)Reply

@Dxneo. Looks like TimesLIVE and IOL are yellow over at Wikipedia:Reliable South African Sources, but green at WP:NPPSG. NPPSG cites Wikipedia:Reliable sources/Noticeboard/Archive 418#South African sources.
Thoughts on how to reconcile? Do you want to try boldly editing Wikipedia:Reliable South African Sources and moving those sources from no consensus to reliable, linking to Wikipedia:Reliable sources/Noticeboard/Archive 418#South African sources? Or maybe start a discussion at Wikipedia talk:Reliable South African Sources and ping the list's maintainer, TapticInfo? Up to you.
As long as those sources are on two lists, CiteHighlighter will pick the lowest reliability as a precaution. –Novem Linguae (talk) 03:36, 29 March 2024 (UTC)Reply
Novem Linguae, I think running it through TapticInfo is the better option. However, I think consensus reached by various editors is better than that decided by one person as I see no discussions on the project's talk page. dxneo (talk) 00:46, 1 April 2024 (UTC)Reply

Billboard and other sources edit

 – Novem Linguae (talk) 20:57, 7 April 2024 (UTC)Reply

Hi Novem Linguae, I took a deeper look at Billboard sites that were added to your script and found Brazil is owned by Penske (same as US) so is under the same editorial board ("While Billboard takes on editorial claims...") but the others are brand licensing agreements with different ownership: Japan (see bottom right), Argentina, Arabia. Looking at WP:CHARTS, Billboard Japan, Brazil and Argentina are listed but not Arabia. Just an FYI, Forbes is another one that has licensing agreements to use their name. It appears the script only lists Forbes.com but something to be aware of.

As for the ones from WP:WikiProject Africa/Africa Sources List, I noticed this discussion back in 2021 where a couple editors urged caution because it was not clear they had gone through any discussion. Looking at now, it appears to be a mixed bag. S0091 (talk) 15:07, 2 April 2024 (UTC)Reply

I formally request you remove any changes/additions to your script you implemented that were directly made by now CU blocked I'm tla. S0091 (talk) 19:51, 7 April 2024 (UTC)Reply
  Done. Too much work to check them all, so best to just remove them. –Novem Linguae (talk) 21:09, 7 April 2024 (UTC)Reply