Pred inštaláciou vás Greasy Fork upozorňuje, že tento skript obsahuje antifeatures, ktoré sú skôr v prospech autora skriptu ako vo váš prospech.
Tento skript obsahuje kód, ktorý bude sledovať vaše prehliadanie.
như tên
// ==UserScript== // @name Hiện nick bị KIA // @namespace idmresettrial // @version 2021.02.13.01 // @description như tên // @author You // @match https://voz.vn/t/* // @grant none // @run-at document-start // @antifeature tracking // ==/UserScript== document.addEventListener('DOMContentLoaded', function () { 'use strict'; function findUser(id) { let token = document.getElementsByName("_xfToken")[0].value; let queryUrl = "https://voz.vn/index.php?members/find&q={username}&_xfRequestUri={requestUri}&_xfWithData=1&_xfToken={token}&_xfResponseType=json"; let username = document.querySelector(".message-userDetails a.username[data-user-id='" + id + "']").innerText; queryUrl = queryUrl.replace("{username}", encodeURIComponent(username)) .replace("{requestUri}", document.location.pathname) .replace("{token}", token); let httpRequest = new XMLHttpRequest(); httpRequest.onreadystatechange = function() { if (httpRequest.readyState === XMLHttpRequest.DONE && httpRequest.status === 200) { let isKIA = !JSON.parse(httpRequest.responseText).results.some(function (r) { return r.id === username; }); gotResult(id, isKIA); } } httpRequest.open("GET", queryUrl); httpRequest.send(); } function gotResult(id, isKIA) { if (isKIA) { let els = document.querySelectorAll(".message-userDetails a.username[data-user-id='" + id + "']"); els.forEach(el => { el.parentElement.parentElement.querySelector("[itemprop=jobTitle]").innerHTML = "Nơi đảo xa"; }); } } let handledIds = []; function inoHandler(entries, observer) { entries.forEach(entry => { let id = entry.target.getAttribute("data-user-id"); if (handledIds.includes(id)) { observer.unobserve(entry.target); } else if (entry.isIntersecting) { findUser(id); handledIds.push(id); } }); } let observer = new IntersectionObserver(inoHandler); let els = document.querySelectorAll(".message-userDetails a.username"); els.forEach(el => observer.observe(el)); });