Dưới đây là cách để tạo một trang để chuyển hướng rời khỏi blog trên blog ketnoi89 đang làm (hoạt động cho các trang tải file,bấm để đến link đích)
Bước 1: Tạo trang chuyển hướng
Vào Blogger >> Trang >> Trang Mới (nút màu cam ở góc trái). Chuyển qua chế độ viết HTML và dán vào đoạn code sau:
<a class="btn btn-success btn-lg disabled" href="https://www.ketnoi89.com/" id="redirect-btn" rel="noreferrer noopener" target="_blank" disabled>Click here to continue!</a><script>((document) => {let h = document.location.hash,$btn = document.querySelector('#redirect-btn');if (h.length > 0 && h.startsWith('#http')) {try {let url = new URL(decodeURIComponent(h.substr(1)));url.searchParams.set('utm_source', 'ketnoi89');$btn.href = url.href;} catch (e) {console.error(e.message);return;}}let i = 5,txt = $btn.textContent;function run() {$btn.textContent = `${txt} (${i})`;if (i > 0) {i--;setTimeout(run, 1000);} else {$btn.textContent = txt;$btn.removeAttribute('disabled');$btn.classList.remove('disabled');}}run();})(document);</script>
Chú ý :
Thay : https://www.ketnoi89.com/ thành link blog của bạn
Thay đổi chữ Click here to continue! theo ý bạn
Số 5 là lượt đếm
Bước 2: Bắt mọi liên kết ra ngoài Blog
Giờ đã có trang chuyển hướng rồi, việc chúng ta cần làm tiếp là tự động bắt mọi liên kết ra ngoài Blog phải đi qua trang chuyển hướng.
Các bạn vào Blogger > Chủ Đề > Chỉnh sửa HTML
Kéo xuống cuối, tìm thẻ đóng </body> và thêm đoạn code sau vào trước nó :
<script type='text/javascript'>//<![CDATA[/* Redirector */(function(b){window.top.location.href.includes("/xac-nhan-chuyen-huong-khoi-ketnoi89.html")||b.filter(function(a){return!a.hasAttribute("imageanchor")&&!a.href.startsWith("https://www.ketnoi89.com")&&5<a.href.length}).map(function(a){a.href="https://www.ketnoi89.com/p/xac-nhan-chuyen-huong-khoi-ketnoi89.html#"+encodeURIComponent(a.href);a.target="_blank";a.rel="nofollow noopener"})})(Array.from(document.querySelectorAll(".post-body a")));//]]></script>
Thay các phần chữ tô màu thành link blog của bạn nhé !
Chúc các bạn thành công!
luc viet bai sao cho link nó sang trang chuyên huong đó ad
Trả lờiXóabạn Vào Blogger >> Trang >> Trang Mới (nút màu cam ở góc trái). Chuyển qua chế độ viết HTML
Xóalàm xong bấm vào liên kết toàn 404
Trả lờiXóaCasino no deposit bonus codes | GAMBLERSNO!
Trả lờiXóa› casino-no-deposit-casino-no › casino-no-deposit-casino-no You can also play slot games on slot machine games casinosites.one at one of herzamanindir the many online novcasino casino sites, such ventureberg.com/ as gri-go.com the casino.com.
Đăng nhận xét