Remove User ID from Stack Overflow Share URLs

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

As of 09.09.2018. See ბოლო ვერსია.

ავტორი
Kevin Locke
რეიტინგი
0 0 0
ვერსია
1.0.0
შექმნილია
09.09.2018
განახლებულია
09.09.2018
Size
2,92 KB
ლიცენზია
MIT
გამოყენებს მათ

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.