LoginSignup
0
0

More than 5 years have passed since last update.

はてな匿名ダイアリーのトラックバックを全部オープンするtampermonkey Script

Posted at

Tampermonkey というuserScript用

三角の下ボタンを全部押してるだけ。半手動だから許して

// ==UserScript==
// @name         増田のリンク全部オープン
// @match        http://anond.hatelabo.jp/*
// @grant        GM_registerMenuCommand
// ==/UserScript==
GM_registerMenuCommand("増田のリンク全部オープン",openAll);
function openAll(){
    var nodes=document.querySelectorAll("a[onclick^='toggleTBContent']");
    for(var i=0;i<nodes.length;i++){
        var onc=nodes[i].getAttribute("onclick");
        var match=onc.match(/toggleTBContent\('(.+?)'\)/);
        if(!match){
            continue;
        }
        var id=match[1];
        toggleTBContent(id);
    }
}

このスクリプトを登録して、増田を開いて、トラックバックが伸びてるエントリーだったらchrome拡張のボタンからこれをクリック

imgTemp-2016-05-26-20-03-07.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0