User:Novem Linguae/Scripts/CiteHighlighter
Description | Highlight citations green, yellow, or red depending on their reliability |
---|---|
Author(s) | Novem Linguae |
Updated | October 14, 2024 (29 days ago) |
Source | User:Novem Linguae/Scripts/CiteHighlighter.js |
Highlights 1800 sources green, yellow, or red depending on their reliability.
Color codes
[edit]- Dark green = Generally reliable and potentially WP:MEDRS quality[1]
- Light green = Generally reliable
- Yellow = Marginally reliable or no consensus
- Orange = Suspicious word detected in URL, such as "blog" (list of words)
- Red = Generally unreliable, deprecated, or blacklisted
Installation
[edit]Go install User:Enterprisey/script-installer, then come back to this page and click the giant blue "Install" button in the infobox on the right.
Or install it manually by adding the below code to your Special:MyPage/common.js file:
{{subst:iusc|User:Novem Linguae/Scripts/CiteHighlighter.js}}
Bugs and feature requests
[edit]Your feedback is essential. Please report all bugs and feature requests on the talk page.
Quality control
[edit]CiteHighlighter mostly uses sources that have had some kind of multi-person vetting, such as RSPSOURCES AND NPPSG (which are both based on RSN discussions), and WikiProject reliable source lists (which is a bit more hit or miss with their vetting, but hopefully they have a process, and the WikiProject members can also iterate by modifying the list page).
One exception to "multi-person vetting" is some sources I added based on frequent use in featured articles - these are assumed to be generally reliable.
Requests to add/change a source with no supporting discussion at RSN or a WikiProject page will often be declined.
Original source lists
[edit]Ratings are taken from the following sources:
- Wikipedia:Reliable sources/Perennial
- Wikipedia:New page patrol source guide
- Wikipedia:WikiProject Film/Resources
- Commonly occurring sources in featured articles[2]
- Top 10 law reviews
- Newspapers of record
- List of academic preprint repositories[3]
- Websites from medication and chemistry infoboxes
- Wikipedia:WikiProject Korea/Reliable sources
- Wikipedia:WikiProject Video games/Sources
- Wikipedia:WikiProject Albums/Sources
- Wikipedia:WikiProject Christian music/Sources
- Wikipedia:WikiProject Anime and manga/Online reliable sources
- Wikipedia:WikiProject Tree of Life#Taxonomic resources
- Wikipedia:WikiProject Webcomics/Sources
- Wikipedia:WikiProject Board and table games/Sources
- Wikipedia:WikiProject Latter Day Saint movement/Sources
- Wikipedia:WikiProject Beauty Pageants/Sources
- Wikipedia:WikiProject Aircraft/Engines/Reference sources
- Wikipedia:WikiProject Venezuela/Reliable and unreliable sources - controversial
Good, but all books, so can't detect, need websites
[edit]To examine more closely
[edit]The ideal list says if the resources are reliable, iffy, or unreliable. Some pages just list a bunch of sources with an implication that they're reliable. These may need a bit more investigation before adding.
- Wikipedia:WikiProject Latin music/Resources
- Wikipedia:List of free online resources
- Wikipedia:Tambayan Philippines/Sources - 95% of it is yellow, which is concerning
Categories I already added to this list
[edit]Will add when time permits
[edit]- WP:RSP - I've got most of these, but I need to turn on
window.citeHighlighterHighlightEverything = true;
and get a couple that aren't in here yet. Easiest way to do this is to add them to WP:NPPSG. Pay particular attention to the far right website column. There's some websites I need to add for existing sources too. - WP:RSP type pages from other language Wikipedias
- Wikipedia:WikiProject Professional wrestling/Sources
- Wikipedia:WikiProject Film/Indian cinema task force#Guidelines on sources - Concerns raised about its reliability. For example Indiatimes, India Today, and IMDB should be unreliable but are not.
- Wikipedia:Advanced source searching#More resources
- Wikipedia:Record charts - some of these already added, I think some are missing though
- Wikipedia:WikiProject Eurovision/Sources
- Wikipedia:WikiProject Africa/Africa Sources List
- WP:CITEWATCH, https://predatoryjournals.com/journals/, Special:AbuseFilter/891
- Wikipedia:WikiProject Arena Football League/Reliable Sources
- Wikipedia:WikiProject Birds/References
- Wikipedia:WikiProject College football/Reliable sources
- Wikipedia:WikiProject Comics/References
- Wikipedia:WikiProject Conservatism/References
- Wikipedia:WikiProject Film/Resources
- Wikipedia:WikiProject Mathematics/Reference resources
- Wikipedia:WikiProject Oregon/Reference desk
- Wikipedia:WikiProject Timeline Tracer/Reliable sources
- Wikipedia:WikiProject Video games/Search engine
- Wikipedia:WikiProject Nigeria/Nigerian sources
- Got other ideas? Please add them here or post on talk pages
How you can contribute sources
[edit]- Wikipedia:New page patrol source guide - Please make sure anything added here was discussed in the WP:RSN archives and had a minimum of two participants.
- User:Novem Linguae/Scripts/CiteHighlighter/AllSourcesExceptNPPSG - Please make sure anything added here is either unarguably obvious (e.g. adding a social media site to the social media section), or originates from a somewhat vetted list (such as a WikiProject reliable sources list).
Both of these lists are editable by YOU. Please edit wisely.
Please allow a couple weeks/months for CiteHighlighter to be updated. Someday I may have a bot do this daily, but for now I have to manually run a script.
Novem's source tools
[edit]I will run an update script every few months that parses the two pages listed above, then imports the results into CiteHighlighter. In case I go inactive or something, here are links to the tools I use.
- User:Novem Linguae/Scripts/CiteHighlighter/SourcesJSON.js - The above two lists, combined and stripped down to just domain names.
- Table to bulleted list tool - For parsing tables on WikiProject reliable sources pages.
- NPPSG to array tool - I use this tool every time I update CiteHighlighter's list of sources. It has around 20 hard-coded source fixes, so if the output isn't matching the two above source lists, the code is probably changing a couple things.
TODO: These are currently manually updated by me running the NPPSG to array tool every couple months. This could be automated with a daily bot.
Tasks this tool can help with
[edit]- Article improvement - Glance at a reflist, hone in on the red sources, and try to replace or eliminate them.
- New page patrol / Articles for Creation - You can probably ignore red sources when evaluating if the article passes WP:GNG, and focus on evaluating the other sources.
Algorithm
[edit]CiteHighlighter looks solely at website domains. For example, if twitter.com is added to CiteHighlighter's dictionary, then it will look for links to "/twitter.com" and ".twitter.com", and then add an HTML class to them, and this class causes highlighting by changing the CSS background-color. CiteHighlighter does not look at any parameters of a citation such as publisher, ISSN, etc.
Config
[edit]Add these config settings TO THE VERY TOP of your common.js if you want to override the defaults.
Add this to top of common.js to activate | Description |
---|---|
window.citeHighlighterAlwaysHighlightSourceLists = true; | Used for testing. Highlights everything on source pages such as WP:RSP. Then you can make sure everything is getting highlighted correctly. |
window.citeHighlighterHighlightEverything = true; | Highlights all links on a page, not just in the references section. Careful, this may cause large pages to load slowly. |
window.citeHighlighterLighterColors = true; | Uses a lighter set of highlight colors. User requested. May make it easier to read highlighted citations. |
window.citeHighlighterUnreliableWord = '#ffb347'; | You can override any of the default colors with your own colors. These must be HTML color names (e.g. limegreen) or HTML color codes (e.g. #32CD32). Example color picker website. |
window.citeHighlighterPreprint = 'lightcoral'; | |
window.citeHighlighterDoi = 'transparent'; | |
window.citeHighlighterMedrs = 'limegreen'; | |
window.citeHighlighterGreen = 'lightgreen'; | |
window.citeHighlighterYellow = 'khaki'; | |
window.citeHighlighterRed = 'lightcoral'; |
Secondary sources
[edit]This user script highlights based on reliability. Reliability is whether or not Wikipedia trusts data and statements on that website to be accurate. This is different than secondary. WP:SECONDARY sources are needed for notability and for getting the WP:WEIGHT right. Be careful of this when writing and editing articles. You can have 20 green cites, and still have a non-notable article or an article with undue weight problems.
Notes
[edit]- ^ For journal articles to pass MEDRS, make sure they are secondary sources (review, systematic review, meta-analysis, guideline, practice guideline) and not primary sources (study, clinical trial, etc.)
- ^ For now, this is just 30 sources I hand picked. Examples include nasa.gov (astronomy articles), mlb.com (baseball), justia.com (law), and espncricinfo.com (cricket). Later, I plan to run a script to analyze all 1000ish featured articles, and it will assume sources that are used more than X times are reliable, which will greatly expand this list. The goal of this is to cover sources from niche corners of Wikipedia that aren't covered by RSP, RSN, and WikiProjects.
- ^ Preprints are assumed to be unreliable, since they are self-published. If there is a PubMed ID (PMID) number or a doi.org number, that means they got published, and the PMID/DOI takes priority for determining color.
# of users | Name | Description | S++ | US/L |
---|---|---|---|---|
440 | CiteHighlighter | Highlights 1,800 sources green, yellow, or red depending on reliability. Mainly pulls its data from WP:RSP, WP:NPPSG and WikiProject reliable sources lists. | x | x |
346 | GANReviewTool | Quickly and easily close good article nominations. Takes care of {{atop}}ing the discussion and changing the talk page templates. | x | x |
94 | DraftCleaner.js | Fix formatting of new articles. | x | x |
73 | UserHighlighterSimple | Highlights usernames based on permissions and edit count. User data updated daily by NovemBot. Highlights former admins. | x | x |
70 | VisualEditorEverywhere | Displays the Visual Editor "Edit" tab and "Edit" section link on pages that don't normally have them: templates, talk pages, Wikipedia namespace. | x | x |
64 | NPPLinks | Adds WP:BEFORE, copyvio check, duplicate article check, and other useful New Page Patrol links to the left menu. I like to mouse wheel click these links, which opens them in new tabs without losing focus on the current tab. Includes a professor h-index search. | x | x |
54 | VoteCounter.js | Display keep and delete counts in XFD discussions. Also display counts in talk page discussions. | x | |
52 | ReviewStatus | Displays whether or not a mainspace page is marked as reviewed | x | x |
48 | DetectSNG | Scans a list of 1,600 SNG keywords such as "National Football League" and, if found, displays them at the top of the article page, to help with determining SNG eligibility. | x | |
42 | SpeciesHelper | For species articles, tries to add the correct speciesbox, category, taxonbar, and stub template. | x | x |
40 | DetectPromo.js | If promotional words are detected, displays them in orange at the top of the article. | ||
39 | UserRightsDiff.js | When viewing Special:UserRights, easily see what perm was added or removed. | x | |
34 | DetectG4G5.js | If an unreviewed article was created by a blocked user, or has had an AFD, displays a warning, so you can investigate if it needs CSD G4 or G5. | ||
32 | WatchlistAFD.js | Automatically watchlist the AFD pages of your AFC accepts and NPP curations for 6 months, so you can see when stuff is AFD'd and you can calibrate your reviewing. By default, the patroller is not notified of AFD nominations, so this helps fix that. For user profiles, can also "Watchlist SPI" and "Watchlist RFA". | x | |
28 | anrfc-lister.js | Effortlessly submit RFCs to the RFC closing noticeboard, WP:ANRFC. | x | |
25 | UserTalkErasedSectionsDetector.js | Detect if a user is whitewashing their User Talk by deleting warnings | ||
24 | DontForgetG12.js | Puts a big orange "Copyvio check" button at the top of unreviewed drafts and articles | ||
15 | Links.js | Adds links to the left menu, including a user's common.js/global.js/vector.js, central auth, subpages, rename log, global lock log. Also adds pending changes. | ||
9 | CWWEditSummary.js | When copying within Wikipedia, makes it easier to leave an edit summary mentioning attribution | ||
9 | MarkFreeUseRationale.js | Add |image_has_rationale=yes to enwiki-hosted image files containing non-free licenses | ||
8 | TemplateTaxonomyAddCite | Create subpages of Template:Taxonomy more easily by clicking a button to add citation wikicode. | ||
6 | ShowAdminMessages.js | Reveal and highlight hidden messages for admins and other user groups. | ||
3 | BlockedUserHistory.js | In Special:History, when clicked, show only edits by blocked users | ||
1 | OldDiffColors.js | In Special:Diff, make additions light blue, not purple. In DiscussionTools, highlight new comments light blue, not teal. |
Less popular: CopyTitle.js, EditRequestReadFAQ.js, RequestedArticleSifter.js, SpecialNewPagesFeedBetaTestLink.js, User:Novem Linguae/Scripts/TopicSubscriptionsTab.js, User:Novem Linguae/Scripts/Vector2022NoWhitespace.js, User:Novem Linguae/Scripts/Vector2022NoFloatingTopBar.js
Deprecated (built into MediaWiki now): NotSoFast
Comfortable with GitHub? Submit bug reports and feature requests here