Jump to content

User:TheTVExpert/submitRMTR.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by TheTVExpert (talk | contribs) at 22:08, 25 August 2020. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
//Testing space
var cs1 = document.getElementsByClassName("cs1");
for (i=0; i<tfdl.length; i++){
	var para = document.createElement("P");
	para.innerHTML = "CS1";
	var span = document.getElementById(cs1[i].id);
	var block = document.getElementById(cs1[i].id).parentNode;	
	block.insertBefore(para, span.nextSibling);
}

var cs2 = document.getElementsByClassName("cs2");
for (i=0; i<tfdl.length; i++){
	var para = document.createElement("P");
	para.innerHTML = "CS2";
	var span = document.getElementById(cs2[i].id);
	var block = document.getElementById(cs2[i].id).parentNode;	
	block.insertBefore(para, span.nextSibling);
}