New Window Opener With Website

Opens a new window with a specified website in full-screen mode when the ` key is pressed. Now works on every site instead of *://*/* (choose the site)

2024-05-15 기준 버전입니다. 최신 버전을 확인하세요.

이 스크립트를 설치하려면 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         New Window Opener With Website
// @namespace    http://tampermonkey.net/
// @version      1.2.1
// @description  Opens a new window with a specified website in full-screen mode when the ` key is pressed. Now works on every site instead of *://*/* (choose the site)
// @author       helpful101
// @license      MIT
// @match        *
// ==/UserScript==

(function() {
    'use strict';

    // Function to handle the key press event
    function handleKeyPress(event) {
        // Check if the pressed key is the ` key
        if (event.key === "`") {
            // Specify the URL of the website you want to open
            var websiteURL = "https://example.com"; // Replace "https://example.com" with the desired URL

            // Open a new window with the specified website and set its dimensions to fill the screen
            var newWindow = window.open(websiteURL, "_blank", "width=" + screen.availWidth + ", height=" + screen.availHeight);

            // Move the new window to the top-left corner of the screen
            newWindow.moveTo(0, 0);
        }
    }

    // Add event listener for key press events
    document.addEventListener('keydown', handleKeyPress);
})();