userstyles.org Download Styles Without Stylish

This scripts allows you to download style directly without stylish installed.

  1. // ==UserScript==
  2. // @name userstyles.org Download Styles Without Stylish
  3. // @namespace http://greasyfork.org
  4. // @author NightsoN
  5. // @description This scripts allows you to download style directly without stylish installed.
  6. // @include http*://userstyles.org/styles/*
  7. // @exclude *.css
  8. // @version 0.0.1.20141025045448
  9. // @run-at document-end
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function () {
  14. var url = document.querySelector('link[rel="stylish-update-url"]').href;
  15. var solveCheck = setInterval(function() {
  16. clearInterval(solveCheck);
  17. document.getElementById("install_button").innerHTML = '<a id="download-button" class = "alternate-install" style="text-decoration:none;" href="' + url + '">Download This Style</a>';
  18. }, 2000);
  19. }());