v

    @@ -1,8 +1,8 @@ /* * @title ⤓ * @description dumb jump to bottom of page; [Ctrl +] End alternative - * @include http://* - * @include https://* + * @include http:* + * @include https:* * @license MIT License https://opensource.org/licenses/MIT * @javascript_url */ @@ -10,6 +10,12 @@ // via // https://hail2u.net/blog/coding/window-scrollto-infinity-infinity.html + +/* for mobile +javascript:window.scrollTo(0,Number.MAX_SAFE_INTEGER) +javascript:window.scrollTo(0,document.body.clientHeight) +*/ + // avoid Magic Number e.g. // 99999..., 10000... and 1e100... (() => { @@ -21,20 +27,14 @@ window.scrollTo(0, Number.MAX_SAFE_INTEGER || Infinity); // XXX `Infinity` is fallback/workaround for IE (might be fixed) c.f. // https://hail2u.net/blog/coding/window-scrollto-infinity-infinity.html + // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER // // You can use `Number.MAX_VALUE` BUT exponential; - // 'ts so hard to try decimalization before truncate c.f. + // so hard to try decimalization before truncate c.f. // https://stackoverflow.com/questions/18719775/parsing-and-converting-exponential-values-to-decimal-in-javascript - // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER // - // FIXME do not working on Firefox 58.0.2 Desktop; - // due to Infinite Scrolling Extensions? - // `Number.MAX_SAFE_INTEGER` works well on Firefox 58.0.2 mobile + // FIXME `Number.MAX_SAFE_INTEGER` methods do not working on Firefox 58.0.2 Desktop + // works well on Firefox 58.0.2 mobile //*/ })(); -/* for mobile -javascript:window.scrollTo(0,Number.MAX_SAFE_INTEGER) -javascript:window.scrollTo(0,document.body.clientHeight) -*/ -
  • /*
     * @title ⤓
     * @description dumb jump to bottom of page; [Ctrl +] End alternative
     * @include http:*
     * @include https:*
     * @license MIT License https://opensource.org/licenses/MIT
     * @javascript_url
     */
    
    // via
    // https://hail2u.net/blog/coding/window-scrollto-infinity-infinity.html
    
    
    /* for mobile
    javascript:window.scrollTo(0,Number.MAX_SAFE_INTEGER)
    javascript:window.scrollTo(0,document.body.clientHeight)
    */
    
    // avoid Magic Number e.g.
    // 99999..., 10000... and 1e100...
    (() => {
        'use strict';
    
        //*/ boring...
        window.scrollTo(0, document.body.clientHeight);
        /*/
        window.scrollTo(0, Number.MAX_SAFE_INTEGER || Infinity);
        // XXX `Infinity` is fallback/workaround for IE (might be fixed) c.f.
        //     https://hail2u.net/blog/coding/window-scrollto-infinity-infinity.html
        //     https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER
        //
        //     You can use `Number.MAX_VALUE` BUT exponential;
        //     so hard to try decimalization before truncate c.f.
        //     https://stackoverflow.com/questions/18719775/parsing-and-converting-exponential-values-to-decimal-in-javascript
        //
        // FIXME `Number.MAX_SAFE_INTEGER` methods do not working on Firefox 58.0.2 Desktop
        //       works well on Firefox 58.0.2 mobile
        //*/
    })();
    
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2018/02/16 14:53:52 - 2018-02-16
  2. 2018/02/16 09:41:42 - 2018-02-16
  3. 2018/02/16 09:17:27 - 2018-02-16
  4. 2018/02/16 09:06:23 - 2018-02-16
  5. 2018/02/16 08:02:47 - 2018-02-16
  6. 2018/02/16 07:09:58 - 2018-02-16
  7. 2018/02/16 06:15:13 - 2018-02-16
  8. 2018/02/16 05:45:31 - 2018-02-16
  9. 2018/02/16 04:45:57 - 2018-02-16