Keeps all default settings; enables infinite scrolling, HLS, mp4 playback; disables sticky profile
当前为
// ==UserScript==
// @name Nitter Preference Tweaks: Infinite Scroll + HLS + mp4 + Non-sticky Profile
// @description Keeps all default settings; enables infinite scrolling, HLS, mp4 playback; disables sticky profile
// @match https://nitter.net/*
// @grant none
// @version 0.0.1.20250429144923
// @namespace https://greasyfork.org/users/1435046
// ==/UserScript==
(function() {
if (sessionStorage.getItem('nitterPrefsSet')) return;
fetch('https://nitter.net/saveprefs', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({
referer: '/',
theme: 'Nitter',
infiniteScroll: 'on',
stickyProfile: '', // unchecked
bidiSupport: '',
hideTweetStats: '',
hideBanner: '',
hidePins: '',
hideReplies: '',
squareAvatars: '',
mp4Playback: 'on',
hlsPlayback: 'on',
proxyVideos: 'on',
muteVideos: '',
autoplayGifs: 'on',
replaceTwitter: 'nitter.net',
replaceYouTube: 'piped.video',
replaceReddit: 'teddit.net'
})
}).then(() => {
sessionStorage.setItem('nitterPrefsSet', 'true');
});
})();