Remove User ID from Stack Overflow Share URLs

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

اعتبارا من 09-09-2018. شاهد أحدث إصدار.

المؤلف
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.