This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==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== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 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); |