DinNewTest

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

  1. // ==UserScript==
  2. // @name DinNewTest
  3. // @namespace http://www.webmonkey.com
  4. // @include http://stackoverflow.com/*
  5. // @description A basic example of Greasemonkey that causes an alert at each page load.
  6. // @version 0.0.1.20151001063056
  7. // ==/UserScript==
  8.  
  9. GM_xmlhttpRequest ( {
  10. method: "GET",
  11. url: "http://www.google.com/",
  12. onload: function (response) {
  13. console.log ( response.status,
  14. response.responseText.substring (0, 80)
  15. );
  16. }
  17. } );

QingJ © 2025

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