User:EstherLoer/distinguish title.js

// This script turns the name of the "File:" name space grey and adds a gap between it and the file name. // Not compatible with other title-modifying scripts like hide_path.js. var firstHeading = document.getElementById("firstHeading");

// to select all name spaces, use: RLCONF.wgNamespaceNumber > 0 if (RLCONF.wgNamespaceNumber == 6 && RLCONF.wgAction == "view") { // generate new title firstHeading.innerHTML = ' ' 	+ firstHeading.innerHTML.substring(0,firstHeading.innerHTML.search(":")+1) + ' '+firstHeading.innerHTML.substring(firstHeading.innerHTML.search(":")+1); }

//