xcancel hide twitter blue

hides blue checks on xcancel

  1. // ==UserScript==
  2. // @name xcancel hide twitter blue
  3. // @namespace http://tampermonkey.net/
  4. // @version 2025-01-23
  5. // @description hides blue checks on xcancel
  6. // @author You
  7. // @match https://xcancel.com/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=xcancel.com
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. // Setting esversion to 11 to use optional chaining.
  14. /* jshint esversion: 11 */
  15.  
  16. (function() {
  17. 'use strict';
  18. //remove blue check replies
  19. document.querySelectorAll('.icon-ok.verified-icon.blue').forEach((e) => {
  20. e.closest('.reply.thread.thread-line')?.remove();
  21. })
  22. //if there are no replies in the current batch, click load more
  23. if(document.querySelectorAll('.reply.thread.thread-line').length == 0 && window.location.href.includes('status')){
  24. document.querySelectorAll('.show-more a')[document.querySelectorAll('.show-more a').length - 1].click();
  25. }
  26. })();