新疆药学网考试跳过助手(醒目版)

显眼的考试跳过按钮

  1. // ==UserScript==
  2. // @name 新疆药学网考试跳过助手(醒目版)
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.2
  5. // @description 显眼的考试跳过按钮
  6. // @match *://yxfw.xjyxjyw.com/*
  7. // @match *://*.yxfw.xjyxjyw.com/*
  8. // @grant none
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. // 创建高可见度按钮
  16. const btn = document.createElement('button');
  17. btn.innerHTML = '🚀 一键跳过考试';
  18. btn.style.cssText = `
  19. position: fixed;
  20. bottom: 30px;
  21. right: 30px;
  22. z-index: 2147483647;
  23. background: #FF4757;
  24. color: white !important;
  25. padding: 15px 25px;
  26. border: 2px solid #FF6B6B;
  27. border-radius: 15px;
  28. cursor: pointer;
  29. font-size: 18px;
  30. font-weight: bold;
  31. box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
  32. text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  33. transition: all 0.3s ease;
  34. animation: breath 1.5s infinite;
  35. `;
  36.  
  37. // 添加呼吸动画
  38. const style = document.createElement('style');
  39. style.textContent = `
  40. @keyframes breath {
  41. 0% { transform: scale(1); opacity: 0.9; }
  42. 50% { transform: scale(1.05); opacity: 1; }
  43. 100% { transform: scale(1); opacity: 0.9; }
  44. }
  45. button:hover {
  46. background: #FF6B6B !important;
  47. transform: translateY(-2px);
  48. box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
  49. }
  50. `;
  51. document.head.appendChild(style);
  52.  
  53. // 保持原有功能代码...
  54. function findExamUrl() {
  55. const scripts = document.getElementsByTagName('script');
  56. for (let script of scripts) {
  57. const matches = script.textContent.match(/var examURL\s*=\s*["']([^"']+)["']/);
  58. if (matches && matches[1]) return matches[1];
  59. }
  60. return null;
  61. }
  62.  
  63. btn.onclick = function() {
  64. const examPath = findExamUrl();
  65. if (examPath) {
  66. window.location.href = `http://yxfw.xjyxjyw.com/${examPath.replace(/^\//, '')}`;
  67. } else {
  68. btn.style.animation = 'shake 0.5s'; // 添加错误抖动效果
  69. setTimeout(() => btn.style.animation = '', 500);
  70. alert('⚠️ 考试链接未找到,请确认当前处于考试页面');
  71. }
  72. };
  73.  
  74. // 添加抖动动画
  75. style.textContent += `
  76. @keyframes shake {
  77. 0% { transform: translateX(0); }
  78. 25% { transform: translateX(-10px); }
  79. 50% { transform: translateX(10px); }
  80. 75% { transform: translateX(-10px); }
  81. 100% { transform: translateX(0); }
  82. }
  83. `;
  84.  
  85. document.body.appendChild(btn);
  86. })();

QingJ © 2025

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