[遊↑]

    @@ -7,7 +7,8 @@ */ (function() { - var q = window.getSelection().toString(); + var q = typeof(window.getSelection) == 'undefined' ? + document.selection.createRange().text : window.getSelection().toString(); if (!q) { q = window.prompt("play:gameボードゲームデータベースを検索"); } if (q) { q = EscapeSJIS(q);
  • /*
     * @title [遊↑]
     * @description 選択中の文字列で play:game db を検索します。play:game db はボードゲーム、カードゲームの情報サイトです。
     * @include http://*
     * @license MIT License
     * @require http://hosting.gmodules.com/ig/gadgets/file/115338199874488911315/ecl.js
     */
    
    (function() {
      var q = typeof(window.getSelection) == 'undefined' ?
         document.selection.createRange().text : window.getSelection().toString();
      if (!q) { q = window.prompt("play:gameボードゲームデータベースを検索"); }
      if (q) {
        q = EscapeSJIS(q);
        q = 'http://www.gamers-jp.com/playgame/db_searchlist.php?'
              + 'search_str=' + q + '&mode=1&order=1';
      }
      else if ( q != null) {
        q = 'http://www.gamers-jp.com/playgame/db_newsa.php';
      }
      else {
        return false;
      }
    
      var w = window.open(q).document;
    
      return true;
    })();
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2010/07/27 10:20:25 - 2010-07-27
  2. 2010/07/20 14:03:56 - 2010-07-20
  3. 2010/07/01 16:12:01 - 2010-07-01
  4. 2010/07/01 15:54:12 - 2010-07-01