popmundo_lib

Library to be used by popmundo scripts

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

  1. function versionSpeedCalling(){ return '3.2'; }
  2.  
  3. // Used to hold the callings page
  4. var _gwCalling = null;
  5.  
  6. //Updates the localStorage with the new values
  7. function storeValue(mainId, charId, cbbId)
  8. {
  9. //Gets the value for the given cbbId
  10. var tmpValue = 24;
  11. if (typeof document.getElementById(cbbId) != 'undefined') { tmpValue = document.getElementById(cbbId).value; }
  12.  
  13. storedValues = JSON.parse(window.localStorage.getItem(mainId));
  14. storedValues[charId] = tmpValue;
  15. window.localStorage.setItem(mainId, JSON.stringify(storedValues));
  16. }
  17.  
  18. function CallEveryone(mainId)
  19. {
  20. itemListId = 1;
  21. _gwCalling = window.open('', 'gexWindow', '');
  22. var toCall = JSON.parse(window.localStorage.getItem(mainId));
  23. var doit = function (key)
  24. {
  25. var tmpitemListId = itemListId;
  26. if (tmpitemListId <= 9) { tmpitemListId = 'ctl00_cphLeftColumn_ctl00_repAddressBook_ctl0' + tmpitemListId + '_lnkCharacter'; }
  27. else { tmpitemListId = 'ctl00_cphLeftColumn_ctl00_repAddressBook_ctl' + tmpitemListId + '_lnkCharacter'; }
  28. var callObject = document.getElementById(tmpitemListId);
  29. var callUrl = 'http://' + window.location.hostname + callObject.getAttribute("href");
  30. _gwCalling.location = callUrl;
  31. itemListId++;
  32. };
  33. var i = 0;
  34. for (var key in toCall)
  35. {
  36. (function ()
  37. {
  38. var k = key;
  39. setTimeout(function () { doit(key); }, 8000 * i);
  40. })();
  41. i += 1;
  42. }
  43. }
  44.  

QingJ © 2025

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