Get Channel ID where the extension is currently displayed

Thank you, I have tested it.

Does this also work for non-logged-in users? I have no way to test that before the extension is approved.