コピペ: Use the firefox console to scroll the page randomly (based on a screenshot)

useful if one wants to explore randomly a large visualized list

形式
Plain text
投稿日時
2021-11-23 02:45
公開期間
無期限
  1. // in case it is a semi-complicated page that tries to "hid" things (sometimes youtube does this), then do the following (too complicated pages need more investigation)
  2. // do a screenshot of the full page, or inspect the page and do a screenshot of the element (you will see that firefox will show you how large the element is in pixel, and thousands of pixels will do it).
  3. // open the firefox console
  4. :screenshot --fullpage
  5. //the open the screenshot
  6. var scrolltorandom = Math.floor(Math.random() * window.scrollMaxY);
  7. window.scroll({
  8. top: scrolltorandom,
  9. behavior: 'smooth'
  10. });
  11. //and this should help. Sure, it is based on a screenshot, thus one cannot easily select the text, but one can get to the same spot in the original page
ダウンロード 印刷用表示

このコピペの URL

JavaScript での埋め込み

iframe での埋め込み

元のテキスト