Set Slope Speed and Set Points

Sets the speed and set points for a slope game

  1. // ==UserScript==
  2. // @name Set Slope Speed and Set Points
  3. // @namespace http://yourwebsite.com/
  4. // @version 0.1
  5. // @description Sets the speed and set points for a slope game
  6. // @author Your Name
  7. // @match https://sites.google.com/site/unblockedgame76/SLOPE
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. // Set the desired speed and set points here
  15. const desiredSpeed = 5;
  16. const desiredSetPoints = 10;
  17.  
  18. // Wait for the page to load
  19. window.addEventListener('load', () => {
  20. // Find the elements that control the speed and set points
  21. const speedElement = document.querySelector('[name="speed"]');
  22. const setPointsElement = document.querySelector('[name="setPoints"]');
  23.  
  24. // Check if the elements were found
  25. if (speedElement && setPointsElement) {
  26. // Set the speed and set points to the desired values
  27. speedElement.value = desiredSpeed;
  28. setPointsElement.value = desiredSetPoints;
  29.  
  30. // Trigger a change event to apply the new values
  31. const event = new Event('change');
  32. speedElement.dispatchEvent(event);
  33. setPointsElement.dispatchEvent(event);
  34. }
  35. });
  36. })();