总在当前窗口加载新网页

适用于edge/chrome创建的网页应用,按自己的需求添加匹配网站

目前為 2020-12-15 提交的版本,檢視 最新版本

// ==UserScript==
// @name         总在当前窗口加载新网页
// @namespace    openOnSelf
// @version      0.1
// @description  适用于edge/chrome创建的网页应用,按自己的需求添加匹配网站
// @author       You
// @match        https://pan.baidu.com/*
// @grant        none
// ==/UserScript==

(function() {
    var f_open = window.open;
    window.open = function(url){
        f_open(url, '_self');
        //   f_open(url, 'newwindow' + new Date().getTime().toString(), 'channelmode=1,fullscreen=1,height=1920, width=1080, top=0,left=0, toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no,status=no');
    }
})();