Greasy Fork is available in English.

YSlow

YSlow for Firefox Greasemonkey

  1. // ==UserScript==
  2. // @name YSlow
  3. // @namespace http://feifeihang.info
  4. // @description YSlow for Firefox Greasemonkey
  5. // @include *
  6. // @version 1
  7. // @grant GM_registerMenuCommand
  8. // ==/UserScript==
  9. 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';
  10. var showYslow = function () {
  11. var anchor = document.createElement('a');
  12. anchor.setAttribute('href', decodeURIComponent(YSLOW));
  13. document.body.appendChild(anchor);
  14. anchor.click();
  15. anchor.remove();
  16. };
  17. GM_registerMenuCommand('YSlow', showYslow);