DinNewTest

A basic example of Greasemonkey that causes an alert at each page load.

// ==UserScript==
// @name          DinNewTest
// @namespace     http://www.webmonkey.com
// @include       http://stackoverflow.com/*
// @description   A basic example of Greasemonkey that causes an alert at each page load.
// @version 0.0.1.20151001063056
// ==/UserScript==

GM_xmlhttpRequest ( {
    method:     "GET",
    url:        "http://www.google.com/",
    onload:     function (response) {
                    console.log (   response.status,
                                    response.responseText.substring (0, 80)
                                );
                }
} );

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址