Makima 发表于 2025-7-16 17:58:53

【脚本】去访客记录

进别人空间的时候会自动转到删访客记录的网页(&do=index&view=admin&additional=removevlog
并记录你去了谁的空间
进论坛主页的时候会自动打开删访客记录的网页,然后自动关闭,并清理记录

@Name @Match
// ==UserScript==
// @name         去访客记录。
// @version      1.0
// @author       M
// @match      https://www.gamemale.com/space-uid-*.html
// @match      https://www.gamemale.com/home.php?mod=space&uid=*&do=index
// @match      https://www.gamemale.com/home.php?mod=space&uid=*
// @match      https://www.gamemale.com/forum.php
// @grant      GM_openInTab
// @grant      GM_setValue
// @grant      GM_getValue
// @grant      GM_deleteValue
// @grant      GM_listValues
// @run-at       document-end
// ==/UserScript==

(function() {
    'use strict';

    const UID_PREFIX = 'uid_';
    const MAX_STORED_UIDS = 50;

    function storeUid(uid) {
      const uidKey = UID_PREFIX + uid;
      GM_setValue(uidKey, Date.now());
      const allUids = GM_listValues().filter(key => key.startsWith(UID_PREFIX)).sort((a, b) => GM_getValue(a) - GM_getValue(b));
      if (allUids.length > MAX_STORED_UIDS) {
            allUids.slice(0, allUids.length - MAX_STORED_UIDS).forEach(key => GM_deleteValue(key));
      }
    }

    if (window.location.href.includes('space-uid-') || window.location.href.includes('home.php?mod=space&uid=')) {
      let uid = null;
      const spaceUidMatch = window.location.href.match(/space-uid-(\d+)\.html/);
      const homePhpMatch = window.location.href.match(/home\.php\?mod=space&uid=(\d+)/);
      if (spaceUidMatch && spaceUidMatch) {
            uid = spaceUidMatch;
      } else if (homePhpMatch && homePhpMatch) {
            uid = homePhpMatch;
      }
      if (uid) {
            storeUid(uid);
            const newUrl = `https://www.gamemale.com/home.php?mod=space&uid=${uid}&do=index&view=admin&additional=removevlog`;
            if (window.location.href !== newUrl) {
                window.location.replace(newUrl);
            }
      }
      return;
    }

    if (window.location.href.includes('forum.php')) {
      setTimeout(() => {
            const uidKeys = GM_listValues().filter(key => key.startsWith(UID_PREFIX));
            if (uidKeys.length > 0) {
                uidKeys.forEach(uidKey => {
                  const uid = uidKey.replace(UID_PREFIX, '');
                  const deleteUrl = `https://www.gamemale.com/home.php?mod=space&uid=${uid}&do=index&view=admin&additional=removevlog`;
                  const newTab = window.open(deleteUrl, '_blank');
                  setTimeout(() => {
                        try {
                            if (newTab && !newTab.closed) newTab.close();
                            GM_deleteValue(uidKey);
                        } catch(e) {}
                  }, 4000);
                });
            }
      }, 1000);
    }
})();

万俟 发表于 2025-7-16 18:07:00

这个脚本真的不错,感觉又可以偷偷窥探了;P

娱乐法师火布偶 发表于 2025-7-16 18:11:10

使用脚本就可以达成真正的偷窥了

是阿行嘞 发表于 2025-7-16 18:12:05

很适合满足我的视碱癖
soon用上~赞美~

毛茸茸兽兽 发表于 2025-7-16 18:19:34

吼~方便偷窥咩~
喝茶ing又想起U老师那偷窥的病娇言论了~

野生阿努厨 发表于 2025-7-16 18:20:13

既悄无声息地视奸别人,又时刻捕捉别人视奸,嘶,好宫斗的感觉{:6_169:}

summerb 发表于 2025-7-16 18:26:25

每天为了3jb去偷 窥别人的空间,能删除记录挺好的

大臣 发表于 2025-7-16 18:29:30

这下可以光明正大地视奸某些人了,日志,记录,回帖都可以看,使劲地看。

dilloner 发表于 2025-7-16 18:29:36

哈哈~这是个好东西啊~可以偷偷视奸了)

凯诺斯 发表于 2025-7-16 18:38:04

很有用的脚本惹,这样就没有访问的足迹了:$

a1b2a9 发表于 2025-7-16 18:57:44

确实是个很有用的小脚本,虽然感觉我不需要呢(我就光明正大的偷窥了

咕里奇 发表于 2025-7-16 19:02:27

用了之后就不怕阴暗沉重的秘密释出了,好评{:6_195:}

zhuovboyan 发表于 2025-7-16 19:05:00

0-0 是之前悬赏帖的内容呀 开始论坛隐身窥视之旅jpg

2302594 发表于 2025-7-16 19:19:45

这个好,不用每次都手动删除了

114514banana 发表于 2025-7-16 19:23:09

可以偷偷视剑他人力,好棒的脚本

SweetUncle 发表于 2025-7-16 19:23:54

好东西好东西~俺可以光明正大视奸了,还不怕被发现

KamiuBlued 发表于 2025-7-16 20:46:36

可以光明正大的当偷窥婆了

柏芸 发表于 2025-7-16 21:11:47

杀人于无形…什么视奸神器;P,突然感觉就有点背后一凉

2674820557 发表于 2025-7-16 21:24:40

很实用惹,偷窥婆有福了,本可试了下,发现好像只能视奸空间首页,点其他类似资料页会强制返回空间首页

rex_125 发表于 2025-7-16 21:24:51

素可以偷偷视奸別人的工具~感觉会很常用
页: [1] 2 3
查看完整版本: 【脚本】去访客记录