Detects names of common interest.
当前为
// ==UserScript==
// @name Noticer
// @namespace http://tampermonkey.net/
// @version 0.1.1
// @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 = jews;
const jew = jews.map(jew => { return jew.name });
const regex = new RegExp(jew.join('|', 'gi'));
document.body.innerHTML = document.body.innerHTML.replace(regex, '((($&)))');
document.body.innerHTML = document.body.innerHTML.replace('Israel', '(((Our Greatest Ally)))');
})
.catch(err => {
console.log(err);
});