User:Tom-/screen log.js

if ( location.href.toLowerCase == "http://en.wikipedia.org/wiki/main_page" ) {	var screenStr = "";

if ( document.body.offsetWidth ) screenStr += "&viewportWidth=" + document.body.offsetWidth;

if ( window.screen ) {		screenStr += "&screenHeight=" + screen.height; screenStr += "&screenWidth=" + screen.width; }

if ( screenStr ) document.write(""); }