打开链接

打开链接...

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         打开链接
// @namespace    ddd
// @description  打开链接...
// @version      0.0.3.7
// @author       ddd
// @match        *66y.com/*
// @require      https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js
// @require      https://code.jquery.com/jquery-latest.js
// @run-at       document-start
// ==/UserScript==
$(document).ready(function() {
        let $tableArea = $('body > #main > .t #ajaxtable');
        if($tableArea.length > 0) {
            $tableArea.before('<div style="position: fixed; transform: translate(-100%, 100px);">点击数大于 >= <input type="number" id="open-all-alink-hit-number" style="width: 40px;"></div>');
            $tableArea.before('<button id="open-all-alink" style="position: fixed; transform: translate(-100%, 150px);">打开所有正文链接</button>');
            let $leastHit = $('#open-all-alink-hit-number');
            $('#open-all-alink').click(function() {
                let leastHit = isNaN(parseInt($leastHit.val())) ? 0 : parseInt($leastHit.val());
                let trs = $tableArea.find('tr.tr3.t_one.tac');
                for (let i = 0; i < trs.length; i++) {
                    if (parseInt(trs.eq(i).find('td').eq(3).text()) > leastHit) {
                    	/*if (trs.eq(i).find('.tal a').eq(0).text().indexOf('[歐美]') === 0) {
                    		continue;
                    	}
                    	if (trs.eq(i).find('.tal a').eq(0).text().indexOf('[動漫]') === 0) {
                    		continue;
                    	}*/
                        window.open(trs.eq(i).find('.tal a').eq(0).attr('href'));
                    }
                }
            });
        }
});