AP-intranet + open TP in new tab

AP-intranet + open TP in new tab.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

You will need to install an extension such as Tampermonkey to install this script.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name        AP-intranet + open TP in new tab
// @description  AP-intranet + open TP in new tab.
// @namespace   english
// @include     http*://*globaljtbgroup.sharepoint.com/sites/AsiaPacific/Pages/Home.asp*
// @version     1.15
// @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("keypress", {
  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("ms-designer-ribbon");

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



window.open("https://google.com", '_blank');




}



window.open("https://pa-jtbsyd.nx.tourplan.net/tourplannx/", '_blank');




/*

window.addEventListener("load", (event) => {
  tpnxinitpukka();setTimeout(() => { tpnxinitpukka(); }, 888);
});

*/