Something went wrong. Try again.
A repository containing my userscripts
Something went wrong. Try again.
userscripts ditto-comments-page.user.js
123456789101112131415161718192021// ==UserScript==// @name Open Comments Page on Ditto// @version 1.0// @author LittleBit// @description Leave comments on a web page using Ditto.// @namespace https://tangled.org/did:plc:ba3ftueh2aewxja4dtuhi7kf// @match *://*/*// @icon https://favicon.im/ditto.pub// @grant GM_registerMenuCommand// ==/UserScript==
(function() { 'use strict';
function dittoOpenWebPage() { const encodedUrl = encodeURIComponent(window.location.href); window.open(`https://ditto.pub/i/${encodedUrl}`, "_blank"); }
GM_registerMenuCommand("Open Comments Page on Ditto", dittoOpenWebPage)})();