Sleazy Fork is available in English.

Sniffies Improved Colors

Updates the colors on the Sniffies website for improved visibility

// ==UserScript==
// @name         Sniffies Improved Colors
// @license      MIT
// @namespace    http://sniffies.com/
// @version      0.1
// @description  Updates the colors on the Sniffies website for improved visibility
// @author       Sygic Sithier
// @match        https://sniffies.com/*
// @icon         data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wgARCALQAtADASIAAhEBAxEB/8QAGQABAAMBAQAAAAAAAAAAAAAAAAECBgMF/8QAGQEBAAMBAQAAAAAAAAAAAAAAAAEDBAIG/9oADAMBAAIQAxAAAAHyxb5kAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0Ca8+0Az7QDPtAM+0Az7QDPtAM+0Az7QDPtAM+0Az7QDPtAM+0Az7QDPtAM+0Az7QDPtAM+0Az7QDPtAM+0Az7QDPtAM+0Az7QDPtAM+0Az7QDPtAM+0Az7QDPtAM+0Az7QDPtAM+0Az7QDPtAM+0Az7QDPtAM+0Az7QC6SuEiEiEiEiEiEiEiEiEiEiEiEiEiEiEiEiEiEiEiEiEiEiEiEiEiEi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S1LUtS1LUtS1LUtS1LUtS1LUtS1LUtS1LUtS1LUtS1LUtS1LUtS1LUtS1LUtS1LU7p3TundO6d07p3TundO6d07p3TundO6d07p3TundO6d07p3TundO6d07p3TundO6d07p3TundO6d07p3TundO6d07p3TundO6d07p3TundO6d07p3TundO6d07p3TundO6d07p3TundO6d07p3TundO6d07p3TundO6d347a0rStK0rStK0rStK0rStK0rStK0rStK0rStK0rStK0rStK0rStK0rStK0rStK0rStK0rStK0rStK0rStK0rStK0rStK0rStK0rStK0rStK0rStK0rStK0rStK0rStK0rStK0rStK0rStK0rStK0rSt+O3//xAAbEQEAAwEBAQEAAAAAAAAAAAAAERITAQKAcP/aAAgBAwEBPwH47uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuv8AsUIQhCEIQhCEIQhCEIQhCEIQhCEIQhCEIQhCEIQy9MvTL0y9MvTL0y9MvTL0y9MvTL0y9MvTL0y9MvTL0y9MvTL0y9MvTL0y9MvTL0y9MvTL0y9MvTL0y9MvTL0y9MvTL0y9MvTL0y9MvTL0rxXivFeK8V4rxXivFeK8V4rxXivFeK8V4rxXivFeK8V4rxXivFeK8V4rxXivFeK8V4rxXivFeK8V4rxXivPg/Zs2bNmzZs2bNmzZs2bNmzZs2bNmzZs2bNmzZs2bNmzZs2bNmzZs2SlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlP7FCEIQhCEIQhCEIQhCEIQhCEIQhCEIQhCEIQhCEfHlFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEIQhCEIQhCEIQhCEIQhCEIQhCEIQhCEIQhCEIR8H//EABkRAQEBAQEBAAAAAAAAAAAAAAATARKAkP/aAAgBAgEBPwH7vQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ8H8651zrnXOudc651zrnXOudc651zrnXOudc651zrnXOudc651zrnXOudc651zrnXOudc651zrnXOudc651zvjyiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiinjz/8QAGBABAQEBAQAAAAAAAAAAAAAAADEBMqD/2gAIAQEABj8C8o0RERERERERERERERERERERERERERERERERERERERERERERERERERERERERERPEnzrnXOudc651zrnXOudc651zrnXOudc651zrnXOudc651zrnXOudc651zrnXOudc651zrnXOudc651zrnXOudc651zrnXOudc651zrnXOudc651zrnXOudc651zrnXOudc651zrnXOudc651zrnXOudc651zrnXOudc653x21VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVdOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp068SdxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVfHbVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVXx2/wD/xAAeEAEAAgMBAQADAAAAAAAAAAAAAREhUWHxoGCQsP/aAAgBAQABPyH47KnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnUqnU/jaSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSVrWta1rWta1rWta1rWta1rWta1rWta1rW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QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQcMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM88888888888888888888888888888888888888888888wgggggggggggggggggggggggggggggggggggggggggggggwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww8ssssssssssssssssssssssssssssssssssssssssssssv/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A888888888888888888888888888888888888888888888wQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQfPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPMccccccccccccccccccccccccccccccccccccccccccccQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwgggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQfPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A333333333333333333333333333333333333333333333HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHE88888888888888888888888888888888888888888888/333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333/8QAHREBAQADAQADAQAAAAAAAAAAABEBUWFxUHCAkP/aAAgBAwEBPxD8d+Xl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5+Oqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr9EQhCEIQhCEIQhCEIQhCEIQhCEIQhCEIQhCEIQhDhlwy4ZcMuGXDLhlwy4ZcMuGXDLhlwy4ZcMuGXDLhlwy4ZcMuGXDLh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JGSRkkZJGSRkkZJGSRkkZJGSRkkZJGSRkkZJGSRkkZJGSRkkZJGSRkkZJGSRkkZJGSRkkZJGSRkkZJGSRkkZJGSRkkZJGSRkkZJGSRkkZJGSRkkZJGSRkkZJGSRkkZJGSRkkZJGSRkkZJGSRkkZJGSRkkZJGSRkkZJGSRkkZJGSTRo0aNGjRo0aNGjRo0aNGjRo0aNGjRo0aNGjRo0aNGjRo0aNGjRo0aNGjRo0aNGjRo0aNGjRo0aNGjRo0aNGjRo0aNGjRo0aNGjRo0aNGvg5//2Q==
// @grant        none
// ==/UserScript==

(function () {
  const originalFetch = window.fetch;
  const colorMap = {
    background: "#053642",
    waterway: "#05ADCC",
    water: "#05B3D3",
    park_outline: "#0D8CA5",
    landcover_wood: "#4D4D4D",
    "landuse-residential": "#8C6B49",
    building: "#264664",
    landcover_grass: "#005959",
    landuse_overlay_national_park: "#005555",
    park: "#4D6666",
    tunnel_motorway_casing: "#333333",
    tunnel_motorway_inner: "#666666",
    road_area_pier: "#999999",
    road_pier: "#CCCCCC",
    highway_path: "#0D1E2F",
    highway_minor: "#0D1E2F",
    highway_motorway_casing: "#3D5473",
    highway_motorway_inner: "#3D5473",
    highway_motorway_subtle: "#3D5473",
    highway_major_casing: "#1D3051",
    highway_major_inner: "#2D4262",
    highway_major_subtle: "#3D5473",
    highway_motorway_bridge_casing: "#4D6483",
    highway_motorway_bridge_inner: "#4D6483",
    "landcover-ice-shelf": "#19A2EB",
    "landcover-glacier": "#91CFF1",
    "aeroway-area": "#061221",
    "aeroway-taxiway": "#0b1f2d",
    "aeroway-runway": "#0b1f2d",
    highway_motorway_bridge_casing: "#0b1f2d",
  };

  const paintProperties = ["fill-color", "background-color", "line-color"];

  async function fetchAndModifyMapStyles(url) {
    const response = await originalFetch(url);
    const mapStyleJson = await response.json();
    const { layers } = mapStyleJson;
    const unmodifedPaints = [];

    layers.forEach((layer) => {
      if (!layer.id || !layer.paint) return;
      let foundMatch = false;
      for (const paintProp of paintProperties) {
        if (layer.paint[paintProp]) {
          layer.paint[paintProp] = colorMap[layer.id];
          foundMatch = true;
          break;
        }
      }
      if (!foundMatch) {
        unmodifedPaints.push(layer.id);
      }
    });

    console.log(
      `The following layers were not modified: ${unmodifedPaints.join(",")}`
    );

    const mapStyleJsonString = JSON.stringify(mapStyleJson);
    const mapStyleJsonBlob = new Blob([mapStyleJsonString], {
      type: "application/json",
    });

    return new Response(mapStyleJsonBlob, {
      headers: { "Content-Type": "application/json" },
    });
  }

  window.fetch = (url, options) => {
    if (!url.url.includes("mapboxMapStyles")){
      return originalFetch(url, options);
    }
    return fetchAndModifyMapStyles(url);
  };
})();