GREE Social Feedback

    @@ -6,26 +6,11 @@ * @require */ -function openShareWindow(url, width, height) { - var features = "location=no, menubar=no, toolbar=no, status=yes"; - if (width) { - if (screen.width > width) { - features += ", left=" + (screen.width - width) / 2; - } - else { - width = screen.width; - } - features += ", width=" + width; - } - if (height) { - if (screen.height > height) { - features += ", top=" + (screen.height - height) / 2; - } - else { - height = screen.height; - } - features += ", height=" + height; - } - window.open(url, 'greeShareWindow', features); -} -openShareWindow("http://gree.jp/?mode=share&act=write&url=" + encodeURIComponent(location.href), 585, 420); +function openShareWindow(url,width,height){var features="location=no, menubar=no, toolbar=no, status=yes";if(width){if(screen.width>width){features+=", left="+(screen.width-width)/2;} +else{width=screen.width;} +features+=", width="+width;} +if(height){if(screen.height>height){features+=", top="+(screen.height-height)/2;} +else{height=screen.height;} +features+=", height="+height;} +window.open(url,'greeShareWindow',features);} +openShareWindow("http://gree.jp/?mode=share&act=write&url="+encodeURIComponent(location.href),585,420);
  • /*
     * @title GREE Social Feedback
     * @description 見ているサイトをGREEのユーザー間で簡単に共有します
     * @include http://*
     * @license MIT License
     * @require 
     */
    
    function openShareWindow(url,width,height){var features="location=no, menubar=no, toolbar=no, status=yes";if(width){if(screen.width>width){features+=", left="+(screen.width-width)/2;}
    else{width=screen.width;}
    features+=", width="+width;}
    if(height){if(screen.height>height){features+=", top="+(screen.height-height)/2;}
    else{height=screen.height;}
    features+=", height="+height;}
    window.open(url,'greeShareWindow',features);}
    openShareWindow("http://gree.jp/?mode=share&act=write&url="+encodeURIComponent(location.href),585,420);
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2010/09/13 15:29:00 - 2010-09-13
  2. 2010/09/13 15:27:39 - 2010-09-13
  3. 2010/09/13 15:27:29 - 2010-09-13
  4. 2010/09/13 15:15:38 - 2010-09-13
  5. 2010/09/13 15:14:57 - 2010-09-13
  6. 2010/09/13 15:13:02 - 2010-09-13
  7. 2010/09/13 15:11:26 - 2010-09-13
  8. 2010/09/13 15:10:08 - 2010-09-13
  9. 2010/09/13 15:07:01 - 2010-09-13
  10. 2010/09/13 15:06:15 - 2010-09-13