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 ) {
console.log(this.href);
+
if (this.href.indexOf("action=edit") >= 0){
 +
this.style.color="#A34221";
 +
}
 
});
 
});

Latest revision as of 18:31, 9 December 2017

/* Any JavaScript here will be loaded for all users on every page load. */
$( "a.new" ).each(function( i ) {
if (this.href.indexOf("action=edit") >= 0){
this.style.color="#A34221";
}
});