It works if you have enough money and start with very low bets. Sadly, I think some sites employ scripts that prevent you from abusing martingale, that's why some people recommend to change "seeds" from time to time if you run into a wall of losses.
Otherwise people would just go in with a high amount of money, like 100BTC, set the minimum bet to 0.001BTC and run on auto 24/7.
Sites don't need to "employ scripts that prevent you from abusing martingale".
Martingale abuses you if you use it long enough.
In your example, after 10 losses in a row you've lost 1.023 BTC,
after 16 losses in a row you've lose 65.535 BTC, and don't have enough to double for your 17th bet.
You can expect to hit a streak of 16 losses in a row every 56000 rolls or so (at 49.5%).
See why no special script is needed? Play long enough and you'll lose without the site doing any cheating.