I've simplified the element for isProfile and made sure to not run that inside Instagram pages that have /p/ in their URL;
IG_DWSTORY_THUMBNAIL should only be removed when it exists;
There's a rare bug that happens on https://www.instagram.com/explore/, similar to the bug I sent you on Discord. IG-Helper buttons are misattached, you can trigger that behavior by clicking fast "back" and "forward" buttons of the browser, for example between Home and Explore pages. Adding && !location.pathname.match(/^(\/explore\/?)/ig) will prevent this weird behavior.
/p/
in their URL;IG_DWSTORY_THUMBNAIL
should only be removed when it exists;https://www.instagram.com/explore/
, similar to the bug I sent you on Discord. IG-Helper buttons are misattached, you can trigger that behavior by clicking fast "back" and "forward" buttons of the browser, for example between Home and Explore pages. Adding&& !location.pathname.match(/^(\/explore\/?)/ig)
will prevent this weird behavior.