improved detection

TODO: add mutation observer for small chat
detectioon is now working better
detect_mini still run from console.