打开链接

打开链接...

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

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

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

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