Skip to main content
edited tags
Link
Tim Stone
  • 4.7k
  • 3
  • 22
  • 32
remove userscripts tag, a rare synonym of the user-script tag
Link
hippietrail
  • 882
  • 4
  • 14
Source Link
hippietrail
  • 882
  • 4
  • 14

A way to mimic the "share a link to this answer" dialog from a user script?

I would like to make a browser "user script" (like Greasemonkey etc) that can pop open a window with a text field for the user to select and copy so they can paste it elsewhere.

I want to match the site and there's already the "share a link to this answer" dialog:

"share a link to this answer" dialog

Is there any way to call this code from a user script? Is the code available somewhere where I can make my own version of it?

Is there generally a "best" way a user script to mimic a piece of Stack Exchange GUI like this?