PaulMineau / PAUL MINEAU 5000

// ==UserScript==
// @author PaulMineau
// @collaborator JeremielMCassiel
// @name     PAUL MINEAU 5000
// @version  5000
// @grant    none
// @run-at document-end
// @description This script even does the laundry!
// @license MIT
// ==/UserScript==
var url="https://jediacademy.xyz/imgs/auburn_police/Paul%20Mineau%203.JPG";
var url2="https://jediacademy.xyz/imgs/auburn_police/Paul%20Mineau%204.JPG";
var url3="https://jediacademy.xyz/imgs/auburn_police/Paul%20Mineau%205.JPG";
var pm5000 = "CHIEF OF POLICE PAUL MINEAU 5000";

 var imgs = document.getElementsByTagName("img");
    var imgSrcs = [];

    for (var i = 0; i < imgs.length; i++) {
        if(imgs[i].title == "Bill Pierson")
        {
          imgs[i].src = url;
          imgs[i].style = "transform: rotate(90deg);width: 30%; margin-right: 10px; float: left;margin-top: 20px;margin-bottom: 20px;";
          imgs[i].alt = pm5000;
          
        }
      if(imgs[i].title == "Mark Caillier")
      {
        imgs[i].src = url2;
          imgs[i].style = "transform: rotate(90deg);width: 30%; margin-right: 10px; float: left;margin-top: 20px;margin-bottom: 20px;";
          imgs[i].alt = pm5000;
      }
      
    }

var h3s = document.getElementsByTagName("h3");

for(var i = 0; i<h3s.length; i++) {
 	if(h3s[i].innerText == "Chief of Police - Bill Pierson")
  {
   h3s[i].innerText = pm5000; 
  }
}

if(document.getElementById("pagetitle")) {
document.getElementById("pagetitle").innerText = "JediAcademy.xyz Instructors";

var menuLinks = document.getElementById("ctl00_ContentPlaceHolder1_ctl13_divContent").getElementsByTagName("div")[0].getElementsByTagName("div")[0].innerText = pm5000 + 
    
"As a Sergeant, " + pm5000 + " spent 2 years in patrol, 2 years in Investigations to include both Property Crimes and Major Crimes, and 2 years as the Inspectional Services Sergeant handling internal investigations and public information. In 2011, " + pm5000 + " was promoted to the rank of Commander and was assigned to the Patrol Division. As a Commander, " + pm5000 + " has handled administrative duties for K9, Peer Support, Field Training Officers, and SWAT. In September 2014, " + pm5000 + " rotated from his duties as a Patrol Commander over to Administrative Services where he manages Accreditation, the Training Unit, Community Programs and Volunteers. " + pm5000 + " earned a Bachelor's degree in Psychology from the University of Washington.";

}
  var anchors = document.getElementsByTagName("a");
for(var i = 0;i<anchors.length;i++)
{
 if(anchors[i].innerText.startsWith("Police"))
 {
  	anchors[i].title = "Clown Police";
   anchors[i].innerText = "Clown Police";
 }
   if(anchors[i].innerText.startsWith("Leadership Team"))
   {
      anchors[i].title = "Jedi Council";
      anchors[i].innerText = "Jedi Council";
   }
     if(anchors[i].innerText.startsWith("Animal Control"))
   {
      anchors[i].title = "Setting Animals Free";
      anchors[i].innerText = "Setting Animals Free";
   }
   if(anchors[i].innerText.startsWith("Business Trespass Program"))
   {
      anchors[i].title = "Sueing Businesses For Dummies";
      anchors[i].innerText = "Sueing Businesses For Dummies";
   }
  if(anchors[i].innerText.startsWith("Traffic School"))
  {
   		anchors[i].innerHTML = '<object type="text/html" data="https://jediacademy.xyz/media.html" width="800px" height="600px" style="overflow:auto;border:5px ridge blue"></object>';
  }
}

var divsForGB = document.getElementsByTagName("div");
for(var i = 0;i<divsForGB.length;i++)
{
  if(divsForGB[i].className == "contentcatwrapper")
  {
    var policeChiefImg = divsForGB[i].getElementsByTagName("img")[0];
   	policeChiefImg.src = url; 
    policeChiefImg.style = "transform: rotate(90deg);width: 30%; margin-right: 10px; float: left;margin-top: 20px;margin-bottom: 20px;";
    var strong = divsForGB[i].getElementsByTagName("strong")[0];
    strong.innerText = pm5000;
    break;
  }
}