userstyles.org Download Styles Without Stylish

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name           userstyles.org Download Styles Without Stylish
// @namespace      http://greasyfork.org
// @author         NightsoN
// @description    This scripts allows you to download style directly without stylish installed.
// @include        http*://userstyles.org/styles/*
// @exclude        *.css
// @version        0.0.1.20141025045448
// @run-at         document-end
// @grant          none
// ==/UserScript==

(function () {
    var url = document.querySelector('link[rel="stylish-update-url"]').href;
    var solveCheck = setInterval(function() {
        clearInterval(solveCheck);
        document.getElementById("install_button").innerHTML = '<a id="download-button" class = "alternate-install" style="text-decoration:none;" href="' + url + '">Download This Style</a>';
        }, 2000);
}());