Skip to content

Instantly share code, notes, and snippets.

@jakeisnt
Last active June 18, 2020 05:55
Show Gist options
  • Save jakeisnt/8ca3606c645ccde2e251d51e10703537 to your computer and use it in GitHub Desktop.
Save jakeisnt/8ca3606c645ccde2e251d51e10703537 to your computer and use it in GitHub Desktop.
A quick hack redirecting proprietary links to their FOSS counterparts.

Social Redirect

Redirects for Youtube, Instagram and Twitter accounts. These rules will redirect any links or traffic in your browser from Youtube, Instagram or Twitter to their FLOSS clients. These clients are:

Installation

  • Get the HTTPS Everywhere browser extension.
  • Visit the settings page for your extensions, add-ons, or what have you.
  • Go to the preferences for the extension
  • Click advanced settings; use ctrl-z if this does not appear initially.
  • Paste the text of the .xml file into the corresponding page and save.

Enjoy a more free and open internet! Partial source can be found here.

<ruleset name="yt2in_nojs">
<target host="youtube.com" />
<target host="www.youtube.com" />
<rule from="^https?://(www\.)?youtube.com/watch\?"
to="https://invidio.us/watch?nojs=1&amp;" />
</ruleset>
<ruleset name="twit2nit">
<target host="twitter.com" />
<target host="www.twitter.com" />
<rule from="^https?://(www\.)?twitter.com/"
to="https://nitter.net/" />
</ruleset>
<ruleset name="ig2bibgram">
<target host="instagram.com" />
<target host="www.instagram.com" />
<rule from="^https?://(www\.)?instagram.com/"
to="https://bibliogram.snopyta.org/u/" />
</ruleset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment