MediaWiki:Gadget-ATTsite.js

/* ATT Site JS by GethN7 */

/* Change "View History" to "History" */

$(function {   var tab = document.getElementById('ca-history');    if(!tab) return;    var tablink = tab.getElementsByTagName('a')[0]    if(!tablink) return;    tablink.firstChild.nodeValue = 'History';    if( skin == "monobook" ) {      tablink.style.paddingLeft = ".4em";      tablink.style.paddingRight = ".4em";    } });

/* Change "Discussion" to "Talk" */

$(function {   var tab = document.getElementById('ca-talk');    if(!tab) return;    var tablink = tab.getElementsByTagName('a')[0]    if(!tablink) return;    tablink.firstChild.nodeValue = 'Talk';    if( skin == "monobook" ) {      tablink.style.paddingLeft = ".4em";      tablink.style.paddingRight = ".4em";    } });

/* Change "Add section" to "+" */

$(function {   var tab = document.getElementById('ca-addsection');    if(!tab) return;    var tablink = tab.getElementsByTagName('a')[0]    if(!tablink) return;    tablink.firstChild.nodeValue = '+';    if( skin == "monobook" ) {      tablink.style.paddingLeft = ".4em";      tablink.style.paddingRight = ".4em";    } });