-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need the title in the first line and the url in the second line, how should I set it? #5
Comments
试了%T\n%U 不行
如果你想复制链接的 |
感谢回复。万能的js,这个好。这个插件要是功能多点就好了。例如允许标题一行link一行,或者允许正则,因为很多link带参数,我想去掉没用的参数部分,目前是用 link cleaner 实现的。 |
Adding the ability to customize the format with special control characters line newline (\n) would be very helpful. If I could get the URL on a second line it would meet my needs. |
@AlbertWang2018 你可以下载一个油猴(https://chromewebstore.google.com/detail/%E7%AF%A1%E6%94%B9%E7%8C%B4/dhdgffkkebhmkfjojejmpbldmpobfkfo 篡改猴) 然后用js写, 正则也能支持, 而且可以有多个菜单,这样能复制多种格式 , 菜单长这样: |
Thanks for the suggestion. Unfortunately, I'm locked down to using Edge and I can't find TabCopy in the Edge extension store. |
I was hoping for an easier solution, but this could work, thanks. |
@jimjoh you can install chrome extension into edge , because chrome and edge are both chromium-based browser,they use same extension package format |
javascript:(function(){ const el = document.createElement('textarea'); el.value = decodeURIComponent('[' +document.title + ']' +'\n' + document.URL.split('/?')[0]+ ' '); document.body.appendChild(el); el.select(); document.execCommand('copy'); document.body.removeChild(el); })(); In the end, I used this js to put the favorites bar to solve my needs. Thanks for your help. |
Javascript worked for me too, thanks. |
No description provided.
The text was updated successfully, but these errors were encountered: