zoukankan      html  css  js  c++  java
  • JavaScript博客园操作

    1. 编辑当前博客页面,编辑的时候最大化(不能一步到位,待实现)
    
    javascript:(function(){
        var script=document.createElement('script');
        script.src='https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js';
        document.body.appendChild(script);
        var thisURL = document.location.href; 
        var test = /http://|https://i.cnblogs.com.*/g; 
        if (!test.test(thisURL)){
            var reg = /http://|https://(w|=|?|.|/|&|-)+/(d+).html/g;
            var newUrl = thisURL.replace(reg,"https://i.cnblogs.com/EditPosts.aspx?postid=$2"); 
            document.location.href = newUrl; 
        }else{
            $("li[title='全屏']").click();
        } 
    })();
    
    
    1. 编辑当前博客
    javascript:(function(){var thisURL = document.location.href;
    var reg = /http://|https://(w|=|?|.|/|&|-)+/(d+).html/g;
    var newUrl = thisURL.replace(reg,"https://i.cnblogs.com/EditPosts.aspx?postid=$2");
    document.location.href = newUrl;})();
    
    
    1. 去掉自定义的目录
    
    javascript:(function(){document.getElementById("sideToolbar").style.display ='none';})();
    
    
  • 相关阅读:
    Jenkins安装
    Python操作yaml文件
    class 中构造函数与析构函数
    python发送邮件(yagmail模块)
    filter、map函数的区别
    python redis操作
    多个 python的pip版本选择
    python Excel操作
    python MD5操作
    缓存淘汰算法之LRU实现
  • 原文地址:https://www.cnblogs.com/amize/p/14537324.html
Copyright © 2011-2022 走看看