Get Online Users By ACL

Get list of users from Community page by ACL

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.gf.qytechs.cn/scripts/19628/659177/Get%20Online%20Users%20By%20ACL.js

  1. /*
  2. * name Get Online Users By ACL
  3. * namespace pxgamer
  4. * version 0.5.1
  5. * description Get list of users from Community page by ACL
  6. * author pxgamer
  7. */
  8.  
  9. function gouba(aclRank) {
  10. let aclIds = [];
  11. aclIds.user = '1'; aclIds.vul = 'verified'; aclIds.eul = 'eliteuploader'; aclIds.super = '2'; aclIds.elite = '3';
  12. aclIds.translator = '4'; aclIds.fmod = '5'; aclIds.thelper = '6'; aclIds.tmod = '7'; aclIds.smod = '8';
  13. aclIds.staff = '9'; aclIds.admin = '10';
  14. let returnedData;
  15. let matches;
  16. let onlineUsers = [];
  17. let s = '<a href="\/user\/[a-z)-9_.-]+\/" class="tag1 aclColor_'+aclIds[aclRank]+'">([a-z)-9_.-]+)<\/a>';
  18. let searchString = new RegExp(s,'gi');
  19. console.log(searchString);
  20. $.ajax({
  21. type: "GET",
  22. url: "/community/",
  23. async: false,
  24. success: function (data) {
  25. returnedData = data;
  26. while (matches = searchString.exec(returnedData.html)) {
  27. onlineUsers.push(matches[1]);
  28. }
  29. },
  30. returnData: "json"
  31. });
  32. return onlineUsers;
  33. }

QingJ © 2025

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