- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
// ==UserScript==
// @name Unnamed Script 230178
// @version 1
// @grant none
// @include https://www.instagram.com/*
// ==/UserScript==
window.addEventListener('load', function(){
console.log("my script starting...");
const body = document.querySelector('body');
const config = {
attributes: true,
attributeFilter: ["style"]
};
const callback = function(mutationsList, observer) {
console.log("mutation aaargh-aaarghrghrhg");
for (let mutation of mutationsList) {
console.log('zaloop');
// if (mutation.type === 'attributes' && mutation.attributeName === 'style') {
try {
body.setAttribute('style', '');
document.querySelector('.RnEpo').setAttribute('style', 'display: none;');
observer.disconnect();
console.log("#hide");
} catch (e) {
console.log(e);
}
// }
}
};
const observer = new MutationObserver(callback);
observer.observe(body, config);
console.log("my script stop");
});