快 捷 圈 子

北京学生综合素质评价发圈子一次性完成

  1. // ==UserScript==
  2. // @name 快 捷 圈 子
  3. // @namespace https://gf.qytechs.cn/users/904812
  4. // @version 0.1
  5. // @description 北京学生综合素质评价发圈子一次性完成
  6. // @author 2222234
  7. // @match https://zhsz.bjedu.cn/web/index/index
  8. // @grant none
  9. // @license GNU Affero General Public License v3.0
  10.  
  11. // ==/UserScript==
  12.  
  13. $(function(){
  14. var h = document.documentElement.clientHeight;
  15.  
  16. var open = document.createElement("div");
  17. window.document.body.append(open);
  18. open.id="open";
  19. open.innerHTML=">";
  20. open.style.left = "0px";
  21. open.style.top="40%";
  22. open.style.width = "30px";
  23. open.style.height = "30px";
  24. open.style.backgroundColor = "rgba(0, 0, 0, 0.25)";
  25. open.style.position = "fixed";
  26. open.style.zIndex = "114514";
  27. open.style.fontSize="25px";
  28. open.style.lineHeight="30px";
  29. open.style.textAlign="center";
  30. var o = false;
  31.  
  32. var send = document.createElement("div");
  33. window.document.body.append(send);
  34. send.id="send";
  35. send.style.left = "-200px";
  36. send.style.top="0px";
  37. send.style.width = "200px";
  38. send.style.height = "100%";
  39. send.style.backgroundColor = "rgba(0, 0, 0, 0.25)";
  40. send.style.position = "fixed";
  41. send.style.zIndex = "114514";
  42. send.style.visibility="hidden";
  43.  
  44. var moments = document.createElement("form");
  45. send.append(moments);
  46. moments.id="moments";
  47. moments.style.left = "25px";
  48. moments.style.top="65px";
  49. moments.style.width = "150px";
  50. moments.style.height = 0.6*h+"px";
  51. moments.style.overflow = "auto";
  52. moments.style.overflowX = "hidden";
  53. moments.style.position = "fixed";
  54.  
  55. var m = ["A1","A2","A3","A4","A5","B1","B2","B3","B4","B5","C1","C2","C3","C4","D1","D2","E1","E2","F1","F2"];
  56.  
  57. for(var i = 0;i<m.length;i++){
  58. var moment = document.createElement("input");
  59. moment.name="ms";
  60. moment.style.width="100px";
  61. moment.style.backgroundColor="rgba(255, 255, 255, 0.5)";
  62. moments.innerHTML=moments.innerHTML+" "+m[i]+"完成数:<br>";
  63. moments.append(moment);
  64. moments.innerHTML=moments.innerHTML+"<br>";
  65. }
  66.  
  67. var write = document.createElement("button");
  68. send.append(write);
  69. write.id="write";
  70. write.innerHTML="发表";
  71. write.style.left = "25px";
  72. write.style.top=0.6*h+90+"px";
  73. write.style.width = "150px";
  74. write.style.height = "50px";
  75. write.style.backgroundColor = "rgba(255,255,255,1)";
  76. write.style.position = "fixed";
  77. write.style.fontSize="25px";
  78. write.style.lineHeight="50px";
  79. write.style.textAlign="center";
  80.  
  81. write.onclick=function(){
  82. var ms = document.getElementsByName('ms');
  83. if(confirm("使用?")){
  84. for(i=1;i<=ms.length;i++){
  85. for(var i1 = 1;i1<=ms[i-1].value;i1++){
  86. $.ajax({
  87. url: "/web/moments/addmoments",
  88. type: 'POST',
  89. data:{"content":" ","class_id":vmMomentsData.curClass.id,"tag_id":i},
  90. dataType: 'json',
  91. });
  92. }
  93. }
  94. }
  95. }
  96.  
  97. window.onresize=function(){
  98. h = document.documentElement.clientHeight;
  99. moments.style.height = 0.6*h+"px";
  100. write.style.top=0.6*h+90+"px";
  101. }
  102.  
  103. open.onmouseover=function(){
  104. open.style.backgroundColor = "rgba(0, 0, 0, 0.5)";
  105. }
  106. open.onmouseout=function(){
  107. open.style.backgroundColor = "rgba(0, 0, 0, 0.25)";
  108. }
  109.  
  110. open.onclick=function(){
  111. if(!o){
  112. open.style.left = "200px";
  113. open.innerHTML="<";
  114. send.style.left = "0px";
  115. send.style.visibility ="visible";
  116. o=true;
  117. }else{
  118. open.style.left = "0px";
  119. open.innerHTML=">";
  120. send.style.visibility ="hidden";
  121. o=false;
  122. }
  123. }
  124. });

QingJ © 2025

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