您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Keeps all default settings; enables infinite scrolling, HLS, mp4 playback; disables sticky profile on Nitter and Xcancel
// ==UserScript== // @name Nitter/Xcancel Preference Tweaks: Infinite Scroll + HLS + mp4 + Non-sticky Profile // @description Keeps all default settings; enables infinite scrolling, HLS, mp4 playback; disables sticky profile on Nitter and Xcancel // @match https://nitter.net/* // @match https://xcancel.com/* // @version 0.0.1.20250517083403 // @namespace https://greasyfork.org/users/1435046 // ==/UserScript== (function() { // Prevent applying preferences more than once per session if (sessionStorage.getItem('prefsSet')) return; // Build preferences payload const prefs = 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' }); // Determine saveprefs endpoint based on current host const host = location.host; const saveUrl = `https://${host}/saveprefs`; // Send preferences fetch(saveUrl, { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, body: prefs }).then(() => { sessionStorage.setItem('prefsSet', 'true'); }).catch(console.error); })();