IP.Board - Hide Gender in Miniprofiles

Like it says on the tin.

  1. // ==UserScript==
  2. // @name IP.Board - Hide Gender in Miniprofiles
  3. // @namespace Makaze
  4. // @include *
  5. // @grant none
  6. // @version 1.0.2
  7. // @description Like it says on the tin.
  8. // ==/UserScript==
  9.  
  10. var i = 0,
  11. j = 0;
  12.  
  13. function clearProfile() {
  14. for (i = 0; i < document.getElementsByClassName('custom_fields').length; i++) {
  15. var thisf = document.getElementsByClassName('custom_fields')[i];
  16. for (j = 0; j < thisf.getElementsByTagName('li').length; j++) {
  17. if (thisf.getElementsByTagName('li')[j].innerHTML.match(/gender/gi)) {
  18. thisf.getElementsByTagName('li')[j].style.display = 'none';
  19. }
  20. }
  21. }
  22. }
  23.  
  24. if (document.body.id === 'ipboard_body') {
  25. clearProfile();
  26. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址