Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1072525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:52:19+00:00 2026-05-16T20:52:19+00:00

I need a javascript bookmarklet that will click the Yes button on a facebook

  • 0

I need a javascript bookmarklet that will click the “Yes” button on a facebook page for farmville (or any similar facebook game). The page would say soemthing like “Would you like to accept this gift” and there are three buttons. YEs, Yes and send thank you gift and No. I want to select Yes via javascript.

Information related to the Yes button (pulled from chrome inspector)

<form action="" method="post" style="float: left; text-align: right; width: 30%;" id="app102452128776_form_4c96dd63e3ca077b35e0b"><input type="hidden" name="fb_sig_locale" value="en_US" /><input type="hidden" name="fb_sig_in_new_facebook" value="1" /><input type="hidden" name="fb_sig_time" value="1284955491.9298" /><input type="hidden" name="fb_sig_added" value="1" /><input type="hidden" name="fb_sig_profile_update_time" value="1279260928" /><input type="hidden" name="fb_sig_expires" value="1284962400" /><input type="hidden" name="fb_sig_user" value="100001318363956" /><input type="hidden" name="fb_sig_session_key" value="2.Oh1iDQtbxvGYg3vOpKpRVQ__.3600.1284962400-100001318363956" /><input type="hidden" name="fb_sig_ext_perms" value="email,user_birthday,user_location" /><input type="hidden" name="fb_sig_country" value="us" /><input type="hidden" name="fb_sig_api_key" value="80c6ec6628efd9a465dd223190a65bbc" /><input type="hidden" name="fb_sig_app_id" value="102452128776" /><input type="hidden" name="fb_sig" value="366919f0f771b5fb47303abcb5d6055f" /> 
                <input class="inputyessubmit" type="submit" name="acceptReward" value="Yes" /> 
            </form> 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:52:19+00:00Added an answer on May 16, 2026 at 8:52 pm

    Based on your snippet above, you’d take this


    javascript:(function(){ var b; b=document.getElemenstByName('acceptReward'); if(b.length>0) { b[0].click(); } })()

    and paste it into the address bar. This assumes the name acceptReward is unique to that element.

    edits: try this. fixed a typo and added some additional checking. that’s what I get for coding without intellisense.

    javascript:(function(){var b=document.getElementsByName('acceptReward');for(var j=0;j<b.length;j++){if(b[j].value.match(/^Yes$/i)){b[j].click();break;}}})()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a javascript bookmarklet which can click on a button. The thing is,
I'm making a bookmarklet for a website that will need to parse multiple pages.
How would one make a javascript bookmarklet that transmitted all the content of the
I need to recognize a long click in a JavaScript bookmarklet. So, I cannot
I need javascript regex that will match words that are NOT followed by space
I am trying to build a simple Bookmarklet that will load some external Javascript
i need a javascript function that able to check for digit and - only.
I need to use javascript to get the itemid of the current page in
I need 2 simple JavaScript functions that read and change the color of a
I am in need of a Javascript data structure which will allow me to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.