User:Awesome3000/rcfilter.js

// reload script http://mylegonetwork.wikia.com/index.php?title=User:Awesome3000/rcfilter.js&action=raw&ctype=text/javascript

var localApi = JsMwApi; function patrol(rcid, token) { $("tr#rcid" + rcid).remove; localApi({		action : "patrol",		token : unescape(token),		rcid : rcid	}, function (res) {	}); }; function load(rclimit) { localApi({		action : "query",		list : "recentchanges",		rctoken : "patrol",		rcshow : "!patrolled",		rclimit : rclimit,		rcdir : "newer",		rcprop : ["user", "title", "timestamp", "sizes", "ids"]	}, function (res) {		changes = res["query"]["recentchanges"]; //.reverse		switch(skin) {			case "oasis":	bodytag = $("#WikiaArticle"); break;			case "monobook":	bodytag = $("#bodyContent"); break;			default:	bodytag = $("body"); alert("Which skin are you using?"); break;		};		bodytag.html("");		bodytag.append("\				  User  Page Timestamp Patrol ");		for (edit in changes) {			if (edit%2 == 0) {rowst = "background-color: #E6EC69;"} else {rowst = ""};			$("#myrctable").append("\ " + changes[edit]["user"] + " \ " + changes[edit]["title"] + " \ " + changes[edit]["timestamp"] + " \  Patrol  \ ");		}		$("#myrctable").append("  ");		$("#loadrow").append(" Load ");		}	}); }; load(50)