Reddit Links Open in Same Tab

Enforce `target="_self"` on links within Reddit posts and messages on desktop, delevoped for next chapter links on r/HFY.

Voici les versions de ce script où le code a été modifié. Voir toutes les versions.

  • v1.8 02/02/2024
  • v1.7 01/02/2024
    • now redirects to old.reddit.com if on www.reddit.com from a /s/ share link redirect
    • no longer edits /s/ share link targets on old.reddit.com as the redirect to the real page only works on www.reddit.com due to soulless corpo nonsense
  • v1.6 28/11/2023

    add error handling, specify tags with href attributes in querySelectorAll

  • v1.5 28/10/2023

    add handling of redd.it links while browsing old.reddit.com

  • v1.4 27/10/2023

    now works on links in messages like from the UpdateMeBot used on r/HFY

  • v1.3 26/10/2023

    fix event handling on old.reddit.com

  • v1.2 26/10/2023

    also match on old.reddit.com

  • v1.1 30/04/2023
  • v1.0 23/04/2023