zoukankan      html  css  js  c++  java
  • 扇贝单词本-隐藏中文释义 tampermonkey

    需要安装chrome  tampermonkey

    // ==UserScript==
    // @name         打印扇贝单词
    // @namespace    http://tampermonkey.net/
    // @version      0.1
    // @description  try to take over the world!
    // @author       You
    // @match        https://web.shanbay.com/wordsweb/
    // @icon         https://www.google.com/s2/favicons?domain=shanbay.com
    // @grant        none
    // @require      https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js
    // ==/UserScript==
    
    (function() {
        'use strict';
        function nodeTxt(){
                $(".CollectionList_definitionCn__3MoTq").css("display","none")
            }
        function AddPageListClick(){
         $(".pull-right ul li").click(function(){
                console.log("分页隐藏事件-分页条数:"+$(".pull-right ul li").length)
             console.log()
                 setTimeout(nodeTxt, 300);
            });
        }
        $(document).ready(function(){
            //隐藏文本
            setTimeout(nodeTxt, 300);
            $(".CollectionList_word__7zQwd").each(function () {
    
                console.log("aaa");
            });
            //点击菜单后继续 隐藏文本
            $(".Nav_nav-link__2Rx6e").click(function(){
                 setTimeout(nodeTxt, 300);
                 setTimeout(AddPageListClick, 300);
    
            });
    
    
    
      });
    
    
        // Your code here...
    })();
    

      

  • 相关阅读:
    07组 Beta冲刺 (2/5)
    第07组 Beta冲刺 (1/5)
    第07组 Alpha冲刺 总结
    ES相关
    集群与分布式
    idea使用总结
    Tomcat配置与启动与访问
    Web基础
    B/S与C/S架构
    一周视频学习总结
  • 原文地址:https://www.cnblogs.com/jifeng/p/14929400.html
Copyright © 2011-2022 走看看