Import script from userscripts.org

<http://userscripts-mirror.org/scripts/show/131680.html>