CSDN博客插件

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

اعتبارا من 30-08-2022. شاهد أحدث إصدار.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==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();

    

}