Last active
February 23, 2023 08:33
-
-
Save hidao80/7687c7b8c41934902f9ff832bdb4808c to your computer and use it in GitHub Desktop.
消えないプロフィール列 for Misskey.dev
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
(()=>{const username=JSON.parse(localStorage.getItem("vuex")).i.username,a=document.querySelector(`a[title=${username}]`);a.click(),setTimeout(()=>{const main=document.querySelector("#app > div.content > div"),profile=document.querySelector("div[data-v-2e1e50f0].dnpfarvgbnfmyzbdquhhzyxcmstpdqzs");let div=profile.cloneNode(!0);div.querySelector("button.close").onclick=e=>e.target.parentNode.parentNode.remove(),main.insertBefore(div,document.querySelector("#app > div.content > div > button")),setTimeout(()=>{profile.querySelector("button.close").click()},500)},500)})(); |
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
(()=>{ | |
const username = JSON.parse(localStorage.getItem('vuex')).i.username; | |
const a = document.querySelector(`a[title=${username}]`); | |
a.click(); | |
setTimeout(() => { | |
const main = document.querySelector('#app > div.content > div'); | |
const profile = document.querySelector('div[data-v-2e1e50f0].dnpfarvgbnfmyzbdquhhzyxcmstpdqzs'); | |
let div = profile.cloneNode(true); | |
div.querySelector('button.close').onclick = e => e.target.parentNode.parentNode.remove(); | |
main.insertBefore(div, document.querySelector('#app > div.content > div > button')); | |
setTimeout(() => { | |
profile.querySelector('button.close').click(); | |
}, 500); | |
}, 500); | |
})(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment