Discuz!论坛备注用户备注

原脚本仅支持mcbbs,现脚本支持所有Discuz!论坛。

目前為 2019-11-21 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name Discuz!论坛备注用户备注
  3. // @version 0.4
  4. // @include */forum*
  5. // @include */viewthread.php*
  6. // @include */thread*
  7. // @include */redirect.php*
  8. // @include */bbs/forum*
  9. // @include */bbs/viewthread.php*
  10. // @include */bbs/thread*
  11. // @include */bbs/redirect.php*
  12. // @author 原作者:xmdhs 修改:仙圣
  13. // @description 原脚本仅支持mcbbs,现脚本支持所有Discuz!论坛。
  14. // @namespace https://gf.qytechs.cn/users/76579
  15. // ==/UserScript==
  16. (function() {
  17. var setid = ["1","2"];//此处为用户的uid
  18. var note = ["这是备注","备注2"];
  19. var names = document.getElementsByClassName("xw1");
  20. for(var a=0; a<names.length; a++) {
  21. for(var n=0; n<setid.length; n++) {
  22. if (names[a].href == location.origin+"/home.php?mod=space&uid="+setid[n])
  23. {
  24. names[a].innerHTML += '<img src="https://i.loli.net/2019/11/09/Kjwi68ecyCmqaS2.png" class="vm" alt="备注" title="'+note[n]+'">';
  25. }
  26. }
  27. }
  28. }
  29. )();

QingJ © 2025

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