# Possibility of a "copy thread url script to clipboard" feature?

**URL:** <https://boards.straightdope.com/t/possibility-of-a-copy-thread-url-script-to-clipboard-feature/512598>\
**Category:** About This Message Board\
**Created:** [October 4, 2009, 10:51pm UTC](https://boards.straightdope.com/t/possibility-of-a-copy-thread-url-script-to-clipboard-feature/512598 "2009-10-04T22:51:18Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lobsang](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lobsang/32/4067_2.png) [@Lobsang](https://boards.straightdope.com/u/Lobsang)\
**Post date:** [October 4, 2009, 10:51pm UTC](https://boards.straightdope.com/t/possibility-of-a-copy-thread-url-script-to-clipboard-feature/512598/1 "2009-10-04T22:51:18Z")

</div>

As most of you know, something that happens a LOT on the dope is people referencing threads from other threads.

Unless I’m missing a trick the process is quite complicated…

Right click on the straight dope message board link or the forum link near the top of the page.

Click ‘open in new tab’ or ‘open in new window’.

Go to the thread you want to quote.

Copy its link.

Go back to the thread you’re creating.

Paste link.

Go back (again) to the thread you’re linking to.

Copy the name of the thread.

Go back to your post.

Paste it into the appropriate part of the url tag.  
[whew!]  
So I reckon it’d be a lot better if you could go to the thread in question. Click a button near it’s title that says ‘copy url script to clipboard’ and this would then generate the url script, with the url in the url part and the name of the thread in the name part, copy it to your clipboard (or to a box where you could ctrl-c it.  
I doubt this would be easy or possible, but an interesting idea yes?

---

<div class="post-metadata">

**Author:** ![rowrrbazzle](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/rowrrbazzle/32/414_2.png) [@rowrrbazzle](https://boards.straightdope.com/u/rowrrbazzle)\
**Post date:** [October 4, 2009, 11:56pm UTC](https://boards.straightdope.com/t/possibility-of-a-copy-thread-url-script-to-clipboard-feature/512598/2 "2009-10-04T23:56:05Z")

</div>

There’s already a feature that does this.

Navigate to the post in another thread you want to copy.

Just to the right of its “quote” button is a button containing double close quotes. Click on that.

Then go back to the thread you want to post in. You now have two choices. Either a) compose your post in the quick reply box, then click “go advanced” to bring up a preview and the standard reply page; or b) click on “post reply” to bring up the standard reply page and compose your post.

Just below the input area will be the message “You have selected 1 post that is not part of this thread. Quote this post as well, or deselect this post.” Click on “quote this post as well” and voilà!

---

<div class="post-metadata">

**Author:** ![Covered\_In\_Bees](https://avatars.discourse-cdn.com/v4/letter/c/7ab992/32.png) [@Covered\_In\_Bees](https://boards.straightdope.com/u/Covered_In_Bees)\
**Post date:** [October 5, 2009, 1:22am UTC](https://boards.straightdope.com/t/possibility-of-a-copy-thread-url-script-to-clipboard-feature/512598/3 "2009-10-05T01:22:01Z")

</div>

If you have FireFox you can right-click and “copy link location”. It cuts out the step of having to view the thread to steal the URL from the navigation bar or whatever it’s called at the top.

So I hope that helps and that I didn’t misunderstand your post.

---

<div class="post-metadata">

**Author:** ![Lobsang](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lobsang/32/4067_2.png) [@Lobsang](https://boards.straightdope.com/u/Lobsang)\
**Post date:** [October 5, 2009, 1:24am UTC](https://boards.straightdope.com/t/possibility-of-a-copy-thread-url-script-to-clipboard-feature/512598/4 "2009-10-05T01:24:48Z")

</div>

I think you misunderstand. [ETA: Not you **Coverd\_In\_Bees!** , the person above you. your post came in as I was typing mine] I’m not looking to _quote_ the thread (not post). I’m looking to _create a link_ to it.

Such as…

"Inspired by [noparse][Name of thread goes here]([http://url](http://url) of thread goes here)[/noparse] "  
ETA Again: **Coverd\_In\_Bees!** that helps a bit (In fact sometimes it’s what I do) But I still need some of those steps. I need to be on the forum page to be able to do that firefox trick, and I need to keep the post open as a place to cut and paste (and because I’ve already begun it. I’m not a good planner)

---

<div class="post-metadata">

**Author:** ![QuercusMax](https://avatars.discourse-cdn.com/v4/letter/q/8baadc/32.png) [@QuercusMax](https://boards.straightdope.com/u/QuercusMax)\
**Post date:** [October 5, 2009, 1:48am UTC](https://boards.straightdope.com/t/possibility-of-a-copy-thread-url-script-to-clipboard-feature/512598/5 "2009-10-05T01:48:51Z")

</div>

Well, I had 99% of a Javascript [bookmarklet](http://en.wikipedia.org/wiki/Bookmarklet) to do this written, except for one crucial thing - most browsers don’t let you copy to clipboard thru Javascript.

I found a library called ZeroClipboard ([Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/zeroclipboard/)) that will let you do this thru a horrible hack (using Flash to do the copying), but it seems like massive overkill.

This seems like a nice compromise: just make a new bookmark with the code below in to your bookmark toolbar, and go hog wild. 🙂

```auto

javascript:{var%20title%20=%20document.title.replace(/%20-%20Straight%20Dope%20Message%20Board/,%20'');%20var%20loc=document.location;%20tag%20=%20'['%20+%20title%20+%20']('%20+%20loc%20+%20')';%20%20w%20=%20window.open('',%20'Copy%20Me!',%20'width=300,%20height=300');%20w.document.body.innerHTML%20=%20'<h1>Test</h1>'%20+%20tag;}

```

This will pop up a little window that you can copy the link out of. Not great, but better than nothing.

Disclaimer: this is the first bookmarklet I’ve ever written. So don’t blame me if it shaves your dog or sleeps with your sister.

---

<div class="post-metadata">

**Author:** ![QuercusMax](https://avatars.discourse-cdn.com/v4/letter/q/8baadc/32.png) [@QuercusMax](https://boards.straightdope.com/u/QuercusMax)\
**Post date:** [October 5, 2009, 1:55am UTC](https://boards.straightdope.com/t/possibility-of-a-copy-thread-url-script-to-clipboard-feature/512598/6 "2009-10-05T01:55:01Z")

</div>

Well, that didn’t work because the hamsters thought my javascript looked like a url tag. Try this instead:

```auto

javascript:{var title = document.title.replace(/ - Straight Dope Message Board/, ''); var loc=document.location; tag = '[UR' + 'L="' + loc + '"]' + title + ''; w = window.open('', 'Copy Me!', 'width=300, height=300'); w.document.body.innerHTML = tag;}

```

---

<div class="post-metadata">

**Author:** ![Lobsang](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lobsang/32/4067_2.png) [@Lobsang](https://boards.straightdope.com/u/Lobsang)\
**Post date:** [October 5, 2009, 4:03pm UTC](https://boards.straightdope.com/t/possibility-of-a-copy-thread-url-script-to-clipboard-feature/512598/7 "2009-10-05T16:03:34Z")

</div>

> [@QuercusMax](#):
>
> Well, that didn’t work because the hamsters thought my javascript looked like a url tag. Try this instead:
> 
> ```auto
> 
> javascript:{var title = document.title.replace(/ - Straight Dope Message Board/, ''); var loc=document.location; tag = '[UR' + 'L="' + loc + '"]' + title + ''; w = window.open('', 'Copy Me!', 'width=300, height=300'); w.document.body.innerHTML = tag;}
> 
> ```

Dude! It works!..

[Possibility of a “copy thread url script to clipboard” feature?](http://boards.straightdope.com/sdmb/showthread.php?p=11628127#post11628127)

If there’s anything I can do for you in return. 🙂

---

<div class="post-metadata">

**Author:** ![QuercusMax](https://avatars.discourse-cdn.com/v4/letter/q/8baadc/32.png) [@QuercusMax](https://boards.straightdope.com/u/QuercusMax)\
**Post date:** [October 5, 2009, 4:07pm UTC](https://boards.straightdope.com/t/possibility-of-a-copy-thread-url-script-to-clipboard-feature/512598/8 "2009-10-05T16:07:19Z")

</div>

> [@Lobsang](#):
>
> Dude! It works!..
> 
> [Possibility of a “copy thread url script to clipboard” feature?](http://boards.straightdope.com/sdmb/showthread.php?p=11628127#post11628127)
> 
> If there’s anything I can do for you in return. 🙂

You’re welcome! I have a couple more ideas for how to improve it - I might post them tonight. I think i can make a text-entry field that will have the text pre-selected, so you can just hit ctrl-C to copy. Also, it should be pretty easy to strip off any &page= and #post’s from the end of the URL, if you just want to go to the beginning of the thread.

---

<div class="post-metadata">

**Author:** ![Lobsang](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lobsang/32/4067_2.png) [@Lobsang](https://boards.straightdope.com/u/Lobsang)\
**Post date:** [October 5, 2009, 4:26pm UTC](https://boards.straightdope.com/t/possibility-of-a-copy-thread-url-script-to-clipboard-feature/512598/9 "2009-10-05T16:26:27Z")

</div>

I would almost always just want the thread, so for my purposes it does the job.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [October 5, 2009, 5:00pm UTC](https://boards.straightdope.com/t/possibility-of-a-copy-thread-url-script-to-clipboard-feature/512598/10 "2009-10-05T17:00:01Z")

</div>

How is this any simpler than clicking in the address bar, right-clicking, and selecting “copy”?

---

<div class="post-metadata">

**Author:** ![Lobsang](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lobsang/32/4067_2.png) [@Lobsang](https://boards.straightdope.com/u/Lobsang)\
**Post date:** [October 5, 2009, 5:25pm UTC](https://boards.straightdope.com/t/possibility-of-a-copy-thread-url-script-to-clipboard-feature/512598/11 "2009-10-05T17:25:27Z")

</div>

> [@Chronos](#):
>
> How is this any simpler than clicking in the address bar, right-clicking, and selecting “copy”?

(Sigh)

That doesn’t get the thread’s name.

ETA: It’s a LOT SIMPLER!

---

<div class="post-metadata">

**Author:** ![Lobsang](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lobsang/32/4067_2.png) [@Lobsang](https://boards.straightdope.com/u/Lobsang)\
**Post date:** [October 5, 2009, 5:43pm UTC](https://boards.straightdope.com/t/possibility-of-a-copy-thread-url-script-to-clipboard-feature/512598/12 "2009-10-05T17:43:11Z")

</div>

Whoops. Wrong thread.

---

<div class="post-metadata">

**Author:** ![fubbleskag](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fubbleskag](https://boards.straightdope.com/u/fubbleskag)\
**Post date:** [October 5, 2009, 6:02pm UTC](https://boards.straightdope.com/t/possibility-of-a-copy-thread-url-script-to-clipboard-feature/512598/13 "2009-10-05T18:02:56Z")

</div>

> [@Chronos](#):
>
> How is this any simpler than clicking in the address bar, right-clicking, and selecting “copy”?

it’s specifically for making the VBulletin code for urls within a post, ie.

```auto

[ur **** l=http://threadurlgoeshere.com]Thread Title Goes Here

```

---

<div class="post-metadata">

**Author:** ![rowrrbazzle](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/rowrrbazzle/32/414_2.png) [@rowrrbazzle](https://boards.straightdope.com/u/rowrrbazzle)\
**Post date:** [October 5, 2009, 7:57pm UTC](https://boards.straightdope.com/t/possibility-of-a-copy-thread-url-script-to-clipboard-feature/512598/14 "2009-10-05T19:57:50Z")

</div>

:smack:

Sorry, I’ve been a bit short on sleep.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [October 5, 2009, 8:56pm UTC](https://boards.straightdope.com/t/possibility-of-a-copy-thread-url-script-to-clipboard-feature/512598/15 "2009-10-05T20:56:16Z")

</div>

Oh, I get it now.

---

<div class="post-metadata">

**Author:** ![Lobsang](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lobsang/32/4067_2.png) [@Lobsang](https://boards.straightdope.com/u/Lobsang)\
**Post date:** [October 5, 2009, 9:42pm UTC](https://boards.straightdope.com/t/possibility-of-a-copy-thread-url-script-to-clipboard-feature/512598/16 "2009-10-05T21:42:09Z")

</div>

No worries.

It seems to work quite well for other websites…

[BBC NEWS | Politics | Freeze top public pay - Darling](http://news.bbc.co.uk/1/hi/uk_politics/8291810.stm)
