Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Wandering Inn Paginator
// @namespace wandering_inn_paginator@boromisp
// @version 2025-10-18
// @description Change the Wandering Inn layout to horizontally scrolled pages
// @author boromisp
// @match https://wanderinginn.com/*
// @icon https://www.google.com/s2/favicons?sz=64&wanderinginn.com
// @grant none
// ==/UserScript==
/* leaflet-react-control: A simple Control for leaflet, that can render React components. */
import { Control, DomUtil } from 'leaflet';
import { render, unmountComponentAtNode } from 'react-dom';
export default Control.extend({
options: { getElement: () => null },
onAdd() {
this.controlDiv = DomUtil.create('div', 'leaflet-control-react');
render(this.options.getElement(), this.controlDiv);