您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
批评空间添加bangumi、 2d fun和百度的跳转
当前为
// ==UserScript== // @name 【自用】EROGAMESCAPE // @namespace http://tampermonkey.net/ // @version 0.2 // @description 批评空间添加bangumi、 2d fun和百度的跳转 // @author cxhttt // @match https://erogamescape.dyndns.org/~ap2/ero/toukei_kaiseki/*game.php?game* // @match https://erogamescape.dyndns.org/~ap2/ero/toukei_kaiseki/* // @match https://bbs.9shenmi.com/index.php* // ==/UserScript== (function() { 'use strict'; function pad(num, cover) { return String("0".repeat(cover) + num).slice(-cover); } var date = new Date(); var year = date.getFullYear(); var month =date.getMonth() + 1; if(location.href.indexOf('game.php?game')!=-1){ let name = document.querySelector("#game_title > a").innerText $('#soft-title').append(`(<a href="https://bgm.tv/subject_search/${name}?cat=4" target="_blank" style="text-decoration:none;">Bangumi</a>)`) $('#soft-title').append(`(<a href="https://galge.fun/subjects/search?keyword=${name}" target="_blank" style="text-decoration:none;">2dfun</a>)`) $('#soft-title').append(`(<a href="https://bbs.9shenmi.com/index.php#search=${name}" target="_blank" style="text-decoration:none;">KFonlie</a>)`) $('#soft-title').append(`(<a href="https://tieba.baidu.com/f/search/res?qw=${name}&sm=2&cf=1&ie=utf-8" target="_blank" style="text-decoration:none;">tieba</a>)`) $('#soft-title').append(`(<a href="https://www.baidu.com/s?wd=${name}" target="_blank" style="text-decoration:none;">baidu</a>)`) $('#soft-title').append(`(<a href="https://www.google.com.tw/search?q=${name}" target="_blank" style="text-decoration:none;">google</a>)`) $('#soft-title').append(`(<a href="https://www.douban.com/search?source=suggest&q=${name}" target="_blank" style="text-decoration:none;">douban</a>)`) } if(location.href == 'https://erogamescape.dyndns.org/~ap2/ero/toukei_kaiseki/'){ $('#nav_2 > div > h3:nth-child(9)').append(`<a href="https://erogamescape.dyndns.org/~ap2/ero/toukei_kaiseki/toukei_avg.php">統計表(平均値順)</a><br>`) $('#nav_2 > div > h3:nth-child(9)').append(`<a href="https://erogamescape.dyndns.org/~ap2/ero/toukei_kaiseki/toukei_year_median.php?year=${year}">${year}年統計表(中央値順)</a><br>`) $('#nav_2 > div > h3:nth-child(9)').append(`<a href="https://erogamescape.dyndns.org/~ap2/ero/toukei_kaiseki/toukei_hatubaibi_month.php?year=${year}&month=${pad(month,2)}"> ${year}年${month}月に発売されたゲーム</a>`) } //绯月自动搜索 if(location.href.indexOf('bbs.9shenmi.com/index.php')!=-1){ document.querySelector("#alldiv > div:nth-child(3) > div:nth-child(1) > div.k_ale > form > input:nth-child(8)").value=decodeURI(location.href.split('#')[1].split('=')[1]) document.querySelector("#alldiv > div:nth-child(3) > div:nth-child(1) > div.k_ale > form > input.k_butt.k_blk.k_ansma").click() setTimeout(window.close(),1000); } })();