How to run a selector on a dynamically generated page?
问题 I have a selector which works in GM_addStyle but not in jQuery. I want to use jQuery :contains() which is not available in CSS3. But, it appears that the id does not exist on my page when I view source but it's dynamically generated. How do I tell Tampermonkey to run JS after the whole page loads? I have tried different JS @run-at settings but no luck. //works GM_addStyle(" \ #T301444200 > tbody > tr.SelPrimary > td:nth-child(1) > nobr > span{ color: red; } \ "); //does not work $("