🏠 Home 

新标签打开链接

链接强制在新建标签中打开 Open a URL in background new tab


安装此脚本?
  1. // ==UserScript==
  2. // @name 新标签打开链接
  3. // @author daysv
  4. // @namespace http://daysv.github.com
  5. // @description 链接强制在新建标签中打开 Open a URL in background new tab
  6. // @version 0.3.0
  7. // @include *
  8. // @run-at document-start
  9. // @grant GM_openInTab
  10. // ==/UserScript==
  11. (function (win) {
  12. win.addEventListener('click', function (e) {
  13. if (e.target.href && e.target.tagName === 'A' && e.which === 1) {
  14. e.preventDefault();
  15. GM_openInTab(e.target.href, true);
  16. }
  17. }, true);
  18. })(window);