load InstantClickjs on the gobyexample.com

load InstantClick.js on the gobyexample.com

当前为 2015-02-14 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name load InstantClickjs on the gobyexample.com
  3. // @namespace namespace
  4. // @version 0.1
  5. // @description load InstantClick.js on the gobyexample.com
  6. // @match https://gobyexample.com/*
  7. // @require https://cdnjs.cloudflare.com/ajax/libs/instantclick/3.0.1/instantclick.min.js
  8. // @copyright 2014+, qa2
  9. // ==/UserScript==
  10. //
  11.  
  12. !function() {
  13. var s = document.createElement("script");
  14. s.setAttribute("src","https://cdnjs.cloudflare.com/ajax/libs/instantclick/3.0.1/instantclick.min.js");
  15. document.body.appendChild(s);
  16. }();
  17.  
  18. window.onload = function() {
  19. var el = document.createElement("script");
  20. el.setAttribute("data-no-instant", "");
  21. el.innerHTML = "InstantClick.init();"
  22. document.body.appendChild(el);
  23. }
  24.