Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

No, there isn't.

We don't guarantee the javascript interfaces won't change (or that that dialog won't be radically altered). Generally speaking, if you want to mimic a piece of our UI you'll just have to re-implement it if you want it to be stable.

share|improve this answer
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .