-
-
Save tanepiper/aab8870fe4e8f1564a6c92f302dd706c to your computer and use it in GitHub Desktop.
Revisions
-
tanepiper revised this gist
Nov 21, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ javascript:(function(){ const MY_MASTO_HOST = 'tane.codes'; if (window.location.host === MY_MASTO_HOST) return; -
bramus created this gist
Nov 21, 2022 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ javascript:(function(){ const MY_MASTO_HOST = 'front-end.social'; if (window.location.host === MY_MASTO_HOST) return; const user = document.querySelector('meta[property="profile:username"]')?.getAttribute('content'); if (!user) return; window.location.href = `https://${MY_MASTO_HOST}/@${user}`; })();