HIỆN THÔNG BÁO XAMVN

hungem898

Trẻ trâu
tao vừa code đoạn extension chrome hiện thông báo xamvn . dùng tampermonkey . thằng nào cần tao share phía dưới(chỉ dành cho máy tính)
 
tải tampermonkey íntall vào chrome , rồi add script của tao vào là chạy
, cần bật săn 1 tab chrome mở xamvn , cần chi tiết hơn thì cứ gào t cài cho
 
Sửa lần cuối:
JavaScript:
// ==UserScript==
// [USER=1017]@Name[/USER]         XAM Notification
// @namespace    XAM
// @version      6.9
// @description  auto púh notice
// @author       hungvt89
// @match        [URL]https://xamvn.bet/*[/URL]
// [USER=660831]@Grant[/USER]        GM_getValue
// [USER=660831]@Grant[/USER]        GM_setValue
// @icon         data:image/webp;base64,UklGRrIBAABXRUJQVlA4WAoAAAAQAAAAGwAAGwAAQUxQSI4AAAARV6C2jSQ1eDnfxc/8ERGgI2GWv1PAaWzbrnJ+/vL9HlDYh0LlUAYahUSiXwPMReV02ny5g4j+TwCyz1erSciDNAHHL3nd+m4keUijhrA9nZ7ZJQzniNlq9aUZeQC8aRD4ICki8i8BqCe91o2JThEtAMw+rl1p4eHq4VQfktOhcOEtlDFCDYJ1xC9C67DUVlA4IP4AAACQBwCdASocABwAPtE+tFooIigoFAEAGglsAJ0yhHAwgrazwrwwH6m/qr2APJA6wDnzPYkAYsWSivx/YmItR+B77EJQrAAA/c0uRf3OBLi0BAdtubdzRvY4Xagg+CV6UzuEiXIM7etulMrcBCD/QK60cDAFYV7p+hRWX5VfuOssKJVXjMSX74Sg+ukoya1l/fGV/PTuPCXdVYvkoHu3U7rV2iaO/G7yrf0/f3AQR+WfhonYg+s7SGTt3P/6t+FkxQdlOMOTxXl1xev9XOFGHg3157B7va3TGV9r4n4fgLDjI//+tCmGd0AyAV/Pn8yxoFGDtq6KJLen0SU39nogAA==

// ==/UserScript==

(function() {
    'use strict';
    let Delay=10000; // SỬA THÀNH SỐ MILI GIÂY DELAY RELOAD PAGE , VÍ DỤ 3000,5000...60000
    let KeepNotification=true // THÔNG BÁO SẼ KHÔNG ẨN ĐẾN KHI MÀY ẤN VÀO,

    //sửa thành false nếu muốn nó tự ẩn .
    //chấm hết

    let currentBadgeValue = GM_getValue('currentBadgeValue', null);
    function showNotification(title, message) {
        if (Notification.permission === "granted") {
            new Notification(title, {
                body: message,
                requireInteraction: KeepNotification
            });
        } else if (Notification.permission !== "denied") {
            Notification.requestPermission().then(function(permission) {
                if (permission === "granted") {
                    showNotification(title, message);
                }
            });
        }
    }
    function checkBadgeAndNotify() {
        const alertLink = document.querySelector('a[href="/account/alerts"]');
        if (alertLink) {
            const newBadgeValue = alertLink.dataset.badge;
            if (currentBadgeValue !== null &&newBadgeValue != '0'&& newBadgeValue !== currentBadgeValue) {
                showNotification("XAMVN","Ê KU")
            }
            currentBadgeValue = newBadgeValue;
            GM_setValue('currentBadgeValue', currentBadgeValue);
        }
    }

    let loadstart = null;
    if (!document.hasFocus()) {
        loadstart = setTimeout(() => {
            if (!document.hasFocus()) {
                location.reload();
            }
        }, Delay);
    }
    window.addEventListener('visibilitychange', () => {
        if (document.visibilityState === 'hidden') {
            loadstart = setTimeout(() => {
                if (document.visibilityState === 'hidden') {
                    location.reload();
                }
            }, Delay);
        } else if (document.visibilityState === 'visible') {
            if (loadstart) {
                clearTimeout(loadstart);
                loadstart = null;
            }
        }
    });

    checkBadgeAndNotify();

})();
 
Sửa lần cuối:
tao vừa code đoạn extension chrome hiện thông báo xamvn . dùng tampermonkey . thằng nào cần tao share phía dưới(chỉ dành cho máy tính)
Thông báo thì làm cái đéo gì, thêm rối mắt và loạn tiền đình, dạo này thông báo xem xong còn vẫn hiện số cơ. Nhét code của mày vào mai có bay mất nick ko ? hahaha
 
// ==UserScript==
// @Name XAM Notification
// @namespace XAM
// @version 6.9
// @description auto púh notice
// @author hungvt89
// @match https://xamvn.bet/*
// @Grant GM_getValue
// @Grant GM_setValue
// @icon data:image/webp;base64,UklGRrIBAABXRUJQVlA4WAoAAAAQAAAAGwAAGwAAQUxQSI4AAAARV6C2jSQ1eDnfxc/8ERGgI2GWv1PAaWzbrnJ+/vL9HlDYh0LlUAYahUSiXwPMReV02ny5g4j+TwCyz1erSciDNAHHL3nd+m4keUijhrA9nZ7ZJQzniNlq9aUZeQC8aRD4ICki8i8BqCe91o2JThEtAMw+rl1p4eHq4VQfktOhcOEtlDFCDYJ1xC9C67DUVlA4IP4AAACQBwCdASocABwAPtE+tFooIigoFAEAGglsAJ0yhHAwgrazwrwwH6m/qr2APJA6wDnzPYkAYsWSivx/YmItR+B77EJQrAAA/c0uRf3OBLi0BAdtubdzRvY4Xagg+CV6UzuEiXIM7etulMrcBCD/QK60cDAFYV7p+hRWX5VfuOssKJVXjMSX74Sg+ukoya1l/fGV/PTuPCXdVYvkoHu3U7rV2iaO/G7yrf0/f3AQR+WfhonYg+s7SGTt3P/6t+FkxQdlOMOTxXl1xev9XOFGHg3157B7va3TGV9r4n4fgLDjI//+tCmGd0AyAV/Pn8yxoFGDtq6KJLen0SU39nogAA==

// ==/UserScript==

(function() {
'use strict';
let Delay=10000; // SỬA THÀNH SỐ MILI GIÂY DELAY RELOAD PAGE , VÍ DỤ 3000,5000...60000
let KeepNotification=true // THÔNG BÁO SẼ KHÔNG ẨN ĐẾN KHI MÀY ẤN VÀO,

//sửa thành false nếu muốn nó tự ẩn .
//chấm hết

let currentBadgeValue = GM_getValue('currentBadgeValue', null);
function showNotification(title, message) {
if (Notification.permission === "granted") {
new Notification(title, {
body: message,
requireInteraction: KeepNotification
});
} else if (Notification.permission !== "denied") {
Notification.requestPermission().then(function(permission) {
if (permission === "granted") {
showNotification(title, message);
}
});
}
}
function checkBadgeAndNotify() {
const alertLink = document.querySelector('a[href="/account/alerts"]');
if (alertLink) {
const newBadgeValue = alertLink.dataset.badge;
if (currentBadgeValue !== null &&newBadgeValue != '0'&& newBadgeValue !== currentBadgeValue) {
showNotification("XAMVN","Ê KU")
}
currentBadgeValue = newBadgeValue;
GM_setValue('currentBadgeValue', currentBadgeValue);
}
}

let loadstart = null;
if (!document.hasFocus()) {
loadstart = setTimeout(() => {
if (!document.hasFocus()) {
location.reload();
}
}, Delay);
}
window.addEventListener('visibilitychange', () => {
if (document.visibilityState === 'hidden') {
loadstart = setTimeout(() => {
if (document.visibilityState === 'hidden') {
location.reload();
}
}, Delay);
} else if (document.visibilityState === 'visible') {
if (loadstart) {
clearTimeout(loadstart);
loadstart = null;
}
}
});

checkBadgeAndNotify();

})();
JavaScript:
// ==UserScript==
// [USER=1017]@Name[/USER]         XAM Notification
// @namespace    XAM
// @version      6.9
// @description  auto púh notice
// @author       hungvt89
// @match        [URL]https://xamvn.bet/*[/URL]
// [USER=660831]@Grant[/USER]        GM_getValue
// [USER=660831]@Grant[/USER]        GM_setValue
// @icon         data:image/webp;base64,UklGRrIBAABXRUJQVlA4WAoAAAAQAAAAGwAAGwAAQUxQSI4AAAARV6C2jSQ1eDnfxc/8ERGgI2GWv1PAaWzbrnJ+/vL9HlDYh0LlUAYahUSiXwPMReV02ny5g4j+TwCyz1erSciDNAHHL3nd+m4keUijhrA9nZ7ZJQzniNlq9aUZeQC8aRD4ICki8i8BqCe91o2JThEtAMw+rl1p4eHq4VQfktOhcOEtlDFCDYJ1xC9C67DUVlA4IP4AAACQBwCdASocABwAPtE+tFooIigoFAEAGglsAJ0yhHAwgrazwrwwH6m/qr2APJA6wDnzPYkAYsWSivx/YmItR+B77EJQrAAA/c0uRf3OBLi0BAdtubdzRvY4Xagg+CV6UzuEiXIM7etulMrcBCD/QK60cDAFYV7p+hRWX5VfuOssKJVXjMSX74Sg+ukoya1l/fGV/PTuPCXdVYvkoHu3U7rV2iaO/G7yrf0/f3AQR+WfhonYg+s7SGTt3P/6t+FkxQdlOMOTxXl1xev9XOFGHg3157B7va3TGV9r4n4fgLDjI//+tCmGd0AyAV/Pn8yxoFGDtq6KJLen0SU39nogAA==

// ==/UserScript==

(function() {
    'use strict';
    let Delay=10000; // SỬA THÀNH SỐ MILI GIÂY DELAY RELOAD PAGE , VÍ DỤ 3000,5000...60000
    let KeepNotification=true // THÔNG BÁO SẼ KHÔNG ẨN ĐẾN KHI MÀY ẤN VÀO,

    //sửa thành false nếu muốn nó tự ẩn .
    //chấm hết

    let currentBadgeValue = GM_getValue('currentBadgeValue', null);
    function showNotification(title, message) {
        if (Notification.permission === "granted") {
            new Notification(title, {
                body: message,
                requireInteraction: KeepNotification
            });
        } else if (Notification.permission !== "denied") {
            Notification.requestPermission().then(function(permission) {
                if (permission === "granted") {
                    showNotification(title, message);
                }
            });
        }
    }
    function checkBadgeAndNotify() {
        const alertLink = document.querySelector('a[href="/account/alerts"]');
        if (alertLink) {
            const newBadgeValue = alertLink.dataset.badge;
            if (currentBadgeValue !== null &&newBadgeValue != '0'&& newBadgeValue !== currentBadgeValue) {
                showNotification("XAMVN","Ê KU")
            }
            currentBadgeValue = newBadgeValue;
            GM_setValue('currentBadgeValue', currentBadgeValue);
        }
    }

    let loadstart = null;
    if (!document.hasFocus()) {
        loadstart = setTimeout(() => {
            if (!document.hasFocus()) {
                location.reload();
            }
        }, Delay);
    }
    window.addEventListener('visibilitychange', () => {
        if (document.visibilityState === 'hidden') {
            loadstart = setTimeout(() => {
                if (document.visibilityState === 'hidden') {
                    location.reload();
                }
            }, Delay);
        } else if (document.visibilityState === 'visible') {
            if (loadstart) {
                clearTimeout(loadstart);
                loadstart = null;
            }
        }
    });

    checkBadgeAndNotify();

})();
 
Thông báo thì làm cái đéo gì, thêm rối mắt và loạn tiền đình, dạo này thông báo xem xong còn vẫn hiện số cơ. Nhét code của mày vào mai có bay mất nick ko ? hahaha
kk tao vừa ngồi lướt fb vừa nghịch xam thì cần thôi , code thì như kia chả có gì lấy đc của m hh
 
JavaScript:
// ==UserScript==
// [USER=1017]@Name[/USER]         XAM Notification
// @namespace    XAM
// @version      6.9
// @description  auto púh notice
// @author       hungvt89
// @match        [URL]https://xamvn.bet/*[/URL]
// [USER=660831]@Grant[/USER]        GM_getValue
// [USER=660831]@Grant[/USER]        GM_setValue
// @icon         data:image/webp;base64,UklGRrIBAABXRUJQVlA4WAoAAAAQAAAAGwAAGwAAQUxQSI4AAAARV6C2jSQ1eDnfxc/8ERGgI2GWv1PAaWzbrnJ+/vL9HlDYh0LlUAYahUSiXwPMReV02ny5g4j+TwCyz1erSciDNAHHL3nd+m4keUijhrA9nZ7ZJQzniNlq9aUZeQC8aRD4ICki8i8BqCe91o2JThEtAMw+rl1p4eHq4VQfktOhcOEtlDFCDYJ1xC9C67DUVlA4IP4AAACQBwCdASocABwAPtE+tFooIigoFAEAGglsAJ0yhHAwgrazwrwwH6m/qr2APJA6wDnzPYkAYsWSivx/YmItR+B77EJQrAAA/c0uRf3OBLi0BAdtubdzRvY4Xagg+CV6UzuEiXIM7etulMrcBCD/QK60cDAFYV7p+hRWX5VfuOssKJVXjMSX74Sg+ukoya1l/fGV/PTuPCXdVYvkoHu3U7rV2iaO/G7yrf0/f3AQR+WfhonYg+s7SGTt3P/6t+FkxQdlOMOTxXl1xev9XOFGHg3157B7va3TGV9r4n4fgLDjI//+tCmGd0AyAV/Pn8yxoFGDtq6KJLen0SU39nogAA==

// ==/UserScript==

(function() {
    'use strict';
    let Delay=10000; // SỬA THÀNH SỐ MILI GIÂY DELAY RELOAD PAGE , VÍ DỤ 3000,5000...60000
    let KeepNotification=true // THÔNG BÁO SẼ KHÔNG ẨN ĐẾN KHI MÀY ẤN VÀO,

    //sửa thành false nếu muốn nó tự ẩn .
    //chấm hết

    let currentBadgeValue = GM_getValue('currentBadgeValue', null);
    function showNotification(title, message) {
        if (Notification.permission === "granted") {
            new Notification(title, {
                body: message,
                requireInteraction: KeepNotification
            });
        } else if (Notification.permission !== "denied") {
            Notification.requestPermission().then(function(permission) {
                if (permission === "granted") {
                    showNotification(title, message);
                }
            });
        }
    }
    function checkBadgeAndNotify() {
        const alertLink = document.querySelector('a[href="/account/alerts"]');
        if (alertLink) {
            const newBadgeValue = alertLink.dataset.badge;
            if (currentBadgeValue !== null &&newBadgeValue != '0'&& newBadgeValue !== currentBadgeValue) {
                showNotification("XAMVN","Ê KU")
            }
            currentBadgeValue = newBadgeValue;
            GM_setValue('currentBadgeValue', currentBadgeValue);
        }
    }

    let loadstart = null;
    if (!document.hasFocus()) {
        loadstart = setTimeout(() => {
            if (!document.hasFocus()) {
                location.reload();
            }
        }, Delay);
    }
    window.addEventListener('visibilitychange', () => {
        if (document.visibilityState === 'hidden') {
            loadstart = setTimeout(() => {
                if (document.visibilityState === 'hidden') {
                    location.reload();
                }
            }, Delay);
        } else if (document.visibilityState === 'visible') {
            if (loadstart) {
                clearTimeout(loadstart);
                loadstart = null;
            }
        }
    });

    checkBadgeAndNotify();

})();
ok thank bro
JavaScript:
hentai
 

Có thể bạn quan tâm

Top