自动窗口化HV

打开 hentaiverse.org/popup 时自动跳转窗口版HV

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         自动窗口化HV
// @name:en      Automatic windowing of HV
// @name:zh-TW   自動窗口化HV
// @name:ja      自動ウィンドウ化HV
// @namespace    hentaiverse.org/popup
// @version      0.1
// @author       FeiZhaixiage
// @description         打开 hentaiverse.org/popup 时自动跳转窗口版HV
// @description:en      Automatically switch to the window version of HV when opening hentaiverse.org/popup.
// @description:zh-tw   打開 hentaiverse.org/popup 時自動跳轉窗口版HV 
// @description:ja      サイト「hentaiverse.org/popup」を開くと、自動的にウィンドウ版のHVにリダイレクトされます。
// @match        https://hentaiverse.org/popup
// @grant        none
// @run-at       document-start
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    function popUp(URL,w,h) {
	window.open(URL,"_pu"+(Math.random()+"").replace(/0\./,""),"toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+w+",height="+h+",left="+((screen.width-w)/2)+",top="+((screen.height-h)/2));
	return false;
    }
    popUp('https://hentaiverse.org/',1250,720);
    window.close();
})();