bug would adjust the script even if the check for an own cookieManager is not set
taken from pull-request; thank you C. Stäblein