【Google検索結果】1ページあたりの表示件数を設定。

    @@ -6,7 +6,7 @@ (function(){ if(location.href.match(/https:\/\/www.google/)){ var nn = prompt("Googleの検索結果: 1ページあたりの表示件数を設定します。","7"); - var query = location.search.replace('?',''); + var query = location.search.slice(1); var param = query.split('&'); //keyword
  • /*
     * @title 【Google検索結果】1ページあたりの表示件数を設定。
     * @description 1から100までの値を入力してください。
     * @license MIT License
    */
    (function(){
        if(location.href.match(/https:\/\/www.google/)){
            var nn = prompt("Googleの検索結果: 1ページあたりの表示件数を設定します。","7");
            var query = location.search.slice(1);
            var param = query.split('&');
    
            //keyword
            function isq(e) {
                return e.match(/^q=/);
            }
            var kw = param.filter(isq);
    
            if(kw.length>0 && nn>0){
                location.href = 'https://www.google.com/search?' + kw[0] + '&num=' + nn;
            }
        }
    })();
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2018/03/09 18:14:12 - 2018-03-09
  2. 2018/03/08 21:42:21 - 2018-03-08
  3. 2018/03/07 19:33:53 - 2018-03-07