OpenCurrentTab

このアドオンを使用すると通常だと新しいタブで開かれるリンクを現在のタブで開くことができます。 操作方法はアドオンの設定画面から確認してください。 また、明示的に現在のタブで開く時以外の動作はブラウザ設定や他のアドオンの動作に準拠します。 良い感じのプラグインが無かったので自作しました。 使用して発生した問題は一切保証しません。
Premium users can view and search full source code, and see the source code differences between two versions.
Upgrade to premium
manifest.json
{
  "manifest_version": 2,
  "name": "OpenCurrentTab",
  "version": "1.1.5resigned1",
  "description": "リンクを任意に現在のタブで開けます。",
  "applications": {
    "gecko": {
      "id": "{bb69b54e-e27b-4b5a-b87a-07076121b194}",
      "strict_min_version": "56.0"
    }
  },
  "permissions": [
    "contextMenus",
    "tabs",
    "storage"
  ],
  "background": {
    "scripts": [
      "background.js"
    ]
  },
  "content_scripts": [
    {
      "matches": [
        "*://*/*"
      ],
      "js": [
        "content_scripts/onClick.js"
      ],
      "all_frames": true,
      "run_at": "document_end"
    }
  ],
  "options_ui": {
    "page": "option.html"
  }
}