DPRA-ify

Singing praises to our Beloved Sun of the Rocky Mountains, Donald J. Trump, Supreme Leader to the Democratic People's Republic of America.

目前为 2025-03-11 提交的版本。查看 最新版本

// ==UserScript==
// @name        DPRA-ify
// @namespace   io.github.poneyclairdelune.dpra
// @match       https://whitehouse.gov/*
// @match       https://www.whitehouse.gov/*
// @run-at      document-idle
// @grant       none
// @version     0.0.1
// @author      Lumière Élevé
// @homepageURL https://github.com/PoneyClairDeLune/DPRA-ify
// @supportURL  https://github.com/PoneyClairDeLune/DPRA-ify/issues
// @description Singing praises to our Beloved Sun of the Rocky Mountains, Donald J. Trump, Supreme Leader to the Democratic People's Republic of America.
// @license     WTFPL
// ==/UserScript==
"use strict";(()=>{let r={"Vice ":"Second to","President ":[["","Our"],["","Great","Supreme","Beloved","Dear","Glorious","Graceful","Selfless","Strong-willed"],["","Great","Supreme","Beloved","Dear","Glorious","Graceful","Selfless","Strong-willed"],["Leader","Comrade","General","Commander","Marshal","Sun of Mt. Paektu","Rising Sun of the Rocky Mountains","Shining Star of the Appalachian Mountains","Child of God","God","Saviour"]]};let n=[];for(let e in r)n.push(e);for(let e of n)r[e.toUpperCase()]=r[e],r[e.toLowerCase()]=r[e];let f=e=>{switch(typeof r[e]){case"string":return r[e];case"object":{let t=[];for(let o of r[e]){let l=o[Math.floor(Math.random()*o.length)];l?.length>0&&t.push(l)}return t.join(" ")}}},s=[];for(let e of document.querySelectorAll("p, a")){let t=!1;for(let o of e.childNodes){if(o.nodeType===3){for(let l in r)if(o.data.indexOf(l)!==-1&&(t=!0),t)break}if(t)break}t&&s.push(e)}for(let e of s)for(let t of e.childNodes)if(t.nodeType===3){let o=t.data;for(let l in r)switch(l){case"President ":{let d=Math.floor(Math.random()*3),a=[];for(let i=0;i<=d;i++)a.push(f(l));o=o.replaceAll(l,`${a.join(", ")} `);break}default:o=o.replaceAll(l,`${f(l)} `)}t.data=o}})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址