[Flightradar24] Combo FlightRadar24 Script

Removes the Ad Container on the bottom right of the FlightRadar24 page and refreshes the page, essentially removing the 30 minute timeout.

当前为 2024-07-10 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name [Flightradar24] Combo FlightRadar24 Script
  3. // @namespace HKR
  4. // @match https://www.flightradar24.com/*
  5. // @grant none
  6. // @version 1.3.1
  7. // @license MIT
  8. // @author Bruna
  9. // @description Removes the Ad Container on the bottom right of the FlightRadar24 page and refreshes the page, essentially removing the 30 minute timeout.
  10. // @run-at document-start
  11. // ==/UserScript==
  12.  
  13. const waitTime = setTimeout(begin, 1000);
  14.  
  15. function begin() {
  16. const ad = document.getElementById("primisAdContainer");
  17.  
  18. ad.remove();
  19. }
  20.  
  21. const tillThirty = setTimeout(thirty, 1798000);
  22.  
  23. function thirty() {
  24. console.log("30 Minute time reached. Refreshing...")
  25. location.reload();
  26. }