Macapp.so Link

Show baidu link for macapp.so

  1. // ==UserScript==
  2. // @name Macapp.so Link
  3. // @namespace https://greasyfork.org/en/scripts/13086-macapp-so-link
  4. // @version 0.11
  5. // @description Show baidu link for macapp.so
  6. // @author kk
  7. // @match http://www.macapp.so/*
  8. // @grant none
  9. // @require https://code.jquery.com/jquery-2.1.4.min.js
  10. // ==/UserScript==
  11.  
  12. 'use strict';
  13. $(setTimeout(function () {
  14. if (document.getElementById("code")) {
  15. var dl = document.getElementsByClassName("download")[0];
  16. var code = document.getElementById("code");
  17. code.style.color = "rgb(51,51,51)";
  18. code.style.lineHeight = "0";
  19. code.style.cursor = "text";
  20. var a = document.createElement('a');
  21. a.innerHTML = "Get App";
  22. var href = "/go" + window.location.pathname;
  23. a.setAttribute("href", href);
  24. a.setAttribute("target", "_blank");
  25. dl.insertBefore(a, code);
  26. code.removeAttribute("id")
  27. }
  28. }
  29. , 1000));
  30.  
  31.  
  32.  
  33.