Greasy Fork镜像 支持简体中文。

KDS

KDS utilities

  1. // ==UserScript==
  2. // @name KDS
  3. // @description KDS utilities
  4. // @namespace https://gf.qytechs.cn/users/11909
  5. // @include http://club.pchome.net/forum*
  6. // @include http://club.pchome.net/thread*
  7. // @version 2015.11.09.03
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. ;(function (window, document) {
  12. function showImage() {
  13. var imgs = document.querySelectorAll('.n3>a[rel]');
  14. var length = imgs.length;
  15. for (var i = 0; i < length; i++) {
  16. (function() {
  17. var img = imgs[i];
  18. img.parentNode.querySelector('img').onclick = function() {
  19. window.open(img.rel.replace('_128x128.', '.'));
  20. }
  21. }());
  22. }
  23. }
  24. function removeReply() {
  25. $('[id^=__Message]').each(function(){
  26. var current = $(this);
  27. if (/\bpm\b/.test(current.html().toLowerCase()))
  28. current.closest('div.item').remove();
  29. });
  30. }
  31. showImage();
  32. removeReply();
  33. }(window, document));

QingJ © 2025

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