Jump to content

User:SD0001/UnassessedArticleLinks

From Wikipedia, the free encyclopedia
UnassessedArticleLinks
Author(s)SD0001
UpdatedJune 19, 2019
    (5 years ago)
SourceUser:SD0001/UnassessedArticleLinks.js

This is a script that makes churning down the backlog at Category:Unassessed biography articles and other such unassessed/unknown-importance article categories faster. As these WikiProject categories contain the talk pages (since WikiProject templates are placed on talk pages), assessing an article from such a category usually requires navigating from the talk page to the article first.

The script manipulates the links to talk pages by

  • making them point straight to the article
  • making them open in a new tab by default
  • not following the redirect if the target is a redirect
  • automatically starting Evad37's Rater on the article <<< You need to have that script installed for this to work

To install, add the following to your common.js page.

importScript('User:SD0001/UnassessedArticleLinks.js'); // [[User:SD0001/UnassessedArticleLinks.js]]


To get the above features while assessing articles from wmflabs summary tables, use a browser extension for setting up custom JavaScript on websites, like CJS for Chrome. Enter the following code in the extension's window, and save:

var trs = document.querySelectorAll('.wikitable tbody tr');
trs.forEach(function(tr,i) {
	if (i == 0) return true;
	var td = tr.childNodes[3];
	var a = td.childNodes[0];
	a.href = a.href.replace(/$/, '&redirect=no&autostartrater=y');
	a.target = '_blank';
});

See also

[edit]