Nitter Preference Tweaks: Infinite Scroll + HLS + mp4 + Non-sticky Profile

Keeps all default settings; enables infinite scrolling, HLS, mp4 playback; disables sticky profile

当前为 2025-05-07 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Nitter Preference Tweaks: Infinite Scroll + HLS + mp4 + Non-sticky Profile
  3. // @description Keeps all default settings; enables infinite scrolling, HLS, mp4 playback; disables sticky profile
  4. // @match https://nitter.net/*
  5. // @grant none
  6. // @version 0.0.1.20250507064639
  7. // @namespace https://greasyfork.org/users/1435046
  8. // ==/UserScript==
  9.  
  10. (function() {
  11. if (sessionStorage.getItem('nitterPrefsSet')) return;
  12.  
  13. fetch('https://nitter.net/saveprefs', {
  14. method: 'POST',
  15. headers: {
  16. 'Content-Type': 'application/x-www-form-urlencoded'
  17. },
  18. body: new URLSearchParams({
  19. referer: '/',
  20. theme: 'Nitter',
  21. infiniteScroll: 'on',
  22. stickyProfile: '', // unchecked
  23. bidiSupport: '',
  24. hideTweetStats: '',
  25. hideBanner: '',
  26. hidePins: '',
  27. hideReplies: '',
  28. squareAvatars: '',
  29. mp4Playback: 'on',
  30. hlsPlayback: 'on',
  31. proxyVideos: 'on',
  32. muteVideos: '',
  33. autoplayGifs: 'on',
  34. replaceTwitter: 'nitter.net',
  35. replaceYouTube: 'piped.video',
  36. replaceReddit: 'teddit.net'
  37. })
  38. }).then(() => {
  39. sessionStorage.setItem('nitterPrefsSet', 'true');
  40. });
  41. })();