info

(不要安装,只是学习如何制作和发布脚本)提示用户当前的各种信息,包括:时间、网址、默认文本、浏览器信息、显示器信息

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name           info
// @namespace      undefined
// @version        1
// @description   (不要安装,只是学习如何制作和发布脚本)提示用户当前的各种信息,包括:时间、网址、默认文本、浏览器信息、显示器信息
// @author         apperception
// @include        *
// @grant          none
// ==/UserScript==

window.setTimeout(function(){alert("Hello World!")},60);
var d=new Date();
alert('当前的时间:'+d+'、'+d.toTimeString()+';'+
	'当前访问网站的网址:'+location.hostname+';'+
	'当前页的默认文本:'+defaultStatus+';'+
	'浏览器的相关信息:'+navigator.appCodeName+';'+
	navigator.appName+';'+
	navigator.appVersion+';'+
	'当前浏览器是否启用cookie:'+navigator.cookieEnabled+';'+
	'当前运行浏览器的操作平台系统:'+navigator.platform+';'+
	'当前浏览器是否启用Java:'+navigator.javaEnabled()+';'+
	'显示器屏幕的宽度和高度:'+screen.width+'*'+screen.height);