Guest User

Saigon's Kotalog ver 5

a guest
Nov 27th, 2019
236
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name Kotalog 4Chan
  3. // @version 5,2019.11.27
  4. // @match *://boards.4chan.org/*
  5. // @match *://boards.4channel.org/*
  6. // @match *://nineball.party/*
  7. // @match https://grimchan.xyz/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11.  
  12. function kotalog() {
  13.     var catalog = document.getElementsByTagName("A");
  14.     for (var i = 0; i < catalog.length; i++){
  15.         if (catalog[i].text == "Catalog"){
  16.             catalog[i].text = "Kotalog";
  17.             catalog[i].textContent = "Kotalog";  
  18.             catalog[i].outerHTML = catalog[i].outerHTML.slice(0,-11) + "Kotalog</a>";
  19.             catalog[i].outerText = "Kotalog";
  20.             catalog[i].innerHTML = "Kotalog";
  21.             catalog[i].innerText = "Kotalog";
  22.         }
  23.         if (catalog[i].text == "[Catalog]"){
  24.             catalog[i].text = "[Kotalog]";
  25.             catalog[i].textContent = "[Kotalog]";
  26.             catalog[i].outerHTML = catalog[i].outerHTML.slice(0,-12) + "Kotalog]</a>";
  27.             catalog[i].outerText = "[Kotalog]";
  28.             catalog[i].innerHTML = "[Kotalog]";
  29.             catalog[i].innerText = "[Kotalog]";
  30.         }
  31.     }
  32. }
  33.  
  34. kotalog();
RAW Paste Data