Telegram-FOSS-Team / Telegram-FOSS

Unofficial, FOSS-friendly fork of the original Telegram client for Android
GNU General Public License v2.0
2.96k stars 378 forks source link

[Feature Request] Invidious, Bibliogram, Nitter, OpenStreetMaps (Embeds and Redirects) Support #424

Open seniorm0ment opened 4 years ago

seniorm0ment commented 4 years ago

Suggesting the ability to set an option to have all embeds locally load through Invidious, Bibliogram , Nitter , OpenStreetMaps, and also the ability to have links of those nature that are clicked redirect to those frontends instead of the actual site.

Just as an example, if you choose to have embedded redirects on, if someone posts a YouTube link, in this situation it would not theoretically connect directly to YouTube, it'd go through Invidious to feed the embedded data to you locally.

If you choose to have link redirects on, If you clicked the YouTube link, it wouldn't take you to YouTube, but instead Invidious. The link itself would show in the chat as YouTube, but it'd just redirect you to Invidious locally.

To be clear, Invidious (YouTube), Bibliogram (Instagram), Nitter (Twitter) are all privacy oriented frontends for the respective services, and OpenStreetMaps would replace any Google Maps, Apple Maps, etc. OSM option would be ideal with "send my location" and map previews, and just redirecting Maps links and stuff. (Slightly related to #183 and #415)

A browser extension does exist to do all this, but it's not ideal on a mobile app like Telegram-FOSS. It is also nice to load content directly from these frontends, instead of through their sites. But just to show off better a bit of what I'm asking for, check out the Firefox extension 'Privacy Redirect'.

Not sure if any of this is possible with Telegram, but I have seen other apps do a similar thing with redirects for embeds and links.

varistov commented 4 years ago

Not really needed. There's Untrackme on f-droid that will redirect the links https://f-droid.org/packages/app.fedilab.nitterizeme/

What does UntrackMe do?

Basically it handles URLs. It can do these:

💡 Redirect (https://fedilab.app/wiki/untrackme/#redirect): Transform YouTube, Twitter, Instagram and Google Maps URLs into URLs of front-ends and services that respect your privacy.

💡 Unshorten (https://fedilab.app/wiki/untrackme/#unshorten): See the real link behind short URLs of some URL shortening services without loading the web page

💡 Cleanup (https://fedilab.app/wiki/untrackme/): Remove known UTM parameters from a URLs

👉🏼 Read more: https://fedilab.app/wiki/untrackme/

📡@cRyPtHoN_INFOSEC_DE 📡@cRyPtHoN_INFOSEC_EN

seniorm0ment commented 4 years ago

This wouldn't redirect the embeds but only links, also doesn't solve the maps issue.

varistov commented 4 years ago

Anyhow, you have to open the link in a browser, untrackme will redirect it

Map isssue

If you have issues with Facebook, then you might have issues with OSM too as Mapillary has been acquired by Shitbook

https://techcrunch.com/2020/06/18/mapillary-facebook/

https://www.reuters.com/article/us-facebook-deals-mapillary/facebook-acquires-crowdsourced-mapping-company-mapillary-idUSKBN23P3N6

https://blog.mapillary.com/news/2020/06/18/Mapillary-joins-Facebook.html

https://www.openstreetmap.org/user/jesolem/diary/393358

https://www.openstreetmap.org/user/juminet/diary/393393

Mapillary, the crowdsourced database of street-level imagery, has been acquired by Facebook

Mapillary, the Swedish startup that wants to take on Google and others in mapping the world via a crowdsourced database of street-level imagery, has been acquired by Facebook, according to the company’s blog. Terms of the deal aren’t being disclosed.

The Mapillary team and project will become part of Facebook’s broader open mapping efforts. Mapillary also says its “commitment to OpenStreetMap stays.” Writes Mapillary co-founder and CEO Jan Erik: From day one of Mapillary, we have been committed to building a global street-level imagery platform that allows everyone to get the imagery and data they need to make better maps. With tens of thousands of contributors to our platform and with maps being improved with Mapillary data every single day, we’re now taking the next big step on that journey.

As Erik notes, Facebook is known to be “building tools and technology to improve maps through a combination of machine learning, satellite imagery and partnerships with mapping communities.” Mapping has immediate use-cases for the social networking behemoth, such as Facebook Marketplaces and its local business offerings, while another application is augmented reality.

seniorm0ment commented 4 years ago

If you have issues with Facebook, then you might have issues with OSM too as Mapillary has been acquired by Shitbook

Wtf.

cleveHEX commented 4 years ago

@grravity Embeds are done on telegram servers, you can do nothing about them on client side.