// ==UserScript== // @name EGO Zip Downloads Userscript // @namespace http://michaeltunnell.com // @version 2.0 // @description Provides downloads and compatibility info for GNOME Extensions from extensions.gnome.org // @author Michael Tunnell // @include https://extensions.gnome.org/extension/*/*/ // @include https://extensions.gnome.org // @grant none // @downloadURL https://update.greasyfork.icu/scripts/17853/EGO%20Zip%20Downloads%20Userscript.user.js // @updateURL https://update.greasyfork.icu/scripts/17853/EGO%20Zip%20Downloads%20Userscript.meta.js // ==/UserScript== /* jshint -W097 */ 'use strict'; // - User Options - var hideError = 'yes'; // this hides the "We cannot detect a running copy of GNOME on this system" error message. var msgdiv = document.getElementById('message_container'); if (hideError == "yes") { msgdiv.style.display = "none"; } var extdetails = document.getElementsByClassName('extension-details'); var datavals = document.getElementsByClassName('single-page'); var datauuid = datavals[0].getAttribute('data-uuid'); var datasvm = datavals[0].getAttribute('data-svm'); extdetails[0].insertAdjacentHTML('afterend', '
Downloads:
'); var downlist = document.getElementById('downlist'); if (datasvm.indexOf("3.20") !=-1) { downlist.innerHTML += '
  • 3.20
  • ';} if (datasvm.indexOf("3.18") !=-1) { downlist.innerHTML += '
  • 3.18
  • ';} if (datasvm.indexOf("3.16") !=-1) { downlist.innerHTML += '
  • 3.16
  • ';} if (datasvm.indexOf("3.14") !=-1) { downlist.innerHTML += '
  • 3.14
  • ';} if (datasvm.indexOf("3.12") !=-1) { downlist.innerHTML += '
  • 3.12
  • ';} if (datasvm.indexOf("3.10") !=-1) { downlist.innerHTML += '
  • 3.10
  • ';} downlist.innerHTML += '
  • EGO Zip Downloads Userscript: README · Help/Support
  • ';