Skip to content

Instantly share code, notes, and snippets.

@ChenYFan
Created December 6, 2021 13:43
Show Gist options
  • Save ChenYFan/ce08ed4f5da99028f7a464ca74783a04 to your computer and use it in GitHub Desktop.
Save ChenYFan/ce08ed4f5da99028f7a464ca74783a04 to your computer and use it in GitHub Desktop.
好脚本♂
// ==UserScript==
// @name All Porn
// @namespace http://tampermonkey.net/
// @version 1
// @author ChenYFan
// @match *://*/*
// @icon https://api.cyfan.top/icon?domain=pornhub.com
// @grant none
// ==/UserScript==
(function() {
document.head = document.head || document.getElementsByTagName('head')[0];
function changeFavicon(src) {
var link = document.createElement('link'),
oldLink = document.getElementById('dynamic-favicon');
link.id = 'dynamic-favicon';
link.rel = 'shortcut icon';
link.href = src;
if (oldLink) {
document.head.removeChild(oldLink);
}
document.head.appendChild(link);
}
changeFavicon('https://api.cyfan.top/icon?domain=pornhub.com');
document.title = 'Porn Hub - Free Porn and Porn Cams - Free Porn Chat and Webcam Porn Videos - Free Porn, Porn Cams, Free Porn Chat, Webcam Porn'
const o_t = document.title
let flag = false
setInterval(()=>{if(flag){document.title = "【新消息】"+o_t}else{document.title = '【_______】'+o_t};flag=!flag},500)
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment