copy AV id

copy the AV id

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

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 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         copy AV id
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  copy the AV id
// @author       Schwi
// @match        https://ff5121.com/*
// @match        https://www.seejav.work/*
// @match        http://dmmland.com/*
// @icon         https://avatars.githubusercontent.com/u/39186981
// @grant        GM_setClipboard
// ==/UserScript==

(function() {
    'use strict';
    window.onload=function(){
        console.log('start')
        // Javbooks
        document.querySelectorAll('.Po_topic_Date_Serial').forEach(ele=>{
            let texts = ele.innerText.split('/')
            let btn = document.createElement('button')
            btn.innerText = 'copy'
            btn.addEventListener('click',event=>{
                GM_setClipboard(texts[0])
            })
            ele.appendChild(btn)
        })
        document.querySelectorAll('#title').forEach(ele=>{
            let text = ele.innerText
            let btn = document.createElement('button')
            btn.innerText = 'copy'
            btn.addEventListener('click',event=>{
                GM_setClipboard(text)
            })
            ele.appendChild(btn)
        })
        document.querySelectorAll('.infobox a').forEach(ele=>{
            let text = ele.innerText
            let btn = document.createElement('button')
            btn.innerText = 'copy'
            btn.addEventListener('click',event=>{
                GM_setClipboard(text)
            })
            ele.parentNode.appendChild(btn)
        })
        document.querySelectorAll('.Po_topic,.Po_topic_Date_Serial').forEach(ele=>{
            let h = parseInt(window.getComputedStyle(ele).getPropertyValue('height')) + 20
            ele.style.height = h
        })

        // JavBus
        document.querySelectorAll('.info>*>:not(.header)').forEach(ele=>{
            let text = ele.innerText
            let btn = document.createElement('button')
            btn.innerText = 'copy'
            btn.addEventListener('click',event=>{
                GM_setClipboard(text)
            })
            ele.parentElement.appendChild(btn)
        })
        document.querySelectorAll('.container>h3').forEach(ele=>{
            let text = ele.innerText
            let btn = document.createElement('button')
            btn.innerText = 'copy'
            btn.addEventListener('click',event=>{
                GM_setClipboard(text)
            })
            ele.appendChild(btn)
        })
        document.querySelectorAll('.photo-info').forEach(ele=>{
            let childs = ele.children[0].children
            if (childs.length==0){
                return
            }
            let date = childs[childs.length-2]
            let text = date.innerText
            let btn = document.createElement('button')
            btn.innerText = 'copy'
            btn.addEventListener('click',event=>{
                GM_setClipboard(text)
            })
            ele.appendChild(btn)
        })

        // JAV.Land
        document.querySelectorAll('.bsid,.col-xs-12>strong').forEach(ele=>{
            let text = ele.innerText
            let btn = document.createElement('button')
            btn.innerText = 'copy'
            btn.addEventListener('click',event=>{
                GM_setClipboard(text)
            })
            ele.appendChild(btn)
        })
        let ele3 = document.querySelector('.videotextlist.table.table-bordered.table-hover')
        if (ele3){
            let eles = ele3.children[0].children
            for (let i = 0; i<eles.length; i++){
                let ele = eles[i]
                console.log(ele)
                let text = ele.children[1].innerText
                let btn = document.createElement('button')
                btn.innerText = 'copy'
                btn.addEventListener('click',event=>{
                    GM_setClipboard(text)
                })
                ele.appendChild(btn)
            }
        }
        console.log('end')
    }
})();