您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
An elaborate array of waifus
当前为
// ==UserScript== // @name Komica Waifu Randomizer // @description An elaborate array of waifus // @match *://komica1.org/mainmenu.html // @match *://komica2.cc/mainmenu.html // @match *://*.komica1.org/*/* // @match *://*.komica2.net/*/* // @match *://*.komica2.cc/*/* // @match *://rthost.win/*/* // @match *://gzone-anime.info/UnitedSites/*/* // @match *://eclair.nagatoyuki.org/*/* // @match *://storysol.boguspix.com/* // @match *://travel.voidfactory.com/* // @match *://kagaminerin.org/*/* // @match *://komica.yucie.net/*/* // @match *://komica.dbfoxtw.me/*/* // @match *://*.zawarudo.org/*/* // @match *://cat.2nyan.org/cellphone/* // @match *://www.akraft.net/service/* // @match *://www.akraft.net/service/*/* // @match *://acgspace.wsfun.com/*/* // @match *://2cat.org/~touhou/* // @match *://www.karlsland.net/*/* // @match *://*.boguspix.com/* // @match *://kemono.wtako.net/*/* // @match *://komicolle.org/* // @match *://www.camiko.org/* // @match *://fecha.tw/*/* // @match *://2cha.org/mainmenu.htm // @match *://2cha.org/*/* // @match *://www.gomiga.org/news.html // @match *://www.gomiga.org/*/* // @match *://www.manyo.xyz/* // @match *://www.2nekos.com/board/liu/* // @match *://8kun.top/komica/* // @match *://endchan.net/*/* // @match *://endchan.net/HappyNeet/* // @exclude *://*.komica1.org/*/pixmicat.php?mode=module&load=mod_catalog* // @exclude *://*.komica1.org/*/pixmicat.php?mode=module&load=mod_threadlist* // @exclude *://*.komica2.net/*/pixmicat.php?mode=module&load=mod_threadlist // @exclude *://kemono.wtako.net/kemono/* // @exclude *://kemono.wtako.net/kemozone/galleria/* // @exclude *://rthost.win/aa/pbbs.html // @exclude *://www.karlsland.net/t7s/* // @exclude *://www.camiko.org/bbsmenu.htm // @exclude *://2cha.org/00/pixmicat.php?mode=module&load=mod_threadlist // @version 1.6.5 // @run-at document-end // @namespace https://greasyfork.org/users/999571 // ==/UserScript== // Function to load random waifu image function loadRandomWaifu() { var images = [ 'https://imgur.com/Ifd2MY0.png', 'https://imgur.com/DaMHLjj.png', 'https://imgur.com/715IBH8.png', 'https://imgur.com/Qi1yLyM.png', 'https://imgur.com/Yx1xxhR.png', 'https://imgur.com/5FN7oee.png', 'https://imgur.com/G30i7Fq.png', 'https://imgur.com/DaMHLjj.png', 'https://imgur.com/Qi1yLyM.png', 'https://imgur.com/5FN7oee.png', 'https://imgur.com/DaMHLjj.png', 'https://imgur.com/5FN7oee.png', 'https://imgur.com/p9uJp4Y.png', ]; var randomImageUrl = images[Math.floor(Math.random() * images.length)]; var waifuStyle = ` #waifu { background-image: url(${randomImageUrl}); background-repeat: no-repeat; background-size: contain; background-position: right bottom; position: fixed; min-width: 1000px; margin-top: 100px; top: 0; bottom: -20px; right: -20px; opacity: 0.5; z-index: -1; } `; $('head').append('<style type="text/css">' + waifuStyle + '</style>'); $('body').append('<div id="waifu"></div>'); } // Check if the current URL matches the specified pattern for komica子板 if (/https?:\/\/.*\.komica1\.org\/.*/.test(window.location.href) || /https?:\/\/.*\.komica2\.cc\/.*/.test(window.location.href)) { loadRandomWaifu(); } else { var script = document.createElement('script'); script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js'; document.head.appendChild(script); script.onload = function() { $(document).ready(function() { loadRandomWaifu(); }); }; }