您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Get all tweets from a tweeter timeline in one go. A button is provided in the navigation bar. Click the button, get the tweets in the textbox. Copy tweets and save locally.
// ==UserScript== // @name Extract all tweets from Twitter // @name:ja Extract all tweets from Twitter // @namespace https://gf.qytechs.cn/ja/users/100769-atul-k // @description Get all tweets from a tweeter timeline in one go. A button is provided in the navigation bar. Click the button, get the tweets in the textbox. Copy tweets and save locally. // @description:ja Get all tweets from a tweeter timeline in one go. A button is provided in the navigation bar. Click the button, get the tweets in the textbox. Copy tweets and save locally. // @include https://twitter.com/* // @include https://twitter.com/* // @author atul k // @version 0.5.0 // @grant none // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js // @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="#" 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 (event) { event.stopPropagation(); var allTweets = $.map($('.tweet-text'), function(val) { return [$(val).text()]}) var bigString = "" allTweets.forEach(function(e, i) { bigString += e + "\n\n" }) //window.prompt("Copy to clipboard: Ctrl+C, Enter", bigString); if (confirm(bigString) == true) { x = "sdf" } else { x = "You pressed Cancel!"; } //alert(bigString); }); button.addEventListener('mouseenter',function(){ }); button.addEventListener('mouseleave',function(){ }); return button; }; var list = document.getElementById('global-actions'); list.appendChild(createButton()); }) ();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址