If you assume that every bot protection script will look at navigator.webdriver, you can just set a breakpoint before the script runs, and set a debugger statement on the property to land somewhere useful:
Object.defineProperty(navigator, 'webdriver', {
get: () => {debugger; return false},
});