User:DavidHOzAu/citefix/code.js

/* */ function MyCitation {  // iterate over all -elements for(var i=0; a = document.getElementsByTagName("sup")[i]; i++) { // if found a citation thag if(a.getAttribute("title")=="Needs citation" || a.getAttribute("class")=="uncited") { // 1) fix style -- a wider-scope fix can be found at the corresponding CSS page.        //a.style.verticalAlign = 'top'; // absolutely required for the image.         a.style.textDecoration = 'blink'; // another alternative

// 2) replace it with whatever I want. ** Note: Uncomment one of the following, or roll your own. **         // 2.1) Image //a.innerHTML = '  '; // 2.2) Shorter text        a.innerHTML = '[CITE]';      }   } } addOnloadHook(MyCitation); /* */