انتقل إلى المحتوى

مستخدم:ASammour/rev.js

من ويكيبيديا، الموسوعة الحرة

ملاحظة: بعد الحفظ، قد يلزمك إفراغ الكاش لرؤية التغييرات.

if((window.location.toString().indexOf("wpSearchFilter=100") != -1) ||(window.location.toString().indexOf("wpSearchFilter=102") != -1)||
(window.location.toString().indexOf("wpSearchFilter=90") != -1)){ 
        
        $('.plainlinks li').each(function(i){
		var elem = $(this);
        $.ajax({url: "https://ar.wikipedia.org/w/api.php?action=query&format=json&prop=flagged&titles="+$(this).find ("a:nth-child(4)").text()+"&utf8=1&formatversion=2", success: function(result){
	        if (JSON.stringify (result).includes ("pending_since")){
				elem.css ("background-color","#ffd34f"); // This is your rel value
			}
	    }});

		});

}