Last active
January 5, 2023 06:02
-
-
Save victorchee/e5cec41982f3fbf611faa0e6f88459c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name XiSai | |
// @namespace https://gist.github.com/victorchee/e5cec41982f3fbf611faa0e6f88459c6.js | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author VictorChee | |
// @match https://wangxiao.xisaiwang.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=45.185 | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
// Your code here... | |
// page loaded complete | |
document.onreadystatechange = function() { | |
if (document.readyState == 'complete') { | |
const footer = document.getElementsByClassName('ecv2_footer')[0]; | |
if (footer) { | |
footer.parentElement.removeChild(footer); | |
} | |
// https://wangxiao.xisaiwang.com/ucenter2/personal/index.html | |
const leftHead = document.querySelector('div.fl'); | |
if (leftHead) { | |
leftHead.hidden = true; | |
} | |
const adImage = document.querySelector('div.advImg.ad_div'); | |
if (adImage) { | |
adImage.hidden = true; | |
} | |
const rightTool = document.getElementsByClassName('ecv2_right_tools')[0]; | |
if (rightTool) { | |
rightTool.parentElement.removeChild(rightTool); | |
} | |
// https://wangxiao.xisaiwang.com/tiku2/ | |
const titleHeader = document.getElementById('accountSettingsHeader'); | |
if (titleHeader) { | |
titleHeader.parentElement.removeChild(titleHeader); | |
} | |
const qrCode = document.getElementsByClassName('zt_top_right')[0]; | |
if (qrCode) { | |
qrCode.parentElement.removeChild(qrCode); | |
} | |
} | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment