New Instance Button for Redlib

Adds a button to Redlib (previously Libreddit) instances to redirect to a new instance.

  1. // ==UserScript==
  2. // @name New Instance Button for Redlib
  3. // @namespace happyviking
  4. // @version 1.53.0
  5. // @grant none
  6. // @run-at document-end
  7. // @license MIT
  8. // @description Adds a button to Redlib (previously Libreddit) instances to redirect to a new instance.
  9. // @icon https://gitlab.com/uploads/-/system/project/avatar/32545239/libreddit.png
  10. // @author HappyViking
  11.  
  12. // <<INSTANCES START HERE>>
  13. // @match https://l.opnxng.com/*
  14. // @match https://libreddit.bus-hit.me/*
  15. // @match https://libreddit.privacydev.net/*
  16. // @match https://libreddit.projectsegfau.lt/*
  17. // @match https://lr.ggtyler.dev/*
  18. // @match https://lr.n8pjl.ca/*
  19. // @match https://r.darrennathanael.com/*
  20. // @match https://red.arancia.click/*
  21. // @match https://red.artemislena.eu/*
  22. // @match https://red.ngn.tf/*
  23. // @match https://reddit.nerdvpn.de/*
  24. // @match https://redlib.baczek.me/*
  25. // @match https://redlib.catsarch.com/*
  26. // @match https://redlib.ducks.party/*
  27. // @match https://redlib.freedit.eu/*
  28. // @match https://redlib.frontendfriendly.xyz/*
  29. // @match https://redlib.incogniweb.net/*
  30. // @match https://redlib.nadeko.net/*
  31. // @match https://redlib.nirn.quest/*
  32. // @match https://redlib.nohost.network/*
  33. // @match https://redlib.privacy.com.de/*
  34. // @match https://redlib.privacyredirect.com/*
  35. // @match https://redlib.private.coffee/*
  36. // @match https://redlib.reallyaweso.me/*
  37. // @match https://redlib.seasi.dev/*
  38. // @match https://redlib.tux.pizza/*
  39. // @match https://redlib.vimmer.dev/*
  40. // @match https://rl.bloat.cat/*
  41. // @match https://rl.rootdo.com/*
  42. // @match https://redlib.perennialte.ch/*
  43. // @match https://lr.quitaxd.online/*
  44. // @match https://redlib.4o1x5.dev/*
  45. // @match https://redlib.nezumi.party/*
  46. // @match https://redlib.kittywi.re/*
  47. // @match https://reddit.idevicehacked.com/*
  48. // @match https://redlib.privacy.deals/*
  49. // @match https://reddit.owo.si/*
  50. // @match https://redlib.dnfetheus.xyz/*
  51. // @match https://safereddit.com/*
  52. // @match https://libreddit.eu.org/*
  53. // @match https://reddit.invak.id/*
  54. // @match https://redlib.cow.rip/*
  55. // @match https://redlib.r4fo.com/*
  56. // @match https://redlib.xn--hackerhhle-kcb.org/*
  57. // @match https://eu.safereddit.com/*
  58. // @match https://redlib.matthew.science/*
  59. // @match https://libreddit.freedit.eu/*
  60. // @match https://libreddit.hu/*
  61. // @match https://libreddit.kylrth.com/*
  62. // @match https://libreddit.lunar.icu/*
  63. // @match https://libreddit.mha.fi/*
  64. // @match https://libreddit.northboot.xyz/*
  65. // @match https://libreddit.oxymagnesium.com/*
  66. // @match https://libreddit.pussthecat.org/*
  67. // @match https://libreddit.spike.codes/*
  68. // @match https://libreddit.strongthany.cc/*
  69. // @match https://libreddit.tiekoetter.com/*
  70. // @match https://lr.4201337.xyz/*
  71. // @match https://lr.aeong.one/*
  72. // @match https://lr.artemislena.eu/*
  73. // @match https://lr.slipfox.xyz/*
  74. // @match https://r.walkx.fyi/*
  75. // @match https://reddit.rtrace.io/*
  76. // @match https://reddit.simo.sh/*
  77. // @match https://reddit.smnz.de/*
  78. // @match https://reddit.utsav2.dev/*
  79. // @match https://snoo.habedieeh.re/*
  80. // @match https://libreddit.kutay.dev/*
  81. // @match https://libreddit.tux.pizza/*
  82. // @match https://lr.vern.cc/*
  83. // @match https://r.darklab.sh/*
  84. // @match https://reddit.leptons.xyz/*
  85. // @match https://discuss.whatever.social/*
  86. // @match https://libreddit.kavin.rocks/*
  87. // @match https://libreddit.cachyos.org/*
  88. // @match https://libreddit.domain.glass/*
  89. // @match https://libreddit.privacy.com.de/*
  90. // @match https://reddit.baby/*
  91. // <<INSTANCES END HERE>>
  92.  
  93.  
  94. // ==/UserScript==
  95.  
  96. function main() {
  97. const navBar = document.querySelector('nav');
  98. if (!navBar) return
  99. const firstDivInNavBar = navBar.querySelector("div")
  100. const newButton = document.createElement("button")
  101. firstDivInNavBar.prepend(newButton)
  102. newButton.appendChild(document.createTextNode("New Instance"))
  103. newButton.onclick = () => {
  104. location.replace('https://farside.link/redlib/' + window.location.pathname + window.location.search);
  105. }
  106. }
  107.  
  108. main()

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址