Sorry but it seems my issue got deleted but no worries, i managed to save the conversations in the last issue.
Also, here is the recovered script for easy copy/paste: // ==UserScript== // @name PDSls Intl.Segmenter Polyfill // @namespace http://tampermonkey.net/ // @version 1.0 // @description Minimal Intl.Segmenter stub for pds.ls // @author Sin Shadow Fox // @match https://pds.ls/* // @match https://.pds.ls/ // @match https://pdsls.dev/* // @match https://.pdsls.dev/ // @run-at document-start // @grant none // @license MIT // ==/UserScript==
(function() { 'use strict'; if (typeof Intl !== "undefined" && typeof Intl.Segmenter === "undefined") { Intl.Segmenter = class Segmenter { constructor(locale, options) { this.locale = locale; this.options = options || {}; } segment(input) { const str = String(input); return { [Symbol.iterator]: function* () { for (let i = 0; i < str.length; i++) { yield { segment: str[i], index: i, input: str, isWordLike: true }; } }, containing(index) { return { segment: str[index] || "", index, input: str }; } }; } resolvedOptions() { return { locale: this.locale || "en", granularity: this.options.granularity || "grapheme" }; } }; console.log("Intl.Segmenter polyfill injected for pds.ls"); } })();
Notifying previous commenters. @aylac.top @samuel.fm @brookie.blog
You three have a new response. @madoka.systems @mackuba.eu @isaaccorbrey.com
The previous issue you linked to in your post was deleted so please use this one @danielmorrisey.com
The maintainer deleted the Issue. Feel free to use pdsls.danielmorrisey.com, as the maintainer stated that they aren't going to merge the pull request.
https://tangled.org/pds.ls/pdsls/pulls/73/latest