Chào mọi người.
Bài viết này mình sẽ chia sẽ đến mọi người một tiện ích đã khá lâu, nhưng ít người chia sẽ, và số lượng bài viết chia sẽ về
Biểu tượng mặt cười ở khung bình luận cũng bị DIE.Bài viết này mình chia sẽ đến mọi người cũng thủ thuật đó, nhưng mình đã tối ưu khá ổn để phù hợp với một số anh chị em muốn tăng tốc độ tải trang hơn.
Chúng ta bắt đầu nhé.
Bước 1. Đăng nhập vào trangBlogger của mọi người.Bước 2. Chọn mục
Chủ đề tiếp đó nhấp vào Tùy chỉnh và chọn Chỉnh sữa HTML.Bước 3. Mọi người tìm thẻ
</body> và dán đoạn code bên dưới vào trên thẻ đó. <b:if cond='data:blog.pageType != "index"'>
<!-- đk chỉ áp dụng cho trang bài viết và trang tĩnh -->
<style>.hung_emotion {width: 20px; margin: -5px 0 0!important; vertical-align: middle;pointer-events:none}</style>
<!-- css định dạng lại kích thước và vị trí mặt cười -->
<script type='text/javascript'>
//<![CDATA[
function replaceText(){if(!document.getElementById){return;}
bodyText = document.getElementById("comments");
theText = bodyText.innerHTML;
theText = theText.replace(/\/\=r/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/icon-cuoi-khinh--hungqb.webp'/>");
theText = theText.replace(/:\)\)/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/cuoi-chay-mo-hoi-hungqb.webp'/>");
theText = theText.replace(/;\)/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/nhay-mat-emoji-hungqb.webp'/>");
theText = theText.replace(/=\)\)/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/cuoi-ra-nuoc-mat-hungqb.webp'/>");
theText = theText.replace(/:\(\(/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/khoc-cmnr-hungqb.webp'/>");
theText = theText.replace(/<3/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/heart-emo-hungqb.webp'/>");
theText = theText.replace(/:v/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/pac-man-emoji-hungqb.webp'/>");
theText = theText.replace(/:\)/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn//cuoi-mim-emoji-hungqb.webp'/>");
theText = theText.replace(/:\(/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/sad-emoji-hungqb.webp'/>");
theText = theText.replace(/==/gi, "<img class='hung_emotion' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7IsgqmuVDaIdsG2SK6AujFKtwJwst5-KfgzHVPLKET364hyphenhyphen1aJ2s_UlEIuxvGz0RbcFULniLNmTFY0kYa_FTcoMNMhNNGa60Q4bGGhP7NF_uFYslWu_DTwKsBzXoOeNJEbs2tYp3Lsfwt/s30/emoji-mat-l-_----BacSiWindows-Com.png''/>");
theText = theText.replace(/:\*/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/kiss-hungqb.webp'/>");
theText = theText.replace(/:D/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/cuoi-nhe-rang-hungqb.webp'/>");
theText = theText.replace(/\^\_\^/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/cuoi-thoa-man-hungqb.webp'/>");
theText = theText.replace(/\/=s/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/cuc-shit-hungqb.webp'/>");
theText = theText.replace(/\/=ok/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/OK-hungqb.webp'/>");
theText = theText.replace(/\/=hi/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/hi_-hungqb.webp'/>");
theText = theText.replace(/\(y\)/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/like-hungqb.webp'/>");
theText = theText.replace(/:p/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/hahe-hungqb.webp'/>");
theText = theText.replace(/\(yy\)/gi, "<img class='hung_emotion' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyCmIUWd-1_f9Na18HAd_EU7Yurm27atsPdVZK-T9GLW0f2fAItx3vGprZeJ1UgkeNEH9OXGdkYFdZZFnr-fkQ4bnG9eY3NMkr46mnd_QqAFPLzxLHExM5QkzY0ajUtFhWZzzQyU9Gr6UV/s30/dislike_-_---BacSiWindows-Com.png'/>");
theText = theText.replace(/\/=l/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/liec-cmn-mat-hungqb.webp'/>");
theText = theText.replace(/\:\-\)/gi, "<img class='hung_emotion' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2eRhYMhrNej4CTCy5aCkNECXMl7XiD6LRkHntt9CNmL4uq00uouGgLHD_J7z7mUMBzAERxpPqMChyphenhyphenPHrMcCF7E7chkm1UGr39RoY6zBjRKftCJqc6flYtrU8P1Byw5W0TZ0lSyx5ydKt9/s30/haiz-_---------BacSiWindows-Com.png'/>");
theText = theText.replace(/\/=hl/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/hand-left-hungqb.webp'/>");
theText = theText.replace(/\/=hr/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/hand-right-hungqb.webp'/>");
theText = theText.replace(/\/=hup/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/hand-up-hungqb.webp'/>");
theText = theText.replace(/\/=hd/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/hand-down-hungqb.webp'/>");
theText = theText.replace(/\/=j/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/hand-down-hungqb.webp'/>");
theText = theText.replace(/\/=clap/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/clap-hand-hungqb.webp'/>");
theText = theText.replace(/\/=he/gi, "<img class='hung_emotion' src='https://emotion.hung.pro.vn/love-hungqb.webp'/>");
bodyText.innerHTML = theText;
}replaceText();
//]]>
</script>
</b:if>
Bước cuối cùng là mọi người lưu lại và vào blog tận hưởng kết quả.
Nếu mọi người muốn tải biểu tưởng mặt cười đó và
Upload lên hosting riêng của mọi người thì có thể download ở bên dưới full emotion nhé.Download Full Emotion Blogspot
Và tiếp đến mọi người muốn mã hóa đoạn code trên thì bỏ đoạn code
Javascript vào tại đây để mã hóa code nhé.Chúc mọi người thành công.

4 Comments
tks for share :)
ReplyDelete(y) chất lượng, tải nhanh.
ReplyDeletetốt đó e
ReplyDeletegood code <3
ReplyDeleteCảm ơn bạn đã để lại góp ý cho tác giả