Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Disabling media preview/images #4

Open
neeravmakwana opened this issue Jan 27, 2019 · 2 comments
Open

Disabling media preview/images #4

neeravmakwana opened this issue Jan 27, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@neeravmakwana
Copy link

Hi, This is a great theme and love how it makes Twitter much better. However I was wondering if there's a way to disable media previews like the Android Twitter client. (Refer attachments)

In Android the image/video will appear only if you open a tweet. If you are just browsing your timeline, images do not appear. Thanks.
android
laptop_web

@neeravmakwana
Copy link
Author

The following code replaces images and videos with the text "Media_hidden". But this works only if the image or video is posted by that specific user. In case a user is sharing a link, the image or contents of teh link do show up. I'll try to tackle that part next.

And note that I am using the rule only on the specific URL https://twitter.com/
So if I click on a tweet which has Media_hidden, the image does appear. But if I'm scrolling through my timeline it does not. Which is exactly what I wanted.

.AdaptiveMediaOuterContainer:before {
	content: "Media_hidden";
	visibility:visible;
}
.AdaptiveMediaOuterContainer {height: 0%; width: 0%}
.PlayableMedia-player {display: none !important;}

@arcanacodec
Copy link
Owner

That's a nice idea but I made the theme to show all images expanded. If you find a way, this can be added as a option on userstyles when I find how adding options work there.

Feel free to create a new theme with my css if you want.

@arcanacodec arcanacodec added the enhancement New feature or request label May 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants