Extract all tweets for Twitter

get all tweets from a page

Versión del día 07/02/2017. Echa un vistazo a la versión más reciente.

// ==UserScript==
// @name        Extract all tweets for Twitter
// @name:ja     Extract all tweets for Twitter
// @namespace   https://gf.zukizuki.org/ja/users/100769-atul-k
// @description get all tweets from a page
// @description:ja get all the text in one go
// @include     https://twitter.com/*
// @author      atul
// @version     0.0.1
// @grant       none
// @license     MIT License
// ==/UserScript==
(function () {  
  // ボタンの作成
  var createButton = function () {
    var button = document.createElement('li');
    button.setAttribute('class', 'dm-nav');
    button.innerHTML = 
       ' <a data-original-title="" role="button" href="#" class="js-tooltip js-dynamic-tooltip global-dm-nav" data-placement="bottom"> ' +
        '  <span class="Icon Icon--dm Icon--large"></span> ' +
        '  <span class="text">Get Tweets</span> ' +
        '  <span class="dm-new"><span class="count-inner"></span></span> '  +
        '</a>';
    button.addEventListener('click', function () {
      alert("you clicked");
    });
    button.addEventListener('mouseenter',function(){
      
    });
    button.addEventListener('mouseleave',function(){
      
    });
    return button;
  };
  
  // 新規に出現したtweetsに対してボタンを追加
    var list = document.getElementById('global-actions');
    list.appendChild(createButton());

}) ();