Results 1 to 8 of 8
  1. #1
    Banned

    Join Date
    Mar 2016
    Country
    Posts
    303
    Thanked
    106
    Thanks
    262
    Really quick. Code is straight forward. Will leave it below.

    https://chrome.google.com/webstore/d...lchpmebcmmieii


    Code:
    class ZChat {
      constructor(tickRate, keywords) {
        this.tickRate = tickRate;
        this.keywords = keywords;
        this.style = 'style="height: 18px; width: 18px;"';
        this.kappa = 'https://freestylersworld.com/images/smilies/1.png';
      }
    
      scanSubstrs() {
        let daveZChat = document.getElementById('zchat');
        this.keywords.forEach((keyword) => {
          if (daveZChat.innerHTML.indexOf(keyword) > -1) {
            daveZChat.innerHTML = daveZChat.innerHTML
                .replace(keyword, `<img ${this.style} src="${this.kappa}">`);
          }
        });
      }
    
      ZChatLoop() {
        setInterval(() => {
          this.scanSubstrs();
        }, this.tickRate);
      }
    }
    
    Shoutbox = new ZChat(100, [':K', ':k', 'kappa', 'Kappa']);
    Shoutbox.ZChatLoop();
    Bugs
    • Text after a gets replaced. Will fix it when I'm done with more important stuff. ( Fixed, but Google needs to publish the changes. Takes about an hour )
    Last edited by Modal; 11-16-2016 at 11:14 PM.

  2. The following 6 users say thank you to Modal for this useful post:

    Bunny (11-16-2016), Eagle (11-17-2016), GeorgeGFX (11-16-2016), Ricky (11-17-2016), Stuwadie (11-16-2016), «Benjamin» (11-17-2016)

  3. #2
    GeorgeGFX's Avatar secret.club

    Join Date
    Nov 2010
    Country
    Posts
    15,459
    Thanked
    2,332
    Thanks
    5,080
    I would happily modify the code with more Twitch Emotes for those who wants, also will make it compatible for Firefox since not everyone of us use Chrome browser.

    >>> Credits to Sikk408 @ DevaintArt <<<

  4. The following user said thank you to GeorgeGFX for this useful post:

    Nogamenolife (11-17-2016)

  5. #3
    Banned

    Join Date
    Mar 2016
    Country
    Posts
    303
    Thanked
    106
    Thanks
    262
    Originally Posted by George View Post
    I would happily modify the code with more Twitch Emotes for those who wants, also will make it compatible for Firefox since not everyone of us use Chrome browser.
    >Firefox
    >2016

    WE DON'T LIVE IN A DYSTOPIA GEORGE.

  6. The following user said thank you to Modal for this useful post:

    Bunny (11-16-2016)

  7. #4
    GeorgeGFX's Avatar secret.club

    Join Date
    Nov 2010
    Country
    Posts
    15,459
    Thanked
    2,332
    Thanks
    5,080
    Originally Posted by Hexpresso View Post
    >Firefox
    >2016

    WE DON'T LIVE IN A DYSTOPIA GEORGE.
    When Photoshop eats 8 GB of your RAM while your PC has 8 GB itself, I cannot afford Chrome which eats like.. what.. 60% of your memory for every tab you open?
    When I get my new laptop with 16 GB of RAM, I'd gladly use Chrome and screw Firefox.

    >>> Credits to Sikk408 @ DevaintArt <<<

  8. #5
    Banned

    Join Date
    Mar 2016
    Country
    Posts
    303
    Thanked
    106
    Thanks
    262
    Originally Posted by George View Post
    When Photoshop eats 8 GB of your RAM while your PC has 8 GB itself, I cannot afford Chrome which eats like.. what.. 60% of your memory for every tab you open?
    When I get my new laptop with 16 GB of RAM, I'd gladly use Chrome and screw Firefox.
    You just have to configure it ._.

  9. #6
    Suggestion Gatekeeper

    Join Date
    Apr 2015
    Posts
    741
    Thanked
    96
    Thanks
    658
    nice

  10. #7
    SkyWodka's Avatar The ol' razzle dazzle

    Join Date
    Jul 2014
    Country
    Posts
    1,328
    Thanked
    206
    Thanks
    562
    Add Cool Story Bob Ross!

    coolstorybob : https://d262ilb51hltx0.cloudfront.ne...iHMy1bzBMQ.png
    Last edited by GeorgeGFX; 11-17-2016 at 11:14 AM. Reason: Preventing double post.

    sucked georges cock for it

  11. #8
    Eagle's Avatar damnvenom#1

    Join Date
    Aug 2014
    Country
    Posts
    2,409
    Thanked
    1,152
    Thanks
    577
    Good job

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)