Skip to content

Instantly share code, notes, and snippets.

@hidao80
Last active February 23, 2023 08:33
Show Gist options
  • Save hidao80/7687c7b8c41934902f9ff832bdb4808c to your computer and use it in GitHub Desktop.
Save hidao80/7687c7b8c41934902f9ff832bdb4808c to your computer and use it in GitHub Desktop.
消えないプロフィール列 for Misskey.dev
(()=>{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)})();
(()=>{
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