// ==UserScript== // @name Retweet in one click // @description Makes a retweets behaviour same as likes // @author Konf // @namespace https://greasyfork.org/users/424058 // @version 1.0.0 // @match https://twitter.com/* // @compatible Chrome // @compatible Opera // @compatible Firefox // @icon https://t1.gstatic.com/faviconV2?client=SOCIAL&url=http://twitter.com&size=32 // @require https://cdnjs.cloudflare.com/ajax/libs/arrive/2.4.1/arrive.min.js // @run-at document-start // @grant none // @downloadURL none // ==/UserScript== (function() { 'use strict'; (function main() { if (!document.documentElement) return setTimeout(main); document.arrive( 'div[data-testid="retweetConfirm"], div[data-testid="unretweetConfirm"]', { existing: true }, b => b.click() ); }()); })();