Skip to content

Instantly share code, notes, and snippets.

@karasugawasu
Last active December 7, 2021 07:59
Show Gist options
  • Save karasugawasu/1a99835d5b9d4e2ce9bd1daa45cdfbf7 to your computer and use it in GitHub Desktop.
Save karasugawasu/1a99835d5b9d4e2ce9bd1daa45cdfbf7 to your computer and use it in GitHub Desktop.
消すやつ
// ==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