|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
// ==UserScript==
|
|
|
|
|
// @name Remote Instance Actions
|
|
|
|
|
// @namespace https://hollymcfarland.com
|
|
|
|
|
// @version 1.0
|
|
|
|
|
// @version 1.1
|
|
|
|
|
// @description Easily limit a remote instance from your Mastodon instance via the timeline
|
|
|
|
|
// @author monorail
|
|
|
|
|
<?php
|
|
|
|
@ -63,6 +63,9 @@
|
|
|
|
|
// clear out accidental whitespace
|
|
|
|
|
domain = domain.trim();
|
|
|
|
|
|
|
|
|
|
// in case it's written like "domain dot tld"
|
|
|
|
|
domain = domain.replace(/\s+dot\s+/, ".");
|
|
|
|
|
|
|
|
|
|
// in case a full link was provided
|
|
|
|
|
domain = domain.replace(/https?:\/\//, "");
|
|
|
|
|
|
|
|
|
|