nitter icon indicating copy to clipboard operation
nitter copied to clipboard

Request to add URL parameter to make URL parameters permanent

Open 65wat opened this issue 4 years ago • 6 comments

Hi zadeus,

I can’t imagine going back to using the original twitter front-end as yours is so much better (not to speak of the recent authwall twitter introduced which makes completely unusable). I love nitter’s usability & speed, however, I have a very specific style preference chain that I always use:

https://nitter.net/[account]? theme=Twitter&bidiSupport=true&infiniteScroll=false&mp4Playback=true&hlsPlayback=true&muteVideos=true

So here’s my request: If there would be an additional parameter like setPermanent=true that saves the URL parameters in the current browser settings as well (cookies, session storage, etc.), that’d save me (and others who do the same thing) some time adjusting the settings each time I click on a tweet or browse to a different account.

I looked through the issues and found this from a few years ago:

Done, it saves the theme to preferences as well although I'm not sure that's the wanted behaviour, it's an easy fix so let me know if you want that changed.

Originally posted by @zedeus in https://github.com/zedeus/nitter/issues/84#issuecomment-562463449

It sounds to me like that's what you wanted, too (URL params are saved as permanent settings), but unfortunately it doesn’t seem to work right now (maybe it’s just me - let me know if that’s the case).

Cheers

65wat avatar Feb 16 '22 11:02 65wat

Why not simply use your browser's bookmark feature?

mwat56 avatar May 22 '22 16:05 mwat56

Hmm, so can site settings already be set within the URL?

If so, I think a temporary solution would be to use a userscript to replace a portion of the URL with our preferred settings.

Like this: https://github.com/buckmelanoma/libreddit_redirect/blob/main/libreddit_redirect.js

Of course, being able to set our settings using a predefined URL that stays the same while navigating pages would be ideal!

Here are a couple of related issues/requests:

https://github.com/zedeus/nitter/issues/249

https://github.com/spikecodes/libreddit/issues/410

Deagan avatar Jun 04 '22 09:06 Deagan

I am unable to get them working for my URL, but for those interested, the list of Nitter parameter names are listed here ("genPrefs" starting on line 52):

https://github.com/zedeus/nitter/blob/cc0e4b16681204346a329d532459dcf681458caa/src/prefs_impl.nim

Deagan avatar Jun 09 '22 07:06 Deagan

I am unable to get them working for my URL

Clarified with @zedeus about URL Parameter functionality, and it seems this is not yet implemented.

━━━━━━━━━━━━━━━━━━━━━━━━━

If so, I think a temporary solution would be to use a userscript to replace a portion of the URL with our preferred settings.

Building on what I mentioned before, as a workaround, I was able to get custom URL Theming to work "permanently" using this userscript I created:

[REDACTED, BROKEN USERSCRIPT]

Feel free to use/update this script in the meantime!

Deagan avatar Jun 09 '22 10:06 Deagan

I would love to see this feature.

Export33 avatar Aug 20 '22 19:08 Export33

Is there no way to hide Replies/Tweet Stats using a URL Parameter?

MintMain21 avatar Oct 25 '22 19:10 MintMain21