Remove User ID from Stack Overflow Share URLs

Removes the User ID from the URL displayed by the "Share"

Mint 2018.09.09.. Lásd a legutóbbi verzió

Fejlesztő
Kevin Locke
Értékelések
0 0 0
Verzió
1.0.0
Létrehozva
2018.09.09.
Frissítve
2018.09.09.
Size
3 KB
Licensz
MIT
Érvényes

A userscript to remove the User ID from short URLs displayed by the "Share" button on Stack Overflow and other Stack Exchange sites.

Important: The User ID is used to attribute links to your user account for badges. Removing it will remove the link attribution and prevent you from obtaining those badges.

Given the above restriction, why would someone want to remove the User ID? For me, the value of shorter, anonymous, user-invariant URLs far outweighs the value of link attribution. Others may have specific tools or use cases for Stack Overflow URLs which expect a certain format.

Features

  • Removes the User ID from both question and answer URLs.
  • Re-selects the URL text after changing to preserve copy behavior.
  • Only removes the User ID from recognized URL formats. If URL formats change, there should be no risk of removing non-User ID URL parts.