vyznev / soup

Stack Overflow Unofficial Patch
27 stars 6 forks source link

Request: fix the Chat FAQ page #33

Closed mjpieters closed 6 years ago

mjpieters commented 6 years ago

See https://meta.stackoverflow.com/questions/362554/why-are-the-chat-faq-in-almost-identical-links-different; the page tries to use $.curCSS() which is gone from jQuery.

Could S.O.U.P. provide a shim; (such as the one provided here)?

vyznev commented 6 years ago

Done. Unfortunately, it doesn't work reliably (or, as far as I can tell, at all) on Chrome + Tampermonkey due to a race condition in TM's script loading. Basically, by the time TM gets around to running SOUP, the code that calls .curCSS() has already run. But it works fine on Firefox + Violentmonkey and on Chrome as a stand-alone extension, so I'm calling it good enough. :P

vyznev commented 6 years ago

Looks like setting Injection Mode to "Instant" in Tampermonkey prefs (under Experimental) is also enough to make this work.