Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name frhd grid colour changer
- // @namespace http://tampermonkey.net/
- // @version 1.0.0
- // @description Changes the grid color
- // @author revelcw
- // @match https://www.freeriderhd.com
- // @include /^https?:\/\/(www\.)?freeriderhd\.com
- // @icon https://www.google.com/s2/favicons?domain=freeriderhd.com
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- let url;
- setInterval(() => {
- if (
- window.location.href !== url &&
- window.location.href.startsWith('https://www.freeriderhd.com/create')
- ) {
- main();
- }
- url = window.location.href;
- }, 1000);
- const main = async () => {
- let timer = setInterval(() => {
- if (
- document.querySelector(
- '#game-container > div > div.topMenu.unselectable'
- )
- ) {
- clearInterval(timer);
- // below here in the grid major line color, place the hex code (simplified only) in place of #0FF.
- GameManager.game.currentScene.toolHandler.options.gridMajorLineColor = '#0FF';
- }
- });
- };
- })();
Advertisement
Add Comment
Please, Sign In to add comment