Bitcointalk - Hide User Profile Icons

Hides all the icons under the user profile (Visit Website, DM, Visit Profile)

  1. // ==UserScript==
  2. // @name Bitcointalk - Hide User Profile Icons
  3. // @version 0.1
  4. // @description Hides all the icons under the user profile (Visit Website, DM, Visit Profile)
  5. // @author TryNinja
  6. // @match https://bitcointalk.org/index.php?topic=*
  7. // @icon https://www.google.com/s2/favicons?sz=64&domain=bitcointalk.org
  8. // @grant none
  9. // @namespace https://greasyfork.org/users/1070272
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. const dm = document.querySelectorAll("td.poster_info > div > a[href*='?action=pm;sa=send;u=']");
  16. const profile = document.querySelectorAll("td.poster_info > div > a[href*='?action=profile;u=']");
  17. const url = [...document.querySelectorAll("td.poster_info > div > a > img[src='https://bitcointalk.org/Themes/custom1/images/www_sm.gif'")].map(el => el.parentNode);
  18. const email = [...document.querySelectorAll("td.poster_info > div > a > img[src='https://bitcointalk.org/Themes/custom1/images/email_sm.gif'")].map(el => el.parentNode);
  19.  
  20. [...dm, ...profile, ...url, ...email].forEach(el => el.remove());
  21. })();