提示用户当前的各种信息

提示用户当前的各种信息,包括:时间、网址、默认文本、浏览器信息、显示器信息

Verze ze dne 12. 12. 2016. Zobrazit nejnovější verzi.

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          提示用户当前的各种信息
// @namespace     undefined
// @version       1
// @description    提示用户当前的各种信息,包括:时间、网址、默认文本、浏览器信息、显示器信息
// @author         apperception
// @include        *
// ==/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.height+'*'+screen.width);