Greasy Fork is available in English.

x-twitter-add-to-list-button

1-click "add user to [xyz] list" button next to usernames while scrolling your x (twitter) feed (be sure to edit the variable "lists")

Ceci est la version du script où le code a été mise à jour. Présenter toutes les versions.

  • v0.2.2 2024-05-25

    This update should fix the bug where the list name is not found due to timing issue more effectively by waiting long enough for the elements to be fully loaded and ensuring that the list spans are properly checked before triggering any alerts.

    1. Retry Mechanism with Maximum Attempts: Added a maxRetries variable to limit the number of retries, preventing infinite loops.
    2. Element Query Improvements: Ensured that the retryUntilSuccess function correctly finds the element based on the provided selector and innerText.
    3. Error Handling: Added error handling to log a message to the console if the maximum number of retries is reached without finding the desired element.
    4. Non-blocking Notification: Added a createNotification function to display non-blocking messages at the bottom-right corner of the screen. These notifications disappear after 5 seconds.
    5. Removed Alert: Replaced the alert with a call to createNotification in case the list name is not found, allowing the script to continue retrying.

  • v0.2.1 2024-05-23

    Updated the "more" selector to be more specific because it was conflicting with other "more" button like when the DM pop ups are open.

  • v0.2.0 2024-05-23

    1. Fixed bug due to changes to the html elements i was relying on for clicking "more" button and subsequently the "add_member" href.
    2. Removed automatic click "Save" button.
    Justification:
    a. I personally find myself double checking if the user was added to the list. I'm trading off the reliability of successfully adding a user to a list for the relatively easy task of clicking "Save" and closing a tab.

    b. Also, when the user is already added to my list, the old way automatically just closed the tab, so I never knew if I had already added them or newly added them. The new way allows me to see that the user was already added to the list (the target list is checked off and "Save" is disabled)

    c. I think the bulk of difficulty is clicking into the profile > finding in the dropdown the option for "add/remove {user} to list" > searching for the target list and selecting it. I think automating these already provide enough ease.

  • v0.1.0 2024-02-04
  • v0.1.0 2024-02-04