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 https://gist.github.com/boromisp/38743329814a97bdb1be047f0e306ad8 | |
| // @version 2026.04.19.11 | |
| // @description Change The Wandering Inn chapter layout to horizontally paged reading | |
| // @author boromisp | |
| // @match https://wanderinginn.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=wanderinginn.com | |
| // @updateURL https://gist.githubusercontent.com/boromisp/38743329814a97bdb1be047f0e306ad8/raw/wanderinginn-paginator.user.js | |
| // @downloadURL https://gist.githubusercontent.com/boromisp/38743329814a97bdb1be047f0e306ad8/raw/wanderinginn-paginator.user.js |
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); |