YSlow

YSlow for Firefox Greasemonkey

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name        YSlow
// @namespace   http://feifeihang.info
// @description YSlow for Firefox Greasemonkey
// @include     *
// @version     1
// @grant       GM_registerMenuCommand
// ==/UserScript==
var YSLOW = 'javascript%3A%28function%28y%2Cp%2Co%29%7Bp%3Dy.body.appendChild%28y.createElement%28%27iframe%27%29%29%3Bp.id%3D%27YSLOW-bookmarklet%27%3Bp.style.cssText%3D%27display%3Anone%27%3Bo%3Dp.contentWindow.document%3Bo.open%28%29.write%28%27%3Chead%3E%3Cbody%2520onload%3D%22YUI_config%3D%7Bwin%3Awindow.parent%2Cdoc%3Awindow.parent.document%7D%3Bvar%2520d%3Ddocument%3Bd.getElementsByTagName%28%5C%27head%5C%27%29%5B0%5D.appendChild%28d.createElement%28%5C%27script%5C%27%29%29.src%3D%5C%27http%3A%2F%2Fyslow.org%2Fyslow-bookmarklet.js%5C%27%22%3E%27%29%3Bo.close%28%29%7D%28document%29%29';
var showYslow = function () {
  var anchor = document.createElement('a');
  anchor.setAttribute('href', decodeURIComponent(YSLOW));
  document.body.appendChild(anchor);
  anchor.click();
  anchor.remove();
};
GM_registerMenuCommand('YSlow', showYslow);