View Add-on Compatibility Reports

Adds a link to add-on compatibility reports on addons.mozilla.org.

目前为 2014-02-19 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name View Add-on Compatibility Reports
  3. // @namespace http://userscripts.org/scripts/show/61398
  4. // @description Adds a link to add-on compatibility reports on addons.mozilla.org.
  5. // @version 0.2
  6. // @author http://userscripts.org/users/fcp
  7. // @developer LouCypher
  8. // @license public domain
  9. // @screenshot http://i.imgur.com/ADw2E.png
  10. // @icon https://addons.cdn.mozilla.net/img/uploads/addon_icons/15/15003-48.png
  11. // @icon64URL https://addons.cdn.mozilla.net/img/uploads/addon_icons/15/15003-64.png
  12. // @homepageURL http://userscripts.org/scripts/show/105858
  13. // @supportURL http://userscripts.org/scripts/discuss/105858
  14. // @include https://addons.mozilla.org/*/addon/*
  15. // @grant none
  16. // ==/UserScript==
  17.  
  18. var addon = document.getElementById("addon");
  19. var button = document.querySelector(".install-button > a.button");
  20. if (addon && button) {
  21. var parent = button.parentNode.parentNode.parentNode.parentNode;
  22. var div = parent.appendChild(document.createElement("div"));
  23. div.style.fontFamily = "'Helvetica Neue', Arial, sans-serif";
  24. div.style.fontSize = "12px";
  25. var a = div.appendChild(document.createElement('a'));
  26. a.href = '../../compatibility/reporter?guid=' + addon.dataset.id;
  27. a.textContent = 'View compatibility reports';
  28. }

QingJ © 2025

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