您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add info links on Ptt
// ==UserScript== // @name Holmes on Ptt // @namespace https://github.com/gslin/ptt-holmes // @match https://www.ptt.cc/bbs/* // @grant none // @version 0.20250424.0 // @author Gea-Suan Lin <[email protected]> // @description Add info links on Ptt // @license MIT // ==/UserScript== (() => { 'use strict'; // User information document.querySelectorAll('.push-userid').forEach(el => { const userid = el.innerText.trim(); const el_userid = document.createElement('a'); el_userid.setAttribute('href', 'https://www.plytic.com/authors/' + userid.toLowerCase()); el_userid.setAttribute('style', 'color: #ff6;'); el_userid.innerText = userid; el.innerText = ''; el.appendChild(el_userid); }); // IP address information document.querySelectorAll('.push-ipdatetime').forEach(el => { const ip = el.innerText.trim().split(' ')[0]; if (!ip.match(/^[.0-9:]+$/)) { return; } const template = [ ['IntelX', 'https://intelx.io/?s='], ['LeakIX', 'https://leakix.net/search?q=ip:'], ['Shodan', 'https://shodan.io/host/'], ]; // Reverse order due to float. for (const site of template.reverse()) { const el_ip = document.createElement('a'); el_ip.setAttribute('href', site[1] + ip); el_ip.setAttribute('style', 'float: right; font-size: 0.75em; margin-left: 0.333em;'); el_ip.innerText = site[0]; el.insertAdjacentElement('beforebegin', el_ip); } }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址