User:Chaotic Enby/GoodArticleStar.js

Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
var $star = $('#mw-indicator-good-star > div > span > a > img');
$star.attr('src', '//upload.wikimedia.org/wikipedia/commons/c/c9/Good_article_fractal_star.svg');
$star.attr('srcset', '//upload.wikimedia.org/wikipedia/commons/c/c9/Good_article_fractal_star.svg');

var $xga = $('#xtools_result > span > a:first');
if($xga.attr("title") == 'Assessment: GA')
{
	var $xstar = $('#xtools_result > span > a > img');
	$xstar.attr('src', '//upload.wikimedia.org/wikipedia/commons/c/c9/Good_article_fractal_star.svg');
	$xstar.attr('srcset', '//upload.wikimedia.org/wikipedia/commons/c/c9/Good_article_fractal_star.svg');
}
Retrieved from "https://en.wikipedia.org/w/index.php?title=User:Chaotic_Enby/GoodArticleStar.js&oldid=1214206549"