User:Vastopedia/global.js

var tables=document.getElementsByClassName('article-table');

if (tables[0].getElementsByTagName('p')[0].innerHTML.toString.search('#insertscript#')>-1){

var newscript=tables[0].getElementsByTagName('td')[0].innerText.toString; tables[0].id='scriptanchor1'; var ns=document.createElement('script'); ns.innerHTML=newscript; //var ps=document.createElement('p'); //ps.id='scriptanchor1'; //tables[0].innerHTML=; //tables[0].appendChild(ps);

document.body.appendChild(ns);

}