Difference between revisions of "MediaWiki:Common.js"

From The PS/2 Project
Jump to: navigation, search
Line 1: Line 1:
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
$( "a.new" ).each(function( i ) {
 
$( "a.new" ).each(function( i ) {
var a_href = this.attr("href");
+
console.log(this);
if (a_href.indexOf("action=edit") >= 0){
 
this.css("color","#A34221");
 
}
 
 
});
 
});

Revision as of 18:29, 9 December 2017

/* Any JavaScript here will be loaded for all users on every page load. */
$( "a.new" ).each(function( i ) {
console.log(this);
});