Results 1 to 14 of 14
  1. #1
    Corndog's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    Salem, NH
    Posts
    10,139
    Reputation
    526
    Thanks
    2,906

    Trying to figure out some JavaScript code.

    So, MPGH takes external URLs and adds vhttps://www.mpgh.net/forum/leaving.php?url= to the beginning to them. I am trying to replace that with nothing, so that anything that is https://www.mpgh.net/forum/leaving.php?url=YourLinkHere.blah is transformed into YourLinkHere.blah.

    I have tried messing around with what little knowledge of JavaScript I have, and could not figure out how to do this. Anybody know?
    Last edited by Corndog; 08-21-2011 at 03:16 PM.

  2. #2
    Sync's Avatar
    Join Date
    Jul 2011
    Gender
    female
    Location
    Bat Gang
    Posts
    1,977
    Reputation
    239
    Thanks
    206
    My Mood
    Yeehaw
    Explain more please

  3. #3
    Corndog's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    Salem, NH
    Posts
    10,139
    Reputation
    526
    Thanks
    2,906
    If I post a link to, an external website, like RoosterTeeth.com, MPGH changes that link in my post into https://www.mpgh.net/forum/leaving.php?url=roosterteeth.com. I am trying to write some JavaScript Chrome/Safari plugin that removes the part of that that is not the URL I put into my post.

  4. #4
    .REZNEW's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    .REZ
    Posts
    411
    Reputation
    55
    Thanks
    59
    No need for more information, you can do this, Im just not sure if you can in javascript, I havent coded in javascript in a while though
    .REZ Backup

  5. #5
    Diminished's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Location
    Canada
    Posts
    4,683
    Reputation
    372
    Thanks
    1,102
    My Mood
    Tired
    Oh so you don't know where you're actually going?

  6. #6
    Sync's Avatar
    Join Date
    Jul 2011
    Gender
    female
    Location
    Bat Gang
    Posts
    1,977
    Reputation
    239
    Thanks
    206
    My Mood
    Yeehaw
    how it is changed? if so it Just deletes' the Url Box and put's new address erases the Mpgh.net and leaving.php stuff

  7. #7
    Wolf's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    666
    Posts
    12,422
    Reputation
    286
    Thanks
    1,156
    When you post/edit a post the server changes it, don't think it's possible

  8. #8
    Corndog's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    Salem, NH
    Posts
    10,139
    Reputation
    526
    Thanks
    2,906
    Quote Originally Posted by Diminished View Post
    Oh so you don't know where you're actually going?
    No, I am trying to bypass the "You are now leaving MPGH" page.

  9. #9
    Wolf's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    666
    Posts
    12,422
    Reputation
    286
    Thanks
    1,156
    Quote Originally Posted by Corndog View Post


    No, I am trying to bypass the "You are now leaving MPGH" page.
    oh as in when you click a link, or when you post one?

  10. #10
    Corndog's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    Salem, NH
    Posts
    10,139
    Reputation
    526
    Thanks
    2,906
    Quote Originally Posted by Wolf View Post
    When you post/edit a post the server changes it, don't think it's possible
    This would be a client-side change. Only I would see it, and it would be transforming the links on-load.

  11. #11
    Corndog's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    Salem, NH
    Posts
    10,139
    Reputation
    526
    Thanks
    2,906
    Nobody?
    Last edited by Corndog; 08-21-2011 at 04:33 PM.

  12. #12
    Wolf's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    666
    Posts
    12,422
    Reputation
    286
    Thanks
    1,156
    Quote Originally Posted by Corndog View Post
    Nobody? [IMG]www.connorcg.com/shortpost[/IMG]
    the invisible image fail.

  13. #13
    Corndog's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    Salem, NH
    Posts
    10,139
    Reputation
    526
    Thanks
    2,906
    Damn you and your quick quoting!

  14. #14
    Im Too Cool's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    For a Location
    Posts
    1,416
    Reputation
    22
    Thanks
    51
    javascript is too complicated for me. : /

Similar Threads

  1. Try out some guns
    By Coder[Vb10e] in forum CrossFire Discussions
    Replies: 34
    Last Post: 09-13-2011, 08:21 PM
  2. try out some ]Ma[G]iC[
    By bana in forum CrossFire Discussions
    Replies: 10
    Last Post: 01-12-2011, 02:04 PM
  3. Some HTML CODEING! For forums!
    By Ironelite35 in forum Debate Fort
    Replies: 12
    Last Post: 06-02-2009, 01:36 AM
  4. need help with some quick codes
    By ravinghippie in forum Anti-Cheat
    Replies: 1
    Last Post: 05-13-2009, 10:24 AM
  5. Help i cant figure out how to use public hack on combat arms
    By bkyourway in forum Suggestions, Requests & Help
    Replies: 2
    Last Post: 10-25-2008, 07:35 PM