Greasy Fork is available in English.

Prompt On New Tab

Display a confirmation dialog when the site wants to open a new tab, so that user has the chance to cancel or allow it to open in a new or current tab. This script won't work if the user opens a link in a new tab using web browser's "Open in a new tab", "Open in background tab", or similar which are web browser internal or browser extension features.

這裡只顯示彼此間有代碼差異的版本。 顯示所有版本。

  • v1.2.19 2020-02-01 Decreased unnecessary prompts when opening a link or submitting a form into a frame.
  • v1.2.18 2019-11-07 Fixed prompt may still show although a new tab is not about to be opened
  • v1.2.17 2018-05-01 Fixed unnecessary prompt when a website uses frame-set. Added additional confirmation dialog to make the URL open in current tab instead of a new tab (disableable via setting in the script; enabled by default).
  • v1.1.16 2018-03-01 Fixed broken form submission
  • v1.1.15 2018-02-27 Made event listeners stick as last listeners. Fixes unnecessary prompts on Tumblr.
  • v1.1.14 2018-02-19 Fixed right-lick on a link always prompt user. Fixed user isn't prompted if a form submission is submitted using script. Applied more efficient method of handling events.
  • v1.1.11 2018-02-18 Bugfix for previous update
  • v1.1.10 2018-02-18 Bugfix for previous update
  • v1.1.9 2018-02-18 Included predefined window names to avoid unnecessary prompts
  • v1.1.8 2018-02-17 Applied workaround for getting information from secured frame elements
  • v1.1.7 2018-02-17 Fixed website script got broken when accessing a secured frame
  • v1.1.6 2018-02-14 Fixed a bug which broke the whole script
  • v1.1.5 2018-02-14 URL check is now bypassed if the target name points to an frame element. For e.g. jsfiddle.net
  • v1.1.4 2018-02-14 Fixed list optimization bug.
  • v1.1.3 2018-02-14 Fixed form submission failed to be submitted if performed manually by JavaScript.
  • v1.1.2 2018-02-14 Fixed new tab didn't open even if the user allows it, when JavaScript is used to open the new tab. Added URL blacklist and whitelist to automate prompting.
  • v1.0.1 2018-02-12