【发布时间】:2011-12-16 13:44:34
【问题描述】:
我想做一个小书签来改变网页
http://user.tumblr.com/post/123456789
致
http://user.tumblr.com/liked/by/user
只需点击一下。我通常可以一起使用 frankensteining 代码,而且我一直在查看使用“window.location”的 Tumblr 手动转发按钮以及 Bookmarklet to edit current URL 和 Replace end characters of current URL with bookmarklet
我看不到任何可以将子域提取到变量中然后将其放置在新 URL 中的东西。我确实偶然发现了这段代码:
^http://([^.]+)\.domain\.com
但我不知道这意味着什么或如何使用它。
【问题讨论】:
标签: javascript url subdomain bookmarklet tumblr