View Add-on Compatibility Reports

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name          View Add-on Compatibility Reports
// @namespace     http://userscripts.org/scripts/show/61398
// @description   Adds a link to add-on compatibility reports on addons.mozilla.org.
// @version       0.2
// @author        http://userscripts.org/users/fcp
// @developer     LouCypher
// @license       public domain
// @screenshot    http://i.imgur.com/ADw2E.png
// @icon          https://addons.cdn.mozilla.net/img/uploads/addon_icons/15/15003-48.png
// @icon64URL     https://addons.cdn.mozilla.net/img/uploads/addon_icons/15/15003-64.png
// @homepageURL   http://userscripts.org/scripts/show/105858
// @supportURL    http://userscripts.org/scripts/discuss/105858
// @include       https://addons.mozilla.org/*/addon/*
// @grant         none
// ==/UserScript==

var addon = document.getElementById("addon");
var button = document.querySelector(".install-button > a.button");
if (addon && button) {
  var parent = button.parentNode.parentNode.parentNode.parentNode;
  var div = parent.appendChild(document.createElement("div"));
  div.style.fontFamily = "'Helvetica Neue', Arial, sans-serif";
  div.style.fontSize = "12px";
  var a = div.appendChild(document.createElement('a'));
  a.href = '../../compatibility/reporter?guid=' + addon.dataset.id;
  a.textContent = 'View compatibility reports';
}