CSDN博客插件

去除CSDN复制限制、登录查看限制

30.08.2022 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         CSDN博客插件
// @namespace    zyStudio
// @version      1.1
// @description  去除CSDN复制限制、登录查看限制
// @author       zyStudio
// @match        https://blog.csdn.net/*
// @icon         https://gitee.com/zzyGodofWar/ownproject/raw/master/z.ico
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    pageBeforeLoaded();

    $(document).ready(function () {
		pageLoaded();
	});

})();

function pageBeforeLoaded(){
    //去广告
    var footAds = $('#footerRightAds');
    footAds.remove();

    var rightAds = $('#recommendAdBox');
    rightAds.remove();

    var adsbygoogle = $('.adsbygoogle');
    adsbygoogle.remove();
}

function pageLoaded(){

     //去除复制限制
    var cview = $('#content_views');
    cview.attr('id','');

    //去除关注查看限制
    var rmask = $('.hide-article-box.hide-article-pos.text-center');
    rmask.remove();
    var articlec = $('#article_content');
    articlec.attr('style','');

    //去除登录提示
    var btnsign = $('.hljs-button.signin');

    for(let i =0;i<btnsign.length;i++){
        let tbtn = btnsign[i];
        tbtn.setAttribute('class','');
    }

    var logwindow = $('.passport-container.passport-container-mini');
    logwindow.remove();

    

}