homepage pinned, open new tab when launch browser

homepage pinned, open new tab when launch browser.

目前為 2024-07-11 提交的版本,檢視 最新版本

// ==UserScript==
// @name        homepage pinned, open new tab when launch browser 
// @namespace   english
// @description  homepage pinned, open new tab when launch browser.
// @include     http*://*globaljtbgroup.sharepoint.com/sites/AsiaPacific/Pages/Home.asp*
// @version     1.4
// @run-at document-end
// @grant       GM_addStyle
// @license MIT
// ==/UserScript==

// Main - CSS added to header 
/*
var style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = '                     ';
document.getElementsByTagName('head')[0].appendChild(style);
*/




function tpnxinitpukka(){


let event = new KeyboardEvent("type", {
  bubbles: true,
  cancelable: true,
  charCode: 0,
  keyCode: 84,
  key: "",
  shiftKey: false,
  altKey: false,
  ctrlKey: true,
  metaKey: false,
  repeat: false,
  location: KeyboardEvent.DOM_KEY_LOCATION_STANDARD,
});


// Select the element to target
let inputElement = document.getElementById("myInput");

// Create and dispatch the event
inputElement.dispatchEvent(event);


}

 
setTimeout(() => { tpnxinitpukka(); }, 888);

tpnxinitpukka();

window.onpaint = tpnxinitpukka();





QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址