Last active
December 7, 2021 07:59
-
-
Save karasugawasu/1a99835d5b9d4e2ce9bd1daa45cdfbf7 to your computer and use it in GitHub Desktop.
消すやつ
This file contains 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 ピックアップをけすやつ | |
// @version 1.0 | |
// @description けすやつ | |
// @author MiMiMi | |
// @match https://jp.finalfantasyxiv.com/lodestone/blog/* | |
// ==/UserScript== | |
'use strict'; | |
window.addEventListener('load', () => { | |
let timer = setInterval(() => { | |
if(document.querySelector('div.heading--pickup') != null ){ | |
hidePickup(); | |
clearInterval(timer); | |
console.log("注目の日記を削除しました"); | |
} | |
}, 100) | |
}) | |
function hidePickup() { | |
document.querySelector('div.heading--pickup').style.display='none'; | |
document.querySelector('div.entry__pickup').style.display='none'; | |
document.querySelector('p.entry__pickup__text').style.display='none'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment