Of course it is. You'll have to follow the logic of the script and edit it accordingly, that's really all that can be suggested.
Add a condition to the if that detects the pages you want to run/not run it on. like, if it's currently if(cow>37){page.screwup();} change it to if (cow>37||document.getElementById('frab_div')){page.screwup('wont be screwed up since it only runs on pages that have frabdiv);}