键盘翻页onejav.com

2024/6/4 10:24:10

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        键盘翻页onejav.com
// @namespace   Violentmonkey Scripts
// @match       https://onejav.com/*
// @grant       none
// @version     1.2
// @author      -
// @description 2024/6/4 10:24:10
// ==/UserScript==
// 移除弹出式广告
const origOpen = window.open
window.open=src=>{
    console.log('弹出广告拦截',src)
}
(function(){
    let prevColl = document.getElementsByClassName('pagination-previous button is-primary')
    let $prev = prevColl.length>0?prevColl[0]:false
    let nextColl = document.getElementsByClassName('pagination-next button is-primary')
    let $next = nextColl.length>0?nextColl[0]:false

    document.addEventListener('keydown', function(event) {
        if($prev&&event.code === 'ArrowLeft') $prev.click()
    })


})()