Experimental browser for the Atmosphere
{ "uri": "at://did:plc:3zxgigfubnv4f47ftmqdsbal/com.whtwnd.blog.entry/3lnxg7j5kdt26", "cid": "bafyreia5wkw22fdkskoiv5pxp347hay2vvohmbflvcldbt3ztuch3z6jeq", "value": { "$type": "com.whtwnd.blog.entry", "theme": "github-light", "title": "Redirector Extension", "content": "How to automatically redirect Bluesky links to Deer Social with the Redirector Extension for Firefox. This should work for Chrome too.\n\nDocumentation/Source\n- \nGitHub: https://github.com/einaregilsson/Redirector\n\nBlog: https://einaregilsson.com/writing-a-browser-extension-for-three-browsers/\n\nInstallaion\n-\nFirefox Addons: https://addons.mozilla.org/firefox/addon/redirector/\n\nChrome: https://chrome.google.com/webstore/detail/redirector/ocgpenflpmgnfapjedencafcfakcekcd\n\nEither type the simple rules in manually:\n\n```\nDescription: Bluesky to Deer Social URL rewriting\nExample URL: https://bsky.app/profile/fry69.dev/post/3laqnamqfq22v\nInclude pattern: https://bsky.app/*\nRedirect to: https://deer.social/$1\nPattern type: wildcard\n```\n\nOr save this JSON block below in a file and import it in the Redirector:\n```json\n{\n \"createdBy\": \"Redirector v3.5.3\",\n \"createdAt\": \"2025-04-29T13:31:54.607Z\",\n \"redirects\": [\n {\n \"description\": \"Bluesky to Deer Social URL rewriting \",\n \"exampleUrl\": \"https://bsky.app/profile/fry69.dev/post/3laqnamqfq22v\",\n \"exampleResult\": \"https://deer.social/profile/fry69.dev/post/3laqnamqfq22v\",\n \"error\": null,\n \"includePattern\": \"https://bsky.app/*\",\n \"excludePattern\": \"\",\n \"patternDesc\": \"\",\n \"redirectUrl\": \"https://deer.social/$1\",\n \"patternType\": \"W\",\n \"processMatches\": \"noProcessing\",\n \"disabled\": false,\n \"grouped\": false,\n \"appliesTo\": [\n \"main_frame\"\n ]\n }\n ]\n}\n```\n\nBonus\n-\nLonger Redirect file with a redirect for desktop Wikipedia\n\n```json\n{\n \"createdBy\": \"Redirector v3.5.3\",\n \"createdAt\": \"2025-04-29T13:31:54.607Z\",\n \"redirects\": [\n {\n \"description\": \"Always show the desktop version of websites\",\n \"exampleUrl\": \"https://en.m.wikipedia.org/\",\n \"exampleResult\": \"https://en.wikipedia.org/\",\n \"error\": null,\n \"includePattern\": \"^(https?://)([a-z0-9-]*\\\\.)m(?:obile)?\\\\.(.*)\",\n \"excludePattern\": \"\",\n \"patternDesc\": \"Any word after example.com leads to google search for that word.\",\n \"redirectUrl\": \"$1$2$3\",\n \"patternType\": \"R\",\n \"processMatches\": \"noProcessing\",\n \"disabled\": false,\n \"grouped\": false,\n \"appliesTo\": [\n \"main_frame\"\n ]\n },\n {\n \"description\": \"Bluesky to Deer Social URL rewriting \",\n \"exampleUrl\": \"https://bsky.app/profile/fry69.dev/post/3laqnamqfq22v\",\n \"exampleResult\": \"https://deer.social/profile/fry69.dev/post/3laqnamqfq22v\",\n \"error\": null,\n \"includePattern\": \"https://bsky.app/*\",\n \"excludePattern\": \"\",\n \"patternDesc\": \"\",\n \"redirectUrl\": \"https://deer.social/$1\",\n \"patternType\": \"W\",\n \"processMatches\": \"noProcessing\",\n \"disabled\": false,\n \"grouped\": false,\n \"appliesTo\": [\n \"main_frame\"\n ]\n }\n ]\n}\n```\n\nBonus Bonus\n-\nIncluding untested and probably buggy redirects from the Readme\n\n```json\n{\n \"createdBy\": \"Redirector v3.5.3\",\n \"createdAt\": \"2025-04-29T13:31:54.607Z\",\n \"redirects\": [\n {\n \"description\": \"Always show the desktop version of websites\",\n \"exampleUrl\": \"https://en.m.wikipedia.org/\",\n \"exampleResult\": \"https://en.wikipedia.org/\",\n \"error\": null,\n \"includePattern\": \"^(https?://)([a-z0-9-]*\\\\.)m(?:obile)?\\\\.(.*)\",\n \"excludePattern\": \"\",\n \"patternDesc\": \"Any word after example.com leads to google search for that word.\",\n \"redirectUrl\": \"$1$2$3\",\n \"patternType\": \"R\",\n \"processMatches\": \"noProcessing\",\n \"disabled\": false,\n \"grouped\": false,\n \"appliesTo\": [\n \"main_frame\"\n ]\n },\n {\n \"description\": \"Remove doubleclick link tracking / fix problems with doubleclick host-based blocking\",\n \"exampleUrl\": \"https://www.google.com/amp/www.example.com/amp/document\",\n \"exampleResult\": \"https://www.example.com/amp/document\",\n \"error\": null,\n \"includePattern\": \"^(?:https?://)www.(?:google|bing).com/amp/(?:s/)?(.*)\",\n \"excludePattern\": \"\",\n \"patternDesc\": \"\",\n \"redirectUrl\": \"https://$1\",\n \"patternType\": \"R\",\n \"processMatches\": \"noProcessing\",\n \"disabled\": false,\n \"grouped\": false,\n \"appliesTo\": [\n \"main_frame\"\n ]\n },\n {\n \"description\": \"Redirect YouTube Shorts to regular YouTube\",\n \"exampleUrl\": \"https://www.youtube.com/shorts/video-id\",\n \"exampleResult\": \"https://www.youtube.com/watch?v=video-id\",\n \"error\": null,\n \"includePattern\": \"^(?:https?://)(?:www.)?youtube.com/shorts/([a-zA-Z0-9_-]+)(.*)\",\n \"excludePattern\": \"\",\n \"patternDesc\": \"\",\n \"redirectUrl\": \"https://www.youtube.com/watch?v=$1$2\",\n \"patternType\": \"R\",\n \"processMatches\": \"noProcessing\",\n \"disabled\": false,\n \"grouped\": false,\n \"appliesTo\": [\n \"main_frame\"\n ]\n },\n {\n \"description\": \"Bluesky to Deer Social URL rewriting \",\n \"exampleUrl\": \"https://bsky.app/profile/fry69.dev/post/3laqnamqfq22v\",\n \"exampleResult\": \"https://deer.social/profile/fry69.dev/post/3laqnamqfq22v\",\n \"error\": null,\n \"includePattern\": \"https://bsky.app/*\",\n \"excludePattern\": \"\",\n \"patternDesc\": \"\",\n \"redirectUrl\": \"https://deer.social/$1\",\n \"patternType\": \"W\",\n \"processMatches\": \"noProcessing\",\n \"disabled\": false,\n \"grouped\": false,\n \"appliesTo\": [\n \"main_frame\"\n ]\n }\n ]\n}\n```\n\n\n\n", "createdAt": "2025-04-29T15:19:26.169Z", "visibility": "public" } }