@aleksei I read your topic: https://community.nodebb.org/topic/15252/execute-custom-js-on-infinite-scroll and saw you're dealing with C4D-Files. 😄
NodeBB AdSense Plugin
I know a AdSense Plugin already exist (nodebb-plugin-google-adsense). But it is not compatible with 0.7.x and the developer does not update it. So if someone could make a new one or update the existing one - that would be nice.