23 January, 2025

[BLOGGER] Loại Bỏ Liên Kết Ngoài Ở Phần Nhận Xét

January 23, 2025 Posted by Tôi Hùng ✅ , 1 comment
Chào mọi người, bài viết này mình sẽ chia sẽ cho mọi người việc loại bỏ liên kết ngoài ở phần nhận xét phiên bản mới cho người dùng blogger mới nhất 2025.

Với giao diện Blogger có rất nhiều thủ thuật chặn liên kết ngoài ở phận nhận xét, và mình đã tìm hiểu ra thủ thuật này và cảnh báo cho người dùng biết được đó là liên kết ngoài và nên phong tránh liên kết ngoài đó ở phần nhận xét.

Đó cũng là một chiêu trò đi link bẩn của những người không tốt muốn kéo backlink cao từ những site lớn.

Chúng ta bắt đầu với thủ thuât này nhé.

Bước 1. Truy cập vào trang blogger.com
Bước 2. Vào mục "Chủ Đề" hoặc "Theme".
Bước 3. Và cuối cùng bỏ đoạn code bên dưới trên thẻ </body>.
 <script type='text/javascript'>
//<![CDATA[
    document.addEventListener("DOMContentLoaded", function () {
    const adminId = "7597100408077620606";
    const comments = document.querySelectorAll(".comment-block");
    comments.forEach(comment => {
        const userLink = comment.querySelector("cite.user a");
        const isAdmin = userLink && userLink.href.includes(adminId);
        const contentLinks = comment.querySelectorAll(".comment-content a");
        contentLinks.forEach(link => {
            if (!isAdmin) {
                const linkText = link.textContent;
                const warningText = `🚫 ${linkText} <~ Do Not Spam Link`;
                const span = document.createElement("span");
                span.textContent = warningText;
                link.parentNode.replaceChild(span, link);
            }
        });
    });
});
    
//]]>
</script>  

Và bên dưới là mã nguồn mình đã mã hóa để tối ưu tốc độ blog.
   <script type='text/javascript'>
//<![CDATA[
 function _0x445f(){const _0x322c07=['426XJvqtw','1297230cmXPue','stener','Loaded','cite.user\x20','DOMContent','2463565zNFdXd','🚫\x20','11lKgGNg','textConten','includes','torAll','addEventLi','PtPIR','.comment-c','span','querySelec','createElem','13027550pGBtec','7597100408','pulVx','ViTHo','replaceChi','587394sWuzyo','lock','136YOswBs','href','SPAM\x20LINK','cTYwX','ent','ontent\x20a','forEach','mOhPd','\x20<~\x20WARNIN','077620606','parentNode','1184468iyQtnn','1005556gzduQv','.comment-b','120358wSvvSI','tor','3TXcgBg','G!\x20DO\x20NOT\x20'];_0x445f=function(){return _0x322c07;};return _0x445f();}function _0x42b9(_0x359b8a,_0x3bae03){const _0x104713=_0x445f();return _0x42b9=function(_0x2e396b,_0x3d205f){_0x2e396b=_0x2e396b-(0x37*-0x53+0x8e+0x11e8);let _0x3ef945=_0x104713[_0x2e396b];return _0x3ef945;},_0x42b9(_0x359b8a,_0x3bae03);}const _0x2f751a=_0x42b9;(function(_0x438b2e,_0x52c052){const _0x438f54=_0x42b9,_0x237d4c=_0x438b2e();while(!![]){try{const _0x2c891b=-parseInt(_0x438f54(0xb4))/(-0x92*0x40+0x4b1+0x1fd0)+parseInt(_0x438f54(0xbc))/(-0x1df7+-0x482*-0x5+0x76f*0x1)+-parseInt(_0x438f54(0xb9))/(0x38*-0x8e+-0x87d+-0x4f2*-0x8)*(-parseInt(_0x438f54(0xb5))/(-0x1721*-0x1+0x1a17+-0x3134))+-parseInt(_0x438f54(0xc1))/(-0x1*-0x1c57+0x3*0xae4+-0x3cfe)+-parseInt(_0x438f54(0xbb))/(0x1466+0x31*0xd+-0x1*0x16dd)*(-parseInt(_0x438f54(0xb7))/(-0x40d*-0x3+-0xcb2+0x92))+-parseInt(_0x438f54(0xa9))/(0x1f4a+-0x1f*-0xd4+-0x38ee)*(parseInt(_0x438f54(0xa7))/(-0x4fd*-0x5+-0x8d2+-0x1016))+parseInt(_0x438f54(0xa2))/(0x564+0x201d+0x1a1*-0x17)*(parseInt(_0x438f54(0xc3))/(0x1b6b+0x26c2+0x2111*-0x2));if(_0x2c891b===_0x52c052)break;else _0x237d4c['push'](_0x237d4c['shift']());}catch(_0x41b8f1){_0x237d4c['push'](_0x237d4c['shift']());}}}(_0x445f,0x93656+-0xff1f*0x1+0x18067*0x1),document[_0x2f751a(0xc7)+_0x2f751a(0xbd)](_0x2f751a(0xc0)+_0x2f751a(0xbe),function(){const _0x5f5957=_0x2f751a,_0x450a81={'mOhPd':_0x5f5957(0xca),'ViTHo':_0x5f5957(0xbf)+'a','cTYwX':_0x5f5957(0xc9)+_0x5f5957(0xae),'pulVx':_0x5f5957(0xa3)+_0x5f5957(0xb2),'PtPIR':_0x5f5957(0xb6)+_0x5f5957(0xa8)},_0x446da4=_0x450a81[_0x5f5957(0xa4)],_0x360564=document[_0x5f5957(0xcb)+_0x5f5957(0xc6)](_0x450a81[_0x5f5957(0xc8)]);_0x360564[_0x5f5957(0xaf)](_0x685406=>{const _0x37fd14=_0x5f5957,_0x57d8ce=_0x685406[_0x37fd14(0xcb)+_0x37fd14(0xb8)](_0x450a81[_0x37fd14(0xa5)]),_0x52c292=_0x57d8ce&&_0x57d8ce[_0x37fd14(0xaa)][_0x37fd14(0xc5)](_0x446da4),_0xe1e71=_0x685406[_0x37fd14(0xcb)+_0x37fd14(0xc6)](_0x450a81[_0x37fd14(0xac)]);_0xe1e71[_0x37fd14(0xaf)](_0x383e37=>{const _0x1bc48f=_0x37fd14;if(!_0x52c292){const _0x5ebdbf=_0x383e37[_0x1bc48f(0xc4)+'t'],_0x243206=_0x1bc48f(0xc2)+_0x5ebdbf+(_0x1bc48f(0xb1)+_0x1bc48f(0xba)+_0x1bc48f(0xab)),_0x560339=document[_0x1bc48f(0xa1)+_0x1bc48f(0xad)](_0x450a81[_0x1bc48f(0xb0)]);_0x560339[_0x1bc48f(0xc4)+'t']=_0x243206,_0x383e37[_0x1bc48f(0xb3)][_0x1bc48f(0xa6)+'ld'](_0x560339,_0x383e37);}});});}));   
//]]>
</script>  
  

Hoặc mọi người có thể vào trang này để mã hóa Javascript nhé. Mọi người cần thay đổi địa chỉ ID blog của mình ở phần mình bôi đó là hoàn thành việc loại bỏ liên kết ngoài ở phần bình luận nhé.

DEMO Ở BÀI VIẾT NÀY


Mọi người kéo xuống dưới mục bình luận để kiểm tra nhé.

Chúc mọi người thành công.

1 comment:

Top