AMIAMI HAVE REMOVED STOCK LEVELS FROM THE JSON API DATA. The value is now "0" or "1". This update makes this userscript non-functional, so feel free just to remove the script.
If stock levels are obtainable in future, this script will be updated to v1.5.