Better Buttons To Edit Anime/Manga Information

The script will remove the actual "Edit Anime/Manga Information" drop down menu, and will replace that with Better Buttons To edit the Anime/Manga information

// ==UserScript==
// @name         Better Buttons To Edit Anime/Manga Information
// @namespace    Better Buttons To Edit Anime Information
// @version      1.6
// @description  The script will remove the actual "Edit Anime/Manga Information" drop down menu, and will replace that with Better Buttons To edit the Anime/Manga information
// @author       hacker09
// @include      /^https:\/\/myanimelist\.net\/anime\/[\d]+(\/.*)?/
// @include      /^https:\/\/myanimelist\.net\/manga\/[\d]+(\/.*)?/
// @icon         https://www.google.com/s2/favicons?domain=myanimelist.net
// @grant        none
// @run-at       document-end
// ==/UserScript==
//The lines below are the beginning of the function
(function() {
  //Find and Select the default MAL edit button position
  var EditElem = document.querySelector('.header-right');
  var type,remove,sourceortype,airingdatesorpubdates,ratingorchapvol;
  EditElem.setAttribute("style", "display: inline-block;");
  window.location.pathname.split('/')[1] === 'anime' ? (type = 'aid', remove = 'anime', sourceortype = 'source', airingdatesorpubdates = 'airingdates', ratingorchapvol = 'rating') : (type = 'mid', remove = 'manga', sourceortype = 'type', airingdatesorpubdates = 'pubdates', ratingorchapvol = 'chapvol');

  //The line below removes the Edit Anime/Manga Information Button
  document.getElementsByClassName('js-'+remove+'-edit-info-button')[0].remove();
  //The line below creates an "a" element so the buttons will appear
  var DurationButton = document.createElement("a");
  var PictureButton = document.createElement("a");
  var SynopsisButton = document.createElement("a");
  var BackgroundButton = document.createElement("a");
  var AlternativeTitlesButton = document.createElement("a");
  var AiringDatesButton = document.createElement("a");
  var ProducersButton = document.createElement("a");
  var RelationsButton = document.createElement("a");
  var RatingButton = document.createElement("a");
  var SourceButton = document.createElement("a");
  var BroadCastButton = document.createElement("a");
  //The line below detects the anime id to be added on the mal dbchanges.php website
  var id = location.pathname.match(/\d+/)[0];
  //********************************************************************************************************************************************************************
  //The line below detects the mouse click, and open in the same tab the mal edit BroadCast page for that anime
  BroadCastButton.setAttribute("href", "https://myanimelist.net/dbchanges.php?aid="+id + "&t=broadcast");
  //The line below specifies that the link should be opened on the same tab
  BroadCastButton.setAttribute("target", "_self");
  //The line below detects a mouse hover on the button and show the text "Edit Anime BroadCast"
  BroadCastButton.setAttribute("title", "Edit Anime BroadCast");
  //The lines below are the CSS for the BroadCastButton if the entry is manga
  type === 'mid' ? BroadCastButton.setAttribute("style", "display: none !important;") :
  //The lines below are the CSS for the BroadCastButton
  BroadCastButton.setAttribute("style", "margin-left: 420px;height: 10px;width: 10px;background-size: cover;display: inline-block;transform: scale(1.8);vertical-align: top;margin-top: -10px;");
  //The line below Find and Select the default MAL edit button position and defines where the button should appear
  EditElem.parentElement.appendChild(BroadCastButton);
  //The lines below are the BroadCast Button image converted to DATA URI
  BroadCastButton.style.backgroundImage = "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAACr1BMVEX///8AAABEREBEREBDQz9sbGWBgXoFBQQCAgEBAQEBAQEBAQEBAQECAgEEBARbW1V3d3BEREBDQz90dG0TExICAgIBAQECAgIDAwMGBgYHBwcGBgYDAwMCAgICAgIQEA9/f3dnZ2EPDw4CAgIBAQEEBAQICAcDAwMCAgICAgIFBQQBAQECAgINDQxxcWpKSkYqKigCAgIBAQEHBwYDAwMBAQECAgECAgIDAwMICAgCAgEgIB5NTUn///8EBAQBAQEFBQUCAgIBAQEDAwMICAgEBAMDAwIDAwMBAQEDAwIGBgZKSkUkJCICAgICAgIFBQUEBAQBAQECAgECAgEBAQEDAwMCAgICAgEaGhhNTUiPj4cHBwcGBgYCAgICAgIDAwILCwoMDAsDAwMFBQUGBgW6uq8EBAMJCQkBAQEFBQQCAgICAgIKCgoCAgICAgIFBQQLCwoCAgEDAwMDAwMBAQECAgEDAwMBAQECAgEEBAQCAgEHBwYCAgIBAQEHBwYDAwMICAgDAwIEBAQKCgkCAgEEBAMNDQw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hXsygCW6e7pTe7sM87Nae9v150g3deZMnHSZLDMlKka09RCiqbHiM2YGTNrdm/DHOW58yA+nb/Aw33hIsbFvkt8FzNKOSx1WrYcGgYrVq5avYZh7br1jOvXrWXYoLFx0xRYiG621t3C4LlV2zxjmyfDlLbtO+BhLbhz127dPXtLHtfu3aO7b3+kIEJGUJDhwME9LUktew4eYIAIwGQOHS4/klfAWJB3pOLwIRQZhqPHjq8/wXBi/fFjJxmQZXauOaXhqZIxJ0PFU8N3zU4kGVutmdUup8+cPXPapXqmli1C5tz5bO3cC4XuF90LL+RqZ186B5e5fOXqNfHrNxj0GG5eF7929cotsAwovd2+k3v3HuOh+8z3DzE+eJj76DYowQEAuOK3H8m4cvQAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMDctMDFUMTU6MTk6MTgrMDA6MDCqNJS+AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTA3LTAxVDE1OjE5OjE4KzAwOjAw22ksAgAAAABJRU5ErkJggg==)";
  //********************************************************************************************************************************************************************
  //The line below detects the mouse click, and open in the same tab the mal edit Source page for that anime
  SourceButton.setAttribute("href", "https://myanimelist.net/dbchanges.php?"+type+"="+id + "&t="+sourceortype+"");
  //The line below specifies that the link should be opened on the same tab
  SourceButton.setAttribute("target", "_self");
  //The line below detects a mouse hover on the button and show the text "Edit Anime Source"
  type === 'aid' ? SourceButton.setAttribute("title", "Edit Anime Source") : SourceButton.setAttribute("title", "Edit Manga Type");
  //The lines below are the CSS for the SourceButton
  SourceButton.setAttribute("style", "margin-left: 335px;height: 10px;width: 10px;background-size: cover;display: inline-block;transform: scale(1.8);vertical-align: top;margin-top: -10px;");
  //The line below Find and Select the default MAL edit button position and defines where the button should appear
  EditElem.parentElement.appendChild(SourceButton);
  //The lines below are the Source Button image converted to DATA URI
  SourceButton.style.backgroundImage = "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAQAAABu4E3oAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwABEJAAARCQAYms0rgAAAAHdElNRQfkBwEDLBhjhgXgAAABfElEQVQ4y5XUMWgUQRTG8d9ekuVAIhZiwBTqNRamcmMRJKQTrKxEgukCamFpIVils7XTSCoJghItJAbbiNi4XSQIIXBF+nAHIsfpWUz2bi83Z86vmjff/HfeezszCRlULHrsikRZbZse2YO8O5kcIbe9cFrdr67TkbpowrYHdstQQM7YMuuJda0SUrXqJr5aLkPjYNplO1Yd6tcemLMWoEzeRVLjmlrljLOwk0GoYjTNeakWhv9G/pTG162o9moZpvfOmUBi2jU3XLIbQbJysO2zig6mfFQbZRc6foNDjeI3x2qpWXS2CPLQxaR3LmLIglfeuSUNiWbH7BhSMWbeujVXRe1hOmXJByu9FE9G4LyHZv4Hafvkji/Hp2NNDr3Z8cwbjUE7hjTUvfZcvWhzdiKyJbcfTnEesWNIU7P4vlGQ+LJBpKVtUupnNmxdalI7XPOAHPhh1r2+u98P3DXjm4Ojhg55YcqquqDhvrfk3Vo2pJF3rFDHd09thOAv1nBfTEFnlzcAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMDctMDFUMDM6NDQ6MTkrMDA6MDC1AIZTAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTA3LTAxVDAzOjQ0OjE5KzAwOjAwxF0+7wAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAAASUVORK5CYII=)";
  //********************************************************************************************************************************************************************
  //The line below detects the mouse click, and open in the same tab the mal edit Rating page for that anime
  RatingButton.setAttribute("href", "https://myanimelist.net/dbchanges.php?"+type+"="+id + "&t="+ratingorchapvol+"");
  //The line below specifies that the link should be opened on the same tab
  RatingButton.setAttribute("target", "_self");
  //The line below detects a mouse hover on the button and show the text "Edit Anime/Manga Rating"
  type === 'aid' ? RatingButton.setAttribute("title", "Edit Anime Rating") : RatingButton.setAttribute("title", "Edit Manga Chapters/Volumes");
  //The lines below are the CSS for the RatingButton
  RatingButton.setAttribute("style", "margin-left: 380px;height: 10px;width: 10px;background-size: cover;display: inline-block;transform: scale(1.8);vertical-align: top;margin-top: -10px;");
  //The line below Find and Select the default MAL edit button position and defines where the button should appear
  EditElem.parentElement.appendChild(RatingButton);
  //The lines below are the Rating Button image converted to DATA URI
  type === 'mid' ? RatingButton.style.backgroundImage = "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAQAAAAngNWGAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAHdElNRQfkCBkCDgYoBPw1AAACUUlEQVQoz3WSSUhUARyHv997b6ZxKCtwKhVxwqLQFqdJTaQiooKgS16iiAiCqGhHyiw6tCBWFHgoCILqEmHLLTq0EFohmkjYYoutk21SmGY67/07tJzqO3+X3yL+UoKP5Tv1FNBsrTykk5TrBxgG6Jc0HQ+DGHVahQCf96Tsmdqsjef2yb7+FmcSwHD2sUZ3iTKZTDwAAgbptjt2wIN8skgTRLxtWm+3gx16xxgSlKmYaUSJENc7810Yh8ugF16rPUSVqWIKEe120bq1iCjwMqgZalISnzKaVzpHiP3N9YNeXjOKOOKDnSfD6pUkTtcS1ZPPv+i3XYS11VY7Ll2zdeg/mm8ngnOagkPgDMaoZtI/NaOBI85yltFNl+cWk6CRdmZRwMg/vQJwK13jlrCDML30eDZCcKb1ZCJL05hLmaaSjcAeUOWMUq29sHsar2yPD3ynNHkznYpcT18PRlPATM0nh4P6pJOErU7LGM5oJXJ1USW8shYardF/EOoXA6FQROIoS9lOjnba4aFaTxMZaw3qVgVzNKROrgVN4Ud+j1ulSjuGq012Iaj3BjwyCXNDx/0xToJyzWOztvDEe818LtOuw9YR7OVzFHcsWkyRfeNjXotuDlzgCm/J0gxr4zT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8REKyvjN8siEyr4PXdtUXZSSZVWByy0WewYs4c0LghOmavboF2mqlFjtWeCTnPg4DAJeXcVBEUPXXS7ouyQLJE6j/47q0HQkfYsizU+/Bf/qPmXHxIt+v6J92upGLni1Yx1uv6KP7dBglg2xVPz5Rwfdgmc0PDz4SSSUVZGRklinrWW/rZmrruozRep2rLSd1aSUXLw8pOQAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIwLTA3LTAxVDE1OjM5OjM2KzAwOjAw4EJRXwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMC0wNy0wMVQxNTozOTozNiswMDowMJEf6eMAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC)";
  //********************************************************************************************************************************************************************
  //The line below detects the mouse click, and open in the same tab the mal edit Relations page for that anime
  RelationsButton.setAttribute("href", "https://myanimelist.net/dbchanges.php?"+type+"="+id + "&t=relations");
  //The line below specifies that the link should be opened on the same tab
  RelationsButton.setAttribute("target", "_self");
  //The line below detects a mouse hover on the button and show the text "Edit Anime/Manga Relations"
  type === 'aid' ? RelationsButton.setAttribute("title", "Edit Anime Relations") : RelationsButton.setAttribute("title", "Edit Manga Relations");
  //The lines below are the CSS for the RelationsButton
  RelationsButton.setAttribute("style", "margin-left:357px;height: 10px;width: 10px;background-size: cover;display: inline-block;transform: scale(1.8);vertical-align: top;margin-top: -10px;");
  //The line below Find and Select the default MAL edit button position and defines where the button should appear
  EditElem.parentElement.appendChild(RelationsButton);
  //The lines below are the Relations Button image converted to DATA URI
  RelationsButton.style.backgroundImage = "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAQAAABKfvVzAAABdUlEQVQ4y43TsWtTURTH8Y9RpBSH0iGEUkooGYuDQxGHIuLgXyAiIg5BShAn6V/gIP4VzkU6ijiE8oZOmYo4lFCcQinhEZxKeeQ45CW+vKQPz53uPd9z7u+ec+4tVbbipeeaxs58dei6ktbUlYl8Zb5pVOE13Rk8Xd+tVAX0hJEPNtV1pEKmXXXHfZ89me3aQuj6b1uVCcPaUucdawtqx8bL0LueOdQ3cO6L3YLnlRCSebzuqFDI8MdG7nnkQgjviviG0xy8MhLCtRbYMxTCiXv/8C09IYwc2Nbw0Ccv8uwT/NR2MfsETz0tvWoq5kyziP8UwqW9Ev54lr25KCbN8R0Hdq1p2JfmeKvYkG6OT7vaF67089wlMbxdEPN7buB+2JxXeSyEN4WTB45cGLl04rXVcm+HQrZwvK6lYengLA+40Wp+4XbeoklXP9qpCukIYahtXd17qdBbLmZa1uOFr5hUBbBVCkmKM3PTLR2JgYHEfnUB/gKeCq4ZXBx9egAAAABJRU5ErkJggg==)";
  //********************************************************************************************************************************************************************
  //The line below detects the mouse click, and open in the same tab the mal edit Producers page for that anime
  ProducersButton.setAttribute("href", "https://myanimelist.net/dbchanges.php?aid="+id + "&t=producers");
  //The line below specifies that the link should be opened on the same tab
  ProducersButton.setAttribute("target", "_self");
  //The line below detects a mouse hover on the button and show the text "Edit Anime Producers"
  ProducersButton.setAttribute("title", "Edit Anime Producers");
  //The lines below are the CSS for the ProducersButton if the entry is manga
  type === 'mid' ? ProducersButton.setAttribute("style", "display: none !important;") :
  //The lines below are the CSS for the ProducersButton
  ProducersButton.setAttribute("style", "margin-left: 400px;height: 10px;width: 10px;background-size: cover;display: inline-block;transform: scale(1.8);vertical-align: top;margin-top: -10px;");
  //The line below Find and Select the default MAL edit button position and defines where the button should appear
  EditElem.parentElement.appendChild(ProducersButton);
  //The lines below are the Producer Button image converted to DATA URI
  ProducersButton.style.backgroundImage = "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAACc1BMVEVAPEtSYBYfALA5LmBCP0ckBKBBPUo9N1SDxQA8NVY5LWIhAKo2J2s9NlUnBZv//wBPWh87MltLUiq9/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Li3f8xHgsoAj4X64AAAAAWJLR0TQDtbPnAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+QGHhcaL3wSVE8AAAIGSURBVCjPYxBBAFExcQlJKWkZWTkgR55BAQ4UlZRVzquqnVfX0ATyRJBktLTP6+jq6RsYqhkZo8iYmOqYmTNYMFpanbe2EUGWYbKVtFNSVFCwd3B0cjZBlmF2Oe/qJqKg4O7h6eXtA5UR8bXUVGTRU/XzZ1VQYJMJCAxShMhYBoeEhoVHREadj47RjI2LP59gCXGBZWKS2fnz5wOSU1LPp6VbZ5zPzMoGy4jE5pz3y9XNyz9fUHgeDIqKS8CmlZYZZpRXsHM4VJ6XrKqu0a6tO19f06AFlGlsOt8MdKwCZ8L5ltY2Lu4SjxwpqXZ3OQYFxY7znTxAGd6u892xQFeL8KV4ne/pDYbo6QPJJJzvnwAKi4mekyZLTpnKoDCtzNATaA//9BmSMwWAErM8z09pDz0/G+i2OXOhbps3XxEs0XN+QfL5hQwKlrGL1MCOXay9xN1ExvP80mUtQM5yhuzEFSvPr1q4es3aSQHr1ptnnN+wUTDh/KQVmxiWNJ933Dx9y5ytztsy1jY5ASW271CfpLxTlEF3124ZrT1aCiLuPnu1nc5Hbdy3Q/W88s5sEQYJyf1CIpB44M09371x3wHV8wd3guJnkvQW4UNgcDj4yPmj7jsgEkCZ8x3HjkPAifKTkkvDDM+HgyRAMqd6YEB9F9DtK5VPmyhAZJCA5Jmz58w3iUJSHwBiNuQdykKNXwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMC0wNi0zMFQyMzoyNjozOSswMDowMNAbFbAAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMDYtMzBUMjM6MjY6MzkrMDA6MDChRq0MAAAAAElFTkSuQmCC)";
  //********************************************************************************************************************************************************************
  //The line below detects the mouse click, and open in the same tab the mal edit Airing Dates page for that anime
  AiringDatesButton.setAttribute("href", "https://myanimelist.net/dbchanges.php?"+type+"="+id + "&t="+airingdatesorpubdates+"");
  //The line below specifies that the link should be opened on the same tab
  AiringDatesButton.setAttribute("target", "_self");
  //The line below detects a mouse hover on the button and show the text "Edit Anime Airing Dates"
  type === 'aid' ? AiringDatesButton.setAttribute("title", "Edit Anime Airing Dates") : AiringDatesButton.setAttribute("title", "Edit Manga Publising Dates");
  //The lines below are the CSS for the AiringDatesButton
  AiringDatesButton.setAttribute("style", "margin-left: 313px;height: 10px;width: 10px;background-size: cover;display: inline-block;transform: scale(1.8);vertical-align: top;margin-top: -10px;");
  //The line below Find and Select the default MAL edit button position and defines where the button should appear
  EditElem.parentElement.appendChild(AiringDatesButton);
  //The lines below are the Airing Dates Button image converted to DATA URI
  AiringDatesButton.style.backgroundImage = "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAACN1BMVEX///8AAABEREBCQj5DQz8FBQQBAQECAgKpqZ8DAwMBAQGvr6RWVlEPDw4BAQEAAAAAAAADAwMGBgUAAAAAAABAQD0TExIEBAQCAgIAAAACAgIBAQEFBQQBAQEAAAACAgIAAAABAQEAAAAAAAACAgJBQT0FBQUBAQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQEBAQEEBAQCAgICAgIBAQECAgIGBgYBAQEDAwMBAQEDAwMGBgYBAQEAAAADAwMBAQEEBAMEBAQBAQEBAQEbGxoBAQEAAAAHBwcBAQABAQEICAccHBoBAQEDAwICAgIBAQEBAQECAgIBAQEBAQECAgIAAAAAAAAAAAABAQEQEA8LCwoLCwoJCQkODg0DAwMBAQEEBAQlJSMBAQEBAQE2NjMEBAMBAQEAAAAAAAAZGRcBAQEBAQEEBAQhIR8BAQEsLCoBAQEDAwMvLy0BAQEFBQUnJyUyMi8FBQUXFxYBAQEBAQEBAQEBAQEAAAAAAAAAAAAZGRg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StXre5ew7h2XcZ0vlmFy0FuW+/FiAQ2bNy0eelMRq/1QBlbuU2z4GBLXNvWbdtnbZKzZWRgYahMd4eDHTt3caZGTUyvZAClEEY0sBtEQFMVVgAAReiTsLF9FU0AAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMDYtMzBUMjM6Mjk6NDArMDA6MDC+TQL3AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTA2LTMwVDIzOjI5OjQwKzAwOjAwzxC6SwAAAABJRU5ErkJggg==)";
  //********************************************************************************************************************************************************************  //The line below detects the mouse click, and open in the same tab the mal edit Alternative Titles page for that anime
  AlternativeTitlesButton.setAttribute("href", "https://myanimelist.net/dbchanges.php?"+type+"="+id + "&t=alternative_titles");
  //The line below specifies that the link should be opened on the same tab
  AlternativeTitlesButton.setAttribute("target", "_self");
  //The line below detects a mouse hover on the button and show the text "Edit Anime/Manga Alternative Titles"
  type === 'aid' ? AlternativeTitlesButton.setAttribute("title", "Edit Anime Alternative Titles") : AlternativeTitlesButton.setAttribute("title", "Edit Manga Alternative Titles");
  //The lines below are the CSS for the AlternativeTitlesButton
  AlternativeTitlesButton.setAttribute("style", "margin-left: 270px;height: 10px;width: 10px;background-size: cover;display: inline-block;transform: scale(1.8);vertical-align: top;margin-top: -10px;");
  //The line below Find and Select the default MAL edit button position and defines where the button should appear
  EditElem.parentElement.appendChild(AlternativeTitlesButton);
  //The lines below are the Alternative Titles Button image converted to DATA URI
  AlternativeTitlesButton.style.backgroundImage = "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAC6FBMVEVERED///8AAABEREBEREBEREBEREBEREBEREBFRUFFRUFNTUnExLl4eHFycmz///ZUVE92dm9iYl3S0sWJiYGUlIuxsadYWFOGhn5HR0NVVVBwcGr///CAgHmYmI9MTEgICAgCAgECAgIC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************************************************************************************************************************
  //The line below detects the mouse click, and open in the same tab the mal edit Background page for that anime
  BackgroundButton.setAttribute("href", "https://myanimelist.net/dbchanges.php?"+type+"="+id + "&t=background");
  //The line below specifies that the link should be opened on the same tab
  BackgroundButton.setAttribute("target", "_self");
  //The line below detects a mouse hover on the button and show the text "Edit Anime/Manga Background"
  type === 'aid' ? BackgroundButton.setAttribute("title", "Edit Anime Background") : BackgroundButton.setAttribute("title", "Edit Manga Background");
  //The lines below are the CSS for the BackgroundButton
  BackgroundButton.setAttribute("style", "margin-left: 290px;height: 10px;width: 10px;background-size: cover;display: inline-block;transform: scale(1.8);vertical-align: top;margin-top: -10px;");
  //The line below Find and Select the default MAL edit button position and defines where the button should appear
  EditElem.parentElement.appendChild(BackgroundButton);
  //The lines below are the Background Button image converted to DATA URI
  BackgroundButton.style.backgroundImage = "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAQAAABu4E3oAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAHdElNRQfkBh4XHRyMg6OeAAACXklEQVQ4y33TzWudRRgF8N985KZpamtNblREpKgLixtX4keXiuhGpbgQF1JxIeii7SK4UbBJV/4BLrvxo4VbBVdFRHShiFAXLhKuUAliEURMYq0k6cy4eN9cioTOwMMwcOacec55iDJ9DW61siDIQVYEQcXAY4aC2t/cXNdcVkVNzxAEA6dsuGFrj11963ZJIIuigilvWrbPeRdETdQ0SdVkJx02bV2QSYJg2mnXjW15d89/XLBqiCR0DANvec+XTvpHxCEHRHeYkc0bSJKmiaoWRckbzsj+8JzbNAec844HfO5lT7jkGAiSipRx0KsG1r2IDVcVV/zuX2Pr/jZ2XdVQEdWAoW/8ZlHRRL/YNKUpsqLJtiTnPeyYP7XOHtjwI057XBXRBDTRhiVXHXTEcR90wjoTYZ8HHVX+16tNd3vFk65ZtuOcGzC0amRKNGPBvDl3mjfXn++yZMfHFlVfmRWIFqy4KHddv6nCjDN2fOIlY2ue6qwM5qwYSaIoSKIgi9g/AfzsL89OHrJgxchAZAIImLU0ATQ/mRcRc48LqrprlqKZ9bZFIxedNe2KKKqiEFWFPoINQUFwYgIYeN1lsR+DErWeJ/U8XZZmHfe1z5w17TWXOkkoYuyHpnMnK72wI44aet/ACV8YGKiqJgpZVSfCSpciPCrZNvKR7wULHrJqUxSU3Deuab3vXf3B08Y2wX6n3GfJtqR0gWmae72g9DOYeuZ7RNFhz3vGhz4VlV1fDvlO23Pit2zb9qtlwz4RiSBIHnG/oHRaRfo8V8E1K9Z6dh1PF41br7TLIEv/ATQ25ADRIfEiAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIwLTA2LTMwVDIzOjI5OjI0KzAwOjAwjG0vYwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMC0wNi0zMFQyMzoyOToyNCswMDowMP0wl98AAAAASUVORK5CYII=)";
  //********************************************************************************************************************************************************************
  //The line below detects the mouse click, and open in the same tab the mal edit Synopsis page for that anime
  SynopsisButton.setAttribute("href", "https://myanimelist.net/dbchanges.php?"+type+"="+id + "&t=synopsis");
  //The line below specifies that the link should be opened on the same tab
  SynopsisButton.setAttribute("target", "_self");
  //The line below detects a mouse hover on the button and show the text "Edit Anime/Manga Synopsis"
  type === 'aid' ? SynopsisButton.setAttribute("title", "Edit Anime Synopsis") : SynopsisButton.setAttribute("title", "Edit Manga Synopsis");
  //The lines below are the CSS for the SynopsisButton
  SynopsisButton.setAttribute("style", "margin-left: 250px;height: 10px;width: 10px;background-size: cover;display: inline-block;transform: scale(1.8);vertical-align: top;margin-top: -10px;");
  //The line below Find and Select the default MAL edit button position and defines where the button should appear
  EditElem.parentElement.appendChild(SynopsisButton);
  //The lines below are the Synopsis Button image converted to DATA URI
  SynopsisButton.style.backgroundImage = "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAQAAABu4E3oAAAABGdBTUEAALGPC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MDA6MDC1AwtUAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTA2LTMwVDIzOjMyOjI0KzAwOjAwxF6z6AAAAABJRU5ErkJggg==)";
  //********************************************************************************************************************************************************************
  //The line below detects the mouse click, and open in the same tab the mal edit picture page for that anime
  PictureButton.setAttribute("href", "https://myanimelist.net/dbchanges.php?"+type+"="+id + "&t=pic");
  PictureButton.addEventListener('contextmenu', function() {
   window.open("https://myanimelist.net/dbchanges.php?"+type+"="+id + "&t=pic");
}, false);
  //The line below specifies that the link should be opened on the same tab
  PictureButton.setAttribute("target", "_self");
  //The line below detects a mouse hover on the button and show the text "Edit Anime/Manga Picture"
  type === 'aid' ? PictureButton.setAttribute("title", "Edit Anime Picture") : PictureButton.setAttribute("title", "Edit Manga Picture");
  //The lines below are the CSS for the PictureButton
  PictureButton.setAttribute("style", "margin-left: 228px;height: 10px;width: 10px;background-size: cover;display: inline-block;transform: scale(1.8);vertical-align: top;margin-top: -10px;");
  //The line below Find and Select the default MAL edit button position and defines where the button should appear
  EditElem.parentElement.appendChild(PictureButton);
  //The lines below are the Picture button image converted to DATA URI
  PictureButton.style.backgroundImage = "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAACYVBMVEUAAABEREBEREBEREBFRUFZXFVna2JmamFhZFxISENGRkJHR0NJSkUnJCQmIyMnIyQzMC9VV1FiZl02NDIxLi1YW1RKS0Y3NjQkICEkICEkICEkICEkICEqJydUVlBgZFwlIiIkICEkICEkISFDQj9ISERXWlMkICEkICEmIiMrKCcqJycoJCUkICEkICE3NTNISUSwvagkICEkICElISIkICEnIyM7OjgkICEkICEmIiNLTEdMTUd+hXgpJiYkICElISJPUUs7OjdobWOtuqYmIiMkICEkICEkICEkICEkICEkICG+zbdSVE4lISIkICEkICEkICElISIkICEkICElISIlISI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qKOxqbMrv7unN7iPn18imLdHKb8fKFPYMcE0uGfipDQlkQmTGdjYGCZP6VRKYwDKVE6dNl12BjPDzFmz5/TMZWae1zMnYdZMsIzs/AULmZkZHGqEA0wYgAyTgEU1DhAZG1AATlwspZ21ZCkDw7Lludoai1cgZFYKz1q1ek1AVlbAmtWrZgk7ImSY166zT9QvXb++VH+D/ca1bUgyzJs220tM37Jlq4T95m3MNkCZ7VN3sIAB106rXRrBwRq7rHZzseyYWsmwJ23vtH0QwL1fZ906nf3c+/ZNO5B2kKHa/pAnHCgePqwIZhzSOMJw9NjxE5jg+LGTAD6xqcDTe2zZAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIwLTA3LTAxVDA0OjAzOjA2KzAwOjAwoJSYhwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMC0wNy0wMVQwNDowMzowNiswMDowMNHJIDsAAAAASUVORK5CYII=)";
  //********************************************************************************************************************************************************************
  //The line below detects the mouse click, and open in the same tab the mal edit duration page for that anime
  DurationButton.setAttribute("href", "https://myanimelist.net/dbchanges.php?aid="+id + "&t=duration");
  DurationButton.addEventListener('contextmenu', function() {
   window.open("https://myanimelist.net/dbchanges.php?aid="+id + "&t=duration");
}, false);
  //The line below specifies that the link should be opened on the same tab
  DurationButton.setAttribute("target", "_self");
  //The line below detects a mouse hover on the button and show the text "Edit Anime Duration"
  DurationButton.setAttribute("title", "Edit Anime Duration");
  //The lines below are the CSS for the DurationButton if the entry is manga
  type === 'mid' ? DurationButton.setAttribute("style", "display: none !important;") :
  //The lines below are the CSS for the DurationButton
  DurationButton.setAttribute("style", "margin-left: 205px;height: 10px;width: 10px;background-size: cover;display: inline-block;transform: scale(1.8);vertical-align: top;margin-top: -9px;");
  //The line below Find and Select the default MAL edit button position and defines where the button should appear
  EditElem.parentElement.appendChild(DurationButton);
  //The lines below are the duration button image converted to DATA URI
  DurationButton.style.backgroundImage = "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAQAA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