tampermonkey实现CSDN阅读模式
来源:互联网 发布:硬盘linux系统安装教程 编辑:程序博客网 时间:2024/06/03 20:24
因为技能树都是图片形式的总结,以下是csdn的阅读模式脚本
// ==UserScript==// @name csdn阅读模式// @namespace http://tampermonkey.net/// @version 1.0// @description try to take over the world!// @author LFSenior// @match http://blog.csdn.net/*// @require http://code.jquery.com/jquery-1.11.0.min.js// @grant none// ==/UserScript==(function() { 'use strict'; /*点赞功能$("#btnDigg").click();*/ var fa=$("body"); var btn=$("<li></li>"); var json={ "background":"#31e16d", "height":"16px", "padding":"5px", "cursor": "pointer", "top":"300px", "right":"80px", "position": "fixed" }; btn.css(json); btn.html("<span id='lfsenior'>开启阅读模式</span>"); fa.append(btn); var bodywidth=$("#body").css("width"); var mainwidth=$("#main").css("width"); btn.click(function () { if($("#lfsenior").html()=="开启阅读模式"){ $("#lfsenior").html("关闭阅读模式"); $("#body").css("width","100%"); $("#main").css("width","100%"); $(".csdn-tracking-statistics").hide(1000); $("#article_content").siblings(".similar_article").hide(1000); $("#res-relatived").hide(1000); $("#side").hide(1000); $("#comment_title").parent("div").hide(1000); $("#pub_footerall").parent("div").hide(1000); }else{ $("#lfsenior").html("开启阅读模式"); $("#body").css("width",bodywidth); $("#main").css("width",mainwidth); $(".csdn-tracking-statistics").show(1000); $("#article_content").siblings(".similar_article").show(1000); $("#res-relatived").show(1000); $("#side").show(1000); $("#comment_title").parent("div").show(1000); $("#pub_footerall").parent("div").show(1000); } }); // Your code here...})();
阅读全文
1 0
- tampermonkey实现CSDN阅读模式
- tampermonkey 如何引用Jquery+CSDN阅读模式案例
- Tampermonkey
- chromium阅读模式实现
- Chrome插件开发之CSDN博客阅读模式
- 《一个操作系统的实现》阅读笔记 之 保护模式
- Android记录24-WebView实现白天/夜间阅读模式
- Tampermonkey中文文档
- 简单的Tampermonkey入门
- Tampermonkey安装与使用
- 阅读设计模式--开场白
- 阅读大话设计模式
- 设计模式 阅读感悟
- 【设计模式】:推荐阅读
- 设计模式阅读标记
- 阅读设计模式前言
- 设计模式阅读总结
- Tampermonkey 脚本编写之初试
- 封装jsonp跨域请求
- Josephus Problem 约瑟夫环问题的讨论
- 2017杭电多校第一场01
- 自己实现一个简单的RPC框架
- const在C和C++中的区别
- tampermonkey实现CSDN阅读模式
- HDU-6052 To my boyfriend 思维
- 直线段的扫描算法——数值微分法
- ofbiz Java事件处理器
- 1.3.RISC和CISC的区别
- 图片预加载优化
- java动态生成类
- WPF布局容器
- 页面里回车到下一控件的焦点