q1404713359

    @@ -1,8 +1,8 @@ /* * @title q1404713359 * @description q1404713359 over the mixedcontent (and CSP) - * @include http://* - * @include https://* + * @include https://twitter.com/* + * @include https://*.facebook.com/* * @contributor a-kuma3 http://let.hatelabo.jp/a-kuma3/let/hLHV4fn3yp8e * @license MIT License * @javascript_url
  • /*
     * @title q1404713359
     * @description q1404713359 over the mixedcontent (and CSP)
     * @include https://twitter.com/*
     * @include https://*.facebook.com/*
     * @contributor a-kuma3 http://let.hatelabo.jp/a-kuma3/let/hLHV4fn3yp8e
     * @license MIT License
     * @javascript_url
     */
    
    // http://q.hatena.ne.jp/1404713359
    (function () {
        var lc = location.hostname;
    
        if (lc.match('www.facebook.com')) {
            var list = document.getElementsByTagName("abbr");
            for (var i = 0 ; i < list.length ; ++i) {
                var e = list[i];
                e.textContent = e.title;
            }
        } else if (lc.match('twitter.com')) {
            Array.prototype.forEach.call(document.querySelectorAll("span.js-short-timestamp"), function (e) {
                var title = e.parentNode.title || e.parentNode.getAttribute("data-original-title");
                title = title.replace(/(.*) - (.*)/, "$2 $1");
                e.textContent = title;
            });
        }
    })();
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2014/07/08 01:43:03 - 2014-07-08
  2. 2014/07/08 01:30:01 - 2014-07-08
  3. 2014/07/08 01:26:40 - 2014-07-08
  4. 2014/07/08 01:25:40 - 2014-07-08