Refactor like button script

It's now called from within ChromeLL, instead of relying on an
inline script.