k站修改器

2022/7/26 10:49:34

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name        k站修改器
// @namespace   konachan
// @include     *://konachan*
// @license      MIT
// @grant       none
// @version     1.2
// @author      -
// @description 2022/7/26 10:49:34
// ==/UserScript==


(function () {
  
    function had_download(){
      this.childElements()[0].style.color="white"
    }
    
    console.log("run k")
  
  
    
  
    var l= document.getElementsByClassName("directlink largeimg")
    for(n=0;n<l.length;n++){l[n].download="";
                            l[n].style.height="20px";
                            l[n].onclick=had_download
                           }
  
    var l2=document.getElementsByClassName("directlink smallimg")
    for(n=0;n<l2.length;n++){l2[n].download="";
                             l2[n].style.height="20px";
                             l2[n].onclick=had_download
                            }
    
})();