龙的天空论坛备注用户

仅支持旧版龙空,但大家可以修改为任何一个Discuz!论坛……备注名不建议太长,太长会显示不完全。

  1. // ==UserScript==
  2. // @name 龙的天空论坛备注用户
  3. // @version 0.7
  4. // @include http://www.lkong.net/forum*
  5. // @include http://www.lkong.net/viewthread.php*
  6. // @include http://www.lkong.net/thread*
  7. // @include http://www.lkong.net/redirect.php*
  8. // @author 仙圣
  9. // @description 仅支持旧版龙空,但大家可以修改为任何一个Discuz!论坛……备注名不建议太长,太长会显示不完全。
  10. // @namespace https://gf.qytechs.cn/users/76579
  11. // ==/UserScript==
  12. (function() {
  13. var setid = ["1","2"];//此处为用户的uid
  14. var note = ["这是备注","备注2"];
  15. var names = document.getElementsByClassName("xw1");
  16. for(var a=0; a<names.length; a++) {
  17. for(var n=0; n<setid.length; n++) {
  18. if (names[a].href == location.origin+"/home.php?mod=space&uid="+setid[n])
  19. {
  20. names[a].innerHTML += '<img src="https://i.loli.net/2019/11/09/Kjwi68ecyCmqaS2.png" class="vm" alt="备注" >'+note[n];
  21. }
  22. }
  23. }
  24.  
  25. document.addEventListener("DOMContentLoaded",go);
  26.  
  27. go();
  28. function go(){
  29. var x="div.pi{padding-left: 15px;height:30px;}";
  30. var y=document.createElement('style');
  31. y.innerHTML=x;
  32. document.getElementsByTagName('head')[0].appendChild(y);
  33. }
  34. }
  35. )();

QingJ © 2025

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