Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript Toggle Buttons

    I want to activate/switch all of the blue "Follow" toggle buttons on this page with out clicking each individual one of them. Is there a way I can do this?

    http://s1097.photobucket.com/profile...ring/following

    Thank You


  • #2
    Regular Coder Lerura's Avatar
    Join Date
    Aug 2005
    Location
    Denmark
    Posts
    946
    Thanks
    0
    Thanked 129 Times in 128 Posts
    Try saving:

    Code:
    javascript:Follow=document.getElementsByClassName('objectInfo');for (x=0;x<Follow.length;x++){Follow[x].getElementsByTagName('a')[0].click();}
    as a bookmark/favorite.

  • #3
    New to the CF scene
    Join Date
    Jun 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    How do i get this to work....doesn't seem to be working?

  • #4
    Regular Coder Lerura's Avatar
    Join Date
    Aug 2005
    Location
    Denmark
    Posts
    946
    Thanks
    0
    Thanked 129 Times in 128 Posts
    If following these instructions doesn't work, then just accept, that it can't be done.

    Save this in a html file:
    Code:
    <a href="javascript:Follow=document.getElementsByClassName('objectInfo');for (x=0;x<Follow.length;x++){Follow[x].getElementsByTagName('a')[0].click();}">Toggle Follows</a>
    and open the file in your browser.

    Right click the link to save it as favorite/bookmark.

    While on the photobucket page, click on the favorite/bookmark.

    Then all the Follow buttons should be clicked.
    Last edited by Lerura; 06-04-2012 at 05:21 PM.


  •  

    Posting Permissions

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