This script simply flags the BODY tag with a particular class when the page seems to be in need of review. You can then use CSS rules to apply a different style to these pages.
The "default" CSS rules turn the page backdrop orange when pending changes are present, hide the detailed box (if enabled in the user preferences) when no pending changes are present, and specifies rules to turn links to pages with pending changes orange if User:Anomie/linkclassifier is in use.
importScript('User:Anomie/needsReview.js'); // Linkback: [[User:Anomie/needsReview.js]]
importStylesheet('User:Anomie/needsReview.css'); // Linkback: [[User:Anomie/needsReview.css]]