Page 3 of 5 FirstFirst 12345 LastLast
Results 31 to 45 of 74
  1. #31
    Ghost's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Under your bed, watching you sleep.
    Posts
    24,674
    Reputation
    3481
    Thanks
    3,603
    Quote Originally Posted by Mewtwo View Post




    Yeah, I agree
    Stfu terrorist



    My games;

    x

  2. #32
    Corndog's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    Salem, NH
    Posts
    10,139
    Reputation
    526
    Thanks
    2,906
    Quote Originally Posted by Ghost View Post
    Stfu terrorist
    Justin Bieber


    If:
    Sam = King Spam Faggot

    Then:
    Son = Prince Spam Faggot …?
    Last edited by Corndog; 12-30-2010 at 08:34 AM.

  3. #33
    Alen's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Location
    Liquid Generator
    Posts
    27,928
    Reputation
    2539
    Thanks
    4,220
    My Mood
    Fine
    Quote Originally Posted by ConnorCG View Post
    Justin Bieber

    If:
    Sam = King Spam Faggot

    Then:
    Son = Prince Spam Faggot …?
    Make the database available to the users, at least give us a page to make suggestions
    I'm Alen on Steam. RIP Skype Friday nights.

    I'm Navi's lover <span class="emoji-outer emoji-sizer"><span class="emoji-inner" style="background: url(chrome-extension://immhpnclomdloikkpcefncmfgjbkojmh/emoji-data/sheet_apple_64.png);background-position:2.5% 97.5%;background-size:4100%" title="hearts"></span></span>

    Messenger: Toxin about Dave | Paladin on Skyrim's AI | Dakota on JB | Royku leeching | Sjoerd's penis | Blitz's derpiness | Jason on Blitz
    Dave84311: God I've always wanted to eat crayons, with their vibrant colors. Only if they had taste.
    Mr. Lonely: @Alen I like making you wet, it makes me hard.


  4. #34
    Luke420's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    The Computer :/
    Posts
    6,711
    Reputation
    436
    Thanks
    803
    My Mood
    Cold
    lets all change are names everyday

  5. #35
    Corndog's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    Salem, NH
    Posts
    10,139
    Reputation
    526
    Thanks
    2,906
    Quote Originally Posted by View Post
    Make the database available to the users, at least give us a page to make suggestions
    Since it's modified code from another extension (I don't know JS), there are two parts: a list of arrays, and a list of statements. It says to pick a random number in one of the arrays when a string is matched, but there's only one string in each array, so that's the one it picks.

    Searches for strings:
    Code:
    var rand_num;
    
    var it = document.createNodeIterator(document.body, NodeFilter.SHOW_TEXT);
    for (var txt = it.nextNode(); txt !== null; txt = it.nextNode()) {
        if (txt.textContent.toLowerCase().indexOf("unabomber") != -1) {
            rand_num = Math.floor(Math.random() * Toxin.length);
            txt.textContent = txt.textContent.replace(/unabomber/i, Toxin[rand_num]);
        }
         if (txt.textContent.toLowerCase().indexOf("jack frost") != -1) {
            rand_num = Math.floor(Math.random() * Czar.length);
            txt.textContent = txt.textContent.replace(/jack frost/i, Czar[rand_num]);
        }
          if (txt.textContent.toLowerCase().indexOf("jussofresh") != -1) {
            rand_num = Math.floor(Math.random() * Obama.length);
            txt.textContent = txt.textContent.replace(/jussofresh/i, Obama[rand_num]);
        }
        if (txt.textContent.toLowerCase().indexOf("cokewatch") != -1) {
            rand_num = Math.floor(Math.random() * Coke.length);
            txt.textContent = txt.textContent.replace(/cokewatch/i, Coke[rand_num]);
        }
        if (txt.textContent.toLowerCase().indexOf("m2a") != -1) {
            rand_num = Math.floor(Math.random() * Moe.length);
            txt.textContent = txt.textContent.replace(/m2a/i, Moe[rand_num]);
        }
        if (txt.textContent.toLowerCase().indexOf("sam") != -1) {
            rand_num = Math.floor(Math.random() * Sam.length);
            txt.textContent = txt.textContent.replace(/sam/i, Sam[rand_num]);
        }
         if (txt.textContent.toLowerCase().indexOf("swiftdude") != -1) {
            rand_num = Math.floor(Math.random() * Swift.length);
            txt.textContent = txt.textContent.replace(/swiftdude/i, Swift[rand_num]);
        }
        if (txt.textContent.toLowerCase().indexOf("killjoy") != -1) {
            rand_num = Math.floor(Math.random() * Killian.length);
            txt.textContent = txt.textContent.replace(/killjoy/i, Killian[rand_num]);
        }
         if (txt.textContent.toLowerCase().indexOf("pope") != -1) {
            rand_num = Math.floor(Math.random() * Toy.length);
            txt.textContent = txt.textContent.replace(/pope/i, Toy[rand_num]);
        }
         if (txt.textContent.toLowerCase().indexOf("coeus") != -1) {
            rand_num = Math.floor(Math.random() * Coeus.length);
            txt.textContent = txt.textContent.replace(/coeus/i, Coeus[rand_num]);
        }
        if (txt.textContent.toLowerCase().indexOf("king spam faggote") != -1) {
            rand_num = Math.floor(Math.random() * Same.length);
            txt.textContent = txt.textContent.replace(/king spam faggote/i, Same[rand_num]);
        }
    }
    it.detach();Toxin
    it.detach();Czar
    it.detach();Obama
    it.detach();Coke
    it.detach();Sam
    it.detach();Moe
    it.detach();Swift
    it.detach();Coeus
    it.detach();Same

    All of the arrays:
    Code:
    var Toxin = [];
    var Czar = [];
    var Obama = [];
    var Coke = [];
    var Moe = [];
    var Sam = [];
    var Swift = [];
    var Killian = [];
    var Toy = [];
    var Coeus = [];
    var Same = [];
    Toxin.push('Toxin');
    Czar.push('Czar');
    Obama.push('Obama');
    Coke.push('Coke');
    Moe.push('Moe');
    Sam.push('King Spam Faggot');
    Swift.push('Swift');
    Killian.push('Killian');
    Toy.push('Toy');
    Coeus.push('m³');
    Same.push('same');


    Basic version: (if the extension is enabled, this list will look retarded to you).
    Code:
    Unabomber -> Toxin
    Jack Frost -> Czar
    Jussofresh -> Obama
    Cokewatch -> Coke
    M2A -> Moe
    Sam -> King Spam Faggot
    Swiftdude -> Swift
    Killjoy -> Killian
    Pope -> Toy
    Coeus -> m³
    King Spam Faggote -> same (fixes an error)
    Last edited by Corndog; 12-30-2010 at 08:46 AM.

  6. #36
    Alen's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Location
    Liquid Generator
    Posts
    27,928
    Reputation
    2539
    Thanks
    4,220
    My Mood
    Fine
    Oh, it's local. Aww snap. Wouldn't it be better to keep the database online?
    I'm Alen on Steam. RIP Skype Friday nights.

    I'm Navi's lover <span class="emoji-outer emoji-sizer"><span class="emoji-inner" style="background: url(chrome-extension://immhpnclomdloikkpcefncmfgjbkojmh/emoji-data/sheet_apple_64.png);background-position:2.5% 97.5%;background-size:4100%" title="hearts"></span></span>

    Messenger: Toxin about Dave | Paladin on Skyrim's AI | Dakota on JB | Royku leeching | Sjoerd's penis | Blitz's derpiness | Jason on Blitz
    Dave84311: God I've always wanted to eat crayons, with their vibrant colors. Only if they had taste.
    Mr. Lonely: @Alen I like making you wet, it makes me hard.


  7. #37
    Corndog's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    Salem, NH
    Posts
    10,139
    Reputation
    526
    Thanks
    2,906
    Quote Originally Posted by View Post
    Oh, it's local. Aww snap. Wouldn't it be better to keep the database online?
    Google Chrome will allows this, Safari will not. It requires the scripts to be built into the extension, but there;s probably a work around (using a local JS file to load the remote ones). This would make updating way easier, all I'd have to do is update two files on my server instead of updating four files, building two extensions, editing two update xml files, and uploading everything.

    I'm still new to this, so I am probably not doing it too efficiently, but it all works.

  8. #38
    David's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Guantanamo Bay
    Posts
    4,613
    Reputation
    405
    Thanks
    1,198
    My Mood
    Aggressive
    I was gonna ask for a chrome version, but thanks.

  9. #39
    N22's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Location
    On Earth :)
    Posts
    2,094
    Reputation
    132
    Thanks
    95
    My Mood
    Inspired
    This dude deserves +rep.

  10. #40
    Corndog's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    Salem, NH
    Posts
    10,139
    Reputation
    526
    Thanks
    2,906
    Quote Originally Posted by Zorph² View Post
    This dude deserves +rep.
    Not really. Anybody could make this, I was just the only person who decided to do it. It took barely any effort.

  11. #41
    Thaz's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    3,849
    Reputation
    111
    Thanks
    1,680
    You forgot me , my name was Tactical. now it's Fox.

    MEMBER SINCE:
    08-23-2010

  12. #42
    Corndog's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    Salem, NH
    Posts
    10,139
    Reputation
    526
    Thanks
    2,906
    Quote Originally Posted by Tactical View Post
    You forgot me , my name was Tactical. now it's Fox.
    I added you just now, but I'm gonna wait to update it.

  13. #43
    Liz's Avatar
    Join Date
    Feb 2009
    Gender
    female
    Location
    uʍop-ǝpısdn ǝɥʇ
    Posts
    32,794
    Reputation
    4300
    Thanks
    18,910
    My Mood
    Aggressive
    pretty cool, nice one C.


    Click Here to Become a MPGH Premium Member by Donating $25 or More.

    If anyone claims to be me via MSN/Skype/Email or any other source outside of MPGH private or visitor messages, IT'S NOT ME!
    They are trying to trick or scam you. Report them immediately and PM me here for verification.
    "Don’t confuse my personality with my attitude. My personality is who I am. My attitude depends on who you are." — Frank Ocean
    Moderator: 5/2009-10/2009 | GMod: 10/2009-10/2010 | Staff Administrator: 10/2010-Present
     
    Stupid/Pointless Private messages = SPAM, SPAM = BAN.

  14. #44
    -Statistic-'s Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    1,011
    Reputation
    37
    Thanks
    102
    Make an extension for IE.


  15. #45
    Alen's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Location
    Liquid Generator
    Posts
    27,928
    Reputation
    2539
    Thanks
    4,220
    My Mood
    Fine
    Quote Originally Posted by -Statistic- View Post
    Make an extension for IE.

    Possible since IE 5 I think
    I'm Alen on Steam. RIP Skype Friday nights.

    I'm Navi's lover <span class="emoji-outer emoji-sizer"><span class="emoji-inner" style="background: url(chrome-extension://immhpnclomdloikkpcefncmfgjbkojmh/emoji-data/sheet_apple_64.png);background-position:2.5% 97.5%;background-size:4100%" title="hearts"></span></span>

    Messenger: Toxin about Dave | Paladin on Skyrim's AI | Dakota on JB | Royku leeching | Sjoerd's penis | Blitz's derpiness | Jason on Blitz
    Dave84311: God I've always wanted to eat crayons, with their vibrant colors. Only if they had taste.
    Mr. Lonely: @Alen I like making you wet, it makes me hard.


Page 3 of 5 FirstFirst 12345 LastLast