subsonic-nowplaying

    @@ -4,6 +4,7 @@ * @include http://* * @license MIT License * @require + * @javascript_url */ (() => {
  • /*
     * @title subsonic-nowplaying
     * @description Subsonic の #nowplaying を生成してツイートする
     * @include http://*
     * @license MIT License
     * @require 
     * @javascript_url
     */
    
    (() => {
    const d = document.getElementById('playQueue').contentWindow.document;
    const sn = d.getElementById('songName').textContent;
    const ar = d.getElementById('artistName').textContent;
    window.open('https://twitter.com/intent/tweet?text='+encodeURI(`? ${sn} by ${ar}`) + '&hashtags=nowplaying', 
                'hoge', 'width=800, height=300, menubar=no, toolbar=no, scrollbars=yes');
    })();
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2019/07/07 14:49:57 - 2019-07-07
  2. 2017/03/07 15:01:02 - 2017-03-07