Run Javascript when in forum

Discussion in 'Mac Apps and Mac App Store' started by guitarkidd94, Feb 21, 2009.

  1. guitarkidd94 macrumors newbie

    Joined:
    Feb 21, 2009
    #1
    ok. I'm new to macs and I am pulling a prank on a friend. I am trying to run a javascript function everything he submits a forum. I have written my javascript already but I have no idea where to start. Please Help
     
  2. r.j.s Moderator emeritus

    r.j.s

    Joined:
    Mar 7, 2007
    Location:
    Texas
    #2
    I think that would have to be coded into the submit function of the forum, and not something you would be able to control (unless you were an admin).
     
  3. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #3
    You could install Greasemonkey on his Firefox and set it up that way. Safari and Opera offer similar ways to introduce user JavaScript. Likely though you'll just end up breaking stuff so find a better prank.
     
  4. r.j.s Moderator emeritus

    r.j.s

    Joined:
    Mar 7, 2007
    Location:
    Texas
    #4
    Not sure how greasemonkey works, but wouldn't that run the js for every submit button?
     
  5. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #5
    It can be setup to run only on web pages you tell it to. You can setup the scripts to be global, domain specific, or page specific.
     

Share This Page