您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Detects names of common interest.
// ==UserScript== // @name Noticer // @namespace http://tampermonkey.net/ // @version 0.1.3 // @license MIT // @description Detects names of common interest. // @author Chadbertarian // @match *://*/* // @icon https://upload.wikimedia.org/wikipedia/en/1/1d/The_Happy_Merchant.jpg // @grant none // ==/UserScript== fetch('https://api.jsonbin.io/v3/b/648102608e4aa6225eaacca0') .then(response => response.json()) .then(data => { const jsonFile = data.record; const people = jsonFile.people; const person = people.map(person => { return person.name }); const regex = new RegExp(person.join('|', 'gi')); document.body.innerHTML = document.body.innerHTML.replace(regex, '((($&)))'); }) .catch(err => { console.log(err); }); document.body.innerHTML = document.body.innerHTML.replace('Israel', '(((Our Greatest Ally)))');