Cảnh báo lừa đảo‼️ P2 - Lướt Xàm an toàn mà k lo spam ảnh sếch

Chi xiwodd

Địt mẹ đau lòng
Basque-Country
Hướng dẫn cài đặt: https://xamvn.com/r/luot-xam-an-toan-ma-k-bi-lo-lang-boi-spam-anh-sech.709300/
Script trong thớt trên quá sida:
- Nó chặn hết link 2023 của upanh => thằng nào up hốt này là bị chặn + ảnh 2024 sẽ k bị chặn
- Nó chặn ở bài viết của tất cả các box => nên giới hạn lại 1 vài box thôi. Chứ vào quán sò mà chặn ảnh thì k ổn

Tao update script như bên dưới, chúng m update bằng cách:
- Click vào icon Tampermonkey => chọn Dashboard
- Click vào chỗ chữ ANTI LINK SPAM
- Xoá hết nội dung script cũ, copy đè cái mới vào
- Ctrl + S để save

Nếu chưa cài đặt lần nào thì tham khảo topic trên, và dùng script ở thớt này

Nếu thấy hữu ích thì vodka:vozvn (18):

JavaScript:
// ==UserScript==
// @name         ANTI SPAM LINK
// @namespace    http://tampermonkey.net/
// @version      2023-12-26
// @description  Tsb ml spam link
// @author       You
// @match        https://xamvn.com/r/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    const boxesToHandle = ['Chuyện Trò', 'Lều báo'];
    var needToProcess = false;
    var currentBox = document.evaluate("//*[@itemprop='itemListElement'][last()]//span", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
    for (let box of boxesToHandle) {
        if(currentBox.textContent.includes(box)) {
            needToProcess = true;
            break;
        }
    }
    if (needToProcess){
        
const linksToHandle = ['https://img.upanh.tv/2023/12/23/2024.gif',
                               'https://img.upanh.tv/2023/12/15/anh-lon-gai-2d8fb6b5011679035.jpg',
                               'https://img.upanh.tv/2023/12/15/E0FBYu1VUAMOtiM22e0751c2a7d4283.jpg',
                               'https://img.upanh.tv/2023/12/15/E0E-Kf3UUAEVF5Vcf700ecb42c7236c.jpg',
                               'https://img.upanh.tv/2023/12/23/xamvn.jpg',
                               'https://img.upanh.tv/2023/12/16/xamvn.jpg',
                               'https://img.upanh.tv/2023/12/16/xanmxin.jpg',
                               'https://img.upanh.tv/2023/12/16/photo_2022-03-13_23-29-29-3.jpg',
                               'https://img.upanh.tv/2023/12/15/E0E-Kf3UUAEVF5Vcf700ecb42c7236c.jpg',
                               'https://img.upanh.tv/2023/12/27/manhthuongxin.gif',
                               'https://img.upanh.tv/2024/01/01/manhthuongxinlam.gif'
                              ];
        var imgs = document.querySelectorAll(".bbImageWrapper img");
        Array.from(imgs).forEach(img => {
            let currentLink = img.getAttribute("src");
            for (let link of linksToHandle){
                if (link === currentLink) {
                    img.setAttribute("src", "");
                    break;
                }
            }
        })
    }
})();
 
Sửa lần cuối:
Hướng dẫn cài đặt: https://xamvn.com/r/luot-xam-an-toan-ma-k-bi-lo-lang-boi-spam-anh-sech.709300/
Script trong thớt trên quá sida:
- Nó chặn hết link 2023 của upanh => thằng nào up hốt này là bị chặn + ảnh 2024 sẽ k bị chặn
- Nó chặn ở bài viết của tất cả các box => nên giới hạn lại 1 vài box thôi. Chứ vào quán sò mà chặn ảnh thì k ổn

Tao update script như bên dưới, chúng m update bằng cách:
- Click vào icon Tampermonkey => chọn Dashboard
- Click vào chỗ chữ ANTI LINK SPAM
- Xoá hết nội dung script cũ, copy đè cái mới vào
- Ctrl + S để save

Nếu chưa cài đặt lần nào thì tham khảo topic trên, và dùng script ở thớt này

Nếu thấy hữu ích thì vodka:vozvn (18):

JavaScript:
// ==UserScript==
// @name         ANTI SPAM LINK
// @namespace    http://tampermonkey.net/
// @version      2023-12-26
// @description  Tsb ml spam link
// @author       You
// @match        https://xamvn.com/r/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    const boxesToHandle = ['Chuyện Trò', 'Lều báo'];
    var needToProcess = false;
    var currentBox = document.evaluate("//*[@itemprop='itemListElement'][last()]//span", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
    for (let box of boxesToHandle) {
        if(currentBox.textContent.includes(box)) {
            needToProcess = true;
            break;
        }
    }
    if (needToProcess){
        const linksToHandle = ['https://img.upanh.tv/2023/12/23/2024.gif',
                               'https://img.upanh.tv/2023/12/15/anh-lon-gai-2d8fb6b5011679035.jpg',
                               'https://img.upanh.tv/2023/12/15/E0FBYu1VUAMOtiM22e0751c2a7d4283.jpg',
                               'https://img.upanh.tv/2023/12/15/E0E-Kf3UUAEVF5Vcf700ecb42c7236c.jpg',
                               'https://img.upanh.tv/2023/12/23/xamvn.jpg',
                               'https://img.upanh.tv/2023/12/16/xamvn.jpg',
                               'https://img.upanh.tv/2023/12/16/xanmxin.jpg',
                               'https://img.upanh.tv/2023/12/16/photo_2022-03-13_23-29-29-3.jpg',
                               'https://img.upanh.tv/2023/12/15/E0E-Kf3UUAEVF5Vcf700ecb42c7236c.jpg',
                               'https://img.upanh.tv/2023/12/27/manhthuongxin.gif'
                              ];
        var imgs = document.querySelectorAll(".bbImageWrapper img");
        Array.from(imgs).forEach(img => {
            let currentLink = img.getAttribute("src");
            for (let link of linksToHandle){
                if (link === currentLink) {
                    img.setAttribute("src", "");
                    break;
                }
            }
        })
    }
})();
mày có thời gian làm thế này thì xịn:
query tìm cái text xamvn link
mày trace parent node lên tới user post, xem code xem user post nằm trong tag gì, attribute gì
remove hết nguyên cái post spam
 
mày có thời gian làm thế này thì xịn:
query tìm cái text xamvn link
mày trace parent node lên tới user post, xem code xem user post nằm trong tag gì, attribute gì
remove hết nguyên cái post spam
cái khó nhất là nhận ra là post spam. May là nó k thay link thường xuyên, k thì bó chym
 

➕ Có thể bạn quan tâm

Top