Retweet in one click

Makes retweets behave the same as likes

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name          Retweet in one click
// @description   Makes retweets behave the same as likes
// @author        Konf
// @namespace     https://greasyfork.org/users/424058
// @version       2.0.0
// @match         https://x.com/*
// @match         https://twitter.com/*
// @compatible    Chrome
// @compatible    Opera
// @compatible    Firefox
// @icon          https://t1.gstatic.com/faviconV2?client=SOCIAL&url=http://x.com&size=32
// @require       https://cdnjs.cloudflare.com/ajax/libs/arrive/2.4.1/arrive.min.js#sha512-wkU3qYWjenbM+t2cmvw2ADRRh4opbOYBjkhrPGHV7M6dcE/TR0oKpoDkWXfUs3HrulI2JFuTQyqPLRih1V54EQ==
// @run-at        document-start
// @grant         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()
    );
  }());
})();