您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
显示书名
当前为
// ==UserScript== // @name 人教电子教材显示书名 // @namespace http://tampermonkey.net/ // @version 2024-04-19 // @description 显示书名 // @author AN drew // @match https://jc.pep.com.cn/* // @require https://lib.baomitu.com/jquery/3.5.0/jquery.min.js // @grant GM_addStyle // ==/UserScript== (function() { 'use strict'; GM_addStyle(` .page_pc_btm_book_body{height:440px!important} .page_pc_btm_book_body .name{padding-left: 8px; margin:2px 14px; font-family:隶书; font-size:22px;} .page_pc_btm_book_body .read{margin-top:5px!important} `); let t=setInterval(function(){ if($('.page_pc_btm_book_body').length>0) { $('.page_pc_btm_book_body').each(function(){ if($(this).find('.name').length>0) { let old_title=$(this).find('.name').text(); let new_title=$(this).find('.imga').attr('title'); if(old_title != new_title) { $(this).find('.name').text(new_title); } } else { let title=$(this).find('.imga').attr('title'); $(this).find('.imga').after('<div class="name">'+title+'</div>'); } }); } },1000); })();