curl.function.js

link(href)

Acest script nu ar trebui instalat direct. Aceasta este o bibliotecă pentru alte scripturi care este inclusă prin directiva meta a // @require https://update.greasyfork.org/scripts/25098/159755/curlfunctionjs.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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!)

function curl(url, method, data, success){
  GM_xmlhttpRequest({
    url:    url,
    method: method,
    data:   data,
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    onload: success
  });
}

function userStyle(css){
    var node  = document.createElement('style'),
        heads = document.getElementsByTagName('head');

    node.type = 'text/css';
    node.appendChild( document.createTextNode(css) );
    
    if (heads.length > 0)
        heads[0].appendChild(node);
    else
        document.documentElement.appendChild(node);
}

function link(href){
    curl(href, 'GET', null, function(response){
      userStyle(response.responseText);
    });
}