您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Show all pages of lessons on one screen!
// ==UserScript== // @name WaniKani One-Page Lesson View // @version 0.1.2 // @description Show all pages of lessons on one screen! // @author Matthew Benedict // @include /^https://(www|preview).wanikani.com/lesson/session$/ // @grant none // @run-at document-end // @namespace https://greasyfork.org/users/149329 // ==/UserScript== function onePageView() { let elementID = "" if (document.getElementById("supplement-rad").style.display == "block") { elementID = "#supplement-rad" } else if (document.getElementById("supplement-kan").style.display == "block") { elementID = "#supplement-kan" } else if (document.getElementById("supplement-voc").style.display == "block") { elementID = "#supplement-voc" } window.$(elementID).children().css("display", "block"); window.$(elementID).children().css("margin-bottom", "50px"); } (function() { 'use strict'; var intervalFunction = setInterval(function(){ if(window.$('#loading-screen').css('display') !== 'none'){ console.log('Lessons loading...'); } else { onePageView() } }, 250); })();