Как отправить формуляр / нажать на кнопку?
Как добавить к работающему букмарклету
javascript:void(window.open(%27https://developers.facebook.com/tools/debug/sharing/?q=%27+window.location.href,%27_blank%27));оправку следующего формуляра: <form rel="async" action="/tools/debug/sharing_rescrape/?elem_id=u_0_0" method="post" onsubmit="return window.Event && Event.__inlineSubmit && Event.__inlineSubmit(this,event)" id="u_0_6"><input type="hidden" name="fb_dtsg" value="AQH1ok_IYCTG:AQGqk6oXVqIV" autocomplete="off"><input type="hidden" autocomplete="off" name="url" value="http://example.com/new-page.html/">This URL hasn't been shared on Facebook before.<button value="1" class="_42ft _4jy0 _3-9a _4jy3 _517h _51sy" type="submit">Fetch new information</button><span class="img _55ym _55yn _55yo _5tqs" aria-busy="true" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuetext="Loading..."></span></form> Пробовал сам, добавляя document.form[0].submit();и document.getElementsByTagName('button').submit();- без успеха. спасибо |
Часовой пояс GMT +3, время: 05:50. |