Google Music nowplaying

    @@ -8,5 +8,5 @@ var t=document.getElementById("playerSongTitle").firstChild.innerHTML; var a=document.getElementById("player-artist").innerHTML; -var tweet=encodeURIComponent(t+' / '+a.replace(/&/g,"%26"))+' /*Google music nowplaying*/'; +var tweet=encodeURIComponent((t+' / '+a).replace(/&/g,"%26"))+' /*Google music nowplaying*/'; void(window.open('https://twitter.com/intent/tweet?text='+tweet+'&hashtags=NowPlaying'));
  • /*
     * @title Google Music nowplaying
     * @description Bookmarklet for tweet nowplaying song at Google Music.
     * @include http://*
     * @license MIT License
     * @require 
     */
    
    var t=document.getElementById("playerSongTitle").firstChild.innerHTML;
    var a=document.getElementById("player-artist").innerHTML;
    var tweet=encodeURIComponent((t+' / '+a).replace(/&/g,"%26"))+' /*Google music nowplaying*/';
    void(window.open('https://twitter.com/intent/tweet?text='+tweet+'&hashtags=NowPlaying'));
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2013/06/23 23:41:08 - 2013-06-23
  2. 2013/06/06 02:10:44 - 2013-06-06
  3. 2013/06/06 00:28:57 - 2013-06-06
  4. 2013/06/06 00:27:38 - 2013-06-06
  5. 2013/06/06 00:26:11 - 2013-06-06
  6. 2013/06/06 00:25:08 - 2013-06-06
  7. 2013/06/06 00:23:16 - 2013-06-06
  8. 2013/06/06 00:21:17 - 2013-06-06
  9. 2013/06/06 00:20:04 - 2013-06-06
  10. 2013/06/06 00:18:39 - 2013-06-06
  11. 2013/06/06 00:17:03 - 2013-06-06
  12. 2013/06/06 00:15:24 - 2013-06-06
  13. 2013/05/07 01:01:20 - 2013-05-07
  14. 2013/05/07 01:00:20 - 2013-05-07
  15. 2013/05/07 00:51:35 - 2013-05-07
  16. 2013/05/07 00:30:16 - 2013-05-07
  17. 2013/03/03 19:14:55 - 2013-03-03