SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2007
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to make this code work !

    I have a certain code in javascript that allows users to send multiple messages to all our friends in a social networking site. To make the feature work, users should paste the below code into their address bar and a new page will pop up. Notice that the below link shows that the code is at 'http://userscripts.org/scripts/source/13669.user.js' ! But if i copy that code and try to paste in a page of my own site and then replace the link by the page in my site, even after pasting the code nothing happens.
    What should i do? Is it something related to greasemonkey?
    I dont know much abt it, but i hope ill learn what i should do from here .

    javascript:d=document;c=d.createElement('script');d.body.appendChild(c);c.src='http://userscripts.org/scripts/source/13669.user.js';void(0)

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,036
    Mentioned
    187 Post(s)
    Tagged
    2 Thread(s)

    code mod

    It could be several things depending on exactly what you're changing. The URL does go to a GreaseMonkey script. As it uses XMLHttpRequest it could be a "same domain policy" issue. The script GETs /Scrapbook.aspx, and /Compose.aspx, so these pages need to be avaible on the server the script is run at.

  3. #3
    SitePoint Enthusiast
    Join Date
    Dec 2007
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Yes you are right.

    Yes you are right. the URL directly goes to grease monkey.thats the problem that i can see in Orkut messages.when we lock that for strangers.they can access if grease monkey is available.but now orkut just updated that grease monkey wont work in that.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •