Noticer

Detects names of common interest.

目前为 2023-06-07 提交的版本。查看 最新版本

// ==UserScript==
// @name         Noticer 
// @namespace    http://tampermonkey.net/
// @version      0.1.2
// @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.jews;
 
        const jew = people.map(jew => { return jew.name });
        const regex = new RegExp(jew.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)))');