Problem: You have found an interesting web page and would like to copy its link, for use with Twitter or an editor. That means you need to perform several steps: First, you copy the URL. Second, you go back to copy the title (which might be tricky to get at). Third, you construct the link from the copied pieces.
Note that Twitter provides a bookmarklet for publishing a link, but it relies on the Twitter web application which does not handle multiple accounts well. The solution shown here can be used with Twitter desktop applications.
var hosts = { "www.macrumors.com": { re: /^(.*) - Mac Rumors$/, twit: "@MacRumors", htag: "#mac" } }Explanation: If the host is www.macrumors.com then