Options - k08045kk/CopyTabTitleUrl GitHub Wiki

You can customize the extension from options page.
For items marked with 🧪, see Extended mode.

Action (Browser Action)

Add a button to your browser toolbar. By clicking the button, you can perform the following functions.
In a mobile environment, the menu appears in the global menu, and the following functions can be performed by tapping the menu.

  • [Open popup]
    • Click on the browser action to open the popup.
    • [Use format2]
      • Include format2 in the popup.
    • [Use context menu title 🧪] [v3.1.0]
      • Use the context menu title for the popup item name.
      • Newline characters are not allowed in the title.
      • "title and URL" cannot be set. If you want to set it, please specify a space at the end.
      • Idea✨ (Unimplemented): "tab", "window", and "all" can also be changed.
        • This feature can be useful for translation.
    • [Show format tooltip 🧪] [v3.1.0]
      • Set format in the title attribute.
    • [Remember target 🧪] [v3.3.1]
      • Remember previous target settings.
      • Idea✨ (Unimplemented): May be merged into [Set the initial value of the target].
        • tab / window / all / remember
    • Idea✨ (Unimplemented): Making fixed strings translatable (free string)
      • "window", "all", "tab", "tabs"
  • [Copy format]
    • Click on the browser action to immediately perform the copy process.
    • [Show completion popup]
      • Show notification when copied

Context Menu

Add an item to the right-click menu.

If there is no selection, it will not be added to the context menu.
If there is only one item, a single menu is displayed; if there are more than one, they are grouped.

If you still need more menus, you can use ${menu} for even more context menus.

  • [Set only format9 in specific context menu 🧪🧪]🗑️
    • Selection, Link, Image Set only format9 in context menus.
    • Expected usage: format9 = [${linkSelectionTitle}](${linkSrcUrl})
    • Idea✨ (Unimplemented): [Enable ${menu} 🧪🧪] can be used instead.
      • Therefore, Selection, Link, and Image contexts may also be deprecated. 🗑️

Keyboard Shortcut

You can change the shortcut from the edit shortcut page of the standard browser extension.

  • Chrome: chrome://extensions/shortcuts
  • Firefox: [about:addons] > [⚙] > [Manage Extension Shortcuts]

The default setting for format is [Alt+C]. The initial setting for format2 is none.
Using the shortcut, you can use the functions set in format / format2 for the active tab.

  • [Use context menu target 🧪] [v3.3.2]
    • You can target window and all, not just tab.
    • If separator is set as a target, it will be treated as a tab.
    • Idea✨ (Unimplemented): Introducing separate targeting for keyboard shortcuts.

※ Note: [Ctrl+Shift+C] is already used for "Inspect" in Chrome.

Format

You can freely create copy strings using the format ${value}.
You can use even more advanced Format by enabling [Use Extended Mode].

Please refer to following URL for details on format.
see https://github.com/k08045kk/CopyTabTitleUrl/wiki/Format

Standard

format description version
${title} Page title v0.0.7
${url} Page URL v0.0.7
${enter} Newline characters (Windows:\r\n, Mac/Linux:\n) v0.0.9
${$} $ v1.5.4

※ Non-standard features will not work unless "Extended Mode" is enabled.

Basic

Character code

Info (Context Menu)

Date

URL

...

Extended Format

You can use even more advanced Format by enabling [Use Extended Edit Mode 🧪].

  • [Enable programmable format 🧪🧪] [v3.1.0]
  • [Enable content script for active tab 🧪🧪] [v3.1.0]
    • [Enable content script for all frames 🧪🧪] [v3.4.4]
    • [Enable content script for main world 🧪🧪] [v3.3.6]
    • [Inject content script after page loaded 🧪🧪] (v3.5.6)
  • [Enable ${text0} - ${text9} 🧪🧪] [v3.3.4]
    • [Enable ${menu} 🧪🧪] [v3.4.1]

Please refer to following URL for details.
see https://github.com/k08045kk/CopyTabTitleUrl/wiki/Format

Others

  • [Decode the URL]
    • Interpret percent encoding.
    • Example: ✅ Enable: https://translate.google.co.jp/?text=日本語
    • Example: ⬜ Disable: https://translate.google.co.jp/?text=%E6%97%A5%E6%9C%AC%E8%AA%9E
    • Idea✨ (Unimplemented): Providing individual decoding functionality: decodePercent(url)
  • [Decode the Punycode]
    • Interpret the Punycode.
    • Example: ✅ Enable: https://日本語.jp/
    • Example: ⬜ Disable: https://xn--wgv71a119e.jp/
    • Idea✨ (Unimplemented): Providing individual decoding functionality: decodePunycode(url)
  • [Copy using Clipboard API 🧪] (Firefox only 🦊)
    • Try this if copying doesn't work in Firefox.
    • dom.event.clipboardevents.enabled=false Countermeasure.
      • No automatic detection. Please set it explicitly.
    • ✅ Enable: navigator.clipboard.writeText()
    • ⬜ Disable: document.execCommand('copy')
      • It works with Chrome with disabled behavior.
  • [Copy in text/html format 🧪]
    • Copy not only text/plain but also text/html format.
    • When matching the regular expression: /<.+>/
    • Does not work if [Copy using Clipboard API] is enabled.
    • [title and URL][title][URL] will not work. Works only with [format][formatn].

  • Newline character 🧪
    • Set ${enter} explicitly.(Default: Windows:CRLF / Other:LF
    • Older MacOS are not considered.
  • Separate multiple tabs 🧪
    • Separate multiple tabs with a specified string.
    • Some formatting format are available. (Example: ${enter}, ${CR}, ${LF})
    • Dynamically determined format values are not accessible. (Example: ${title}, ${url})

  • [Exclude pinned tabs]
    • Exclude pinned tabs from the selected tabs.
  • [Exclude hidden tabs] (Firefox only 🦊)
    • Exclude hidden tabs from the selected tabs.
    • Firefox's tab management extension allows you to hide some of the tabs on the tab bar.

  • [Copy active tab if no tab 🧪🧪] [v3.4.6]
    • If there is no tab to copy, the active tab will be output.
    • copy something.
  • [Copy space if empty string 🧪🧪] [v3.3.5]
    • If an empty string is to be copied, a space will be output.
    • If you paste empty characters, you cannot overwrite the selected string. This can be misleading when debugging.

  • Theme 🧪 [3.5.11]
    • Set the theme.
    • In the case of Firefox, the browser theme you use appears to override the OS default settings.
  • [Remove newlines when paste 🧪🧪] [v3.4.3]
    • Remoe newline characters when pasting to Options page.
    • If disabled, newlines are normally replaced with spaces in the output.
    • This is useful when creating complex formats. However, this is not a recommendation for complex format.
    • Idea✨ (Unimplemented): May be migrated/integrated into enhanced mode or standard mode.
  • [Use English on Options page] [v3.1.0]
    • The Options page is displayed in English.
  • [Use Extended Edit Mode 🧪] [v3.1.0]
    • Displays functions marked with 🧪🧪.
    • Edit the target in the context menu of [title and URL][title][URL].
    • Edit the format of [title and URL][title][URL].
    • Show options that don't work on mobile.
      • Changing the settings won't make it work, but it may work unexpectedly.
  • [Use Extended Mode]
    • Displays functions marked with 🧪.
      • The 🧪 display differs from the actual Options page display.
    • It opens up advanced features that are hidden in the standard mode.
      • It exists to limit functionality that is too complex for users who are not familiar with extensions.
    • The mode is intended for the following users:
      • Standard Mode: Beginner: Provides the minimum necessary functionality.
      • Extended Mode: Advanced: Provides generally sufficient functionality.
      • Extended Edit Mode: Maniac: Provides all reproducible functionality, including experimental functionality.
      • Idea✨ (Unimplemented): The mode name is already outdated. If there is a better one, it needs to be changed.

Remarks

  • Window order when copying all tabs
    • Currently, it copies in window creation order.
    • You can control the order of windows by closing and then restoring them.
    • Idea✨ (Unimplemented): Reordering windows in a way other than window creation order (#77)