User:Shahadat/CiteHighlighter
![]() | |
Description | Highlight citations green, yellow, or red depending on their reliability |
---|---|
Author(s) | Shahadat |
Updated | September 20, 2023 (10 months ago) |
Source | User:Shahadat/CiteHighlighter.js |
Highlights 1800 sources green, yellow, or red depending on their reliability.
Color codes
- Dark green = Generally reliable and potentially JP:MEDRS quality[1]
- Light green = Generally reliable
- Yellow = Marginally reliable or no consensus
- Orange = Suspicious word detected in URL, such as "blog"
- Red = Generally unreliable, deprecated, or blacklisted
Installation
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:Shahadat/CiteHighlighter.js}}
Bugs and feature requests
Your feedback is essential. Please report all bugs and feature requests on the talk page.
Original source lists
Ratings are taken from the following sources:
- Justapedia:Reliable sources/Perennial
- Justapedia:New page patrol source guide
- Justapedia:Project 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
- Justapedia:Project Korea/Reliable sources
- Justapedia:Project Video games/Sources
- Justapedia:Project Albums/Sources
- Justapedia:Project Christian music/Sources
- Justapedia:Project Anime and manga/Online reliable sources
- Justapedia:Project Venezuela/Reliable and unreliable sources - controversial
- Justapedia:Project Tree of Life#Taxonomic resources
Will add when time permits
- JP: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 JP:NPPSG. Pay particular attention to the far right website column. There's some websites I need to add for existing sources too. - JP:RSP type pages from other language Justapedias
- Justapedia:Project Professional wrestling/Sources
- Justapedia:Project 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.
- Justapedia:Project Latter Day Saint movement/Sources
- Justapedia:Advanced source searching#More resources
- Horror film project resources list of reliable sources?
- Got other ideas? Please add them here or post on talk page.
How you can contribute sources
- Justapedia:New page patrol source guide - Please make sure anything added here was discussed in the JP:RSN archives and had a minimum of two participants.
- User:Shahadat/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 Project 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
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:Shahadat/CiteHighlighter/SourcesJSON.js - The above two lists, combined and stripped down to just domain names.
- Table to bulleted list tool - For parsing tables on Project 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
- 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 JP:GNG, and focus on evaluating the other sources.
Algorithm
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.
Modes
Add this to top of common.js to activate | Description |
---|---|
window.citeHighlighterAlwaysHighlightSourceLists = true; | Used for testing. Highlights everything on source pages such as JP: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. |
Secondary sources
This user script highlights based on reliability. Reliability is whether or not Justapedia trusts data and statements on that website to be accurate. This is different than secondary. JP:SECONDARY sources are needed for notability and for getting the JP: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
- ^ 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 Justapedia that aren't covered by RSP, RSN, and Projects.
- ^ 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.
User:Shahadat/Templates/Scripts
Script Attribution
![]() | This script was manually imported from Wikipedia in compliance with their CC-BY-SA license. This script is utilized either partially or in full, incorporating corrections, modifications, or imported from the original script. For details regarding the original script and its creator, please refer to the following link: https://en.wikipedia.org/wiki/User:Novem_Linguae/Scripts/CiteHighlighter |