Greasy Fork镜像 支持简体中文。

OC 2.0 REJOIN REMINDER

REMINDS YOU TO ENTER AN OC

  1. // ==UserScript==
  2. // @name OC 2.0 REJOIN REMINDER
  3. // @namespace http://tampermonkey.net/
  4. // @version 2025-02-23.5
  5. // @description REMINDS YOU TO ENTER AN OC
  6. // @author MEDICROVIN
  7. // @match https://www.torn.com/*
  8. // @exclude https://www.torn.com/loader.php?sid=attack*
  9. // @exclude https://www.torn.com/pc.php*
  10. // @exclude https://www.torn.com/level2.php*
  11. // @grant none
  12. // @license MedicRovin
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. 'use strict';
  17. $(document).ready(function() {
  18. setTimeout(function() {
  19. var OC = document.querySelector("[aria-label^='Organized Crime:']");
  20. if (OC == null) {
  21. let message = $('<div id="strobeMessage" style="background-color: blue; position:fixed; top:0; width:100%; z-index:999999; padding: 20px;margin-top: 0px; text-align: center; color: white; opacity: 1;">YOU ARE NOT IN AN OC</div>');
  22. $("body").append(message);
  23.  
  24. let interval = 500; // Blink speed (in milliseconds)
  25. let duration = 2000; // Total strobe duration (1 seconds)
  26. let endTime = Date.now() + duration;
  27.  
  28. let strobeEffect = setInterval(() => {
  29. message.css("opacity", message.css("opacity") == "1" ? "0" : "1");
  30.  
  31. // Stop strobing after 2 seconds and make message stay visible
  32. if (Date.now() >= endTime) {
  33. clearInterval(strobeEffect);
  34. message.css("opacity", "1"); // Ensure it stays visible
  35. }
  36. }, interval);
  37. }
  38. }, 5000);
  39. });
  40. })();
  41.  
  42.  

QingJ © 2025

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