k站修改器

2022/7/26 10:49:34

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==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
                            }
    
})();