Only let plugin add actions to wp_head & wp_footer on single posts

You need to remove the actions before they are called. In order to ensure this is the case call your function at init, like so:

add_action('init', 'strip_the_junk');

In general, its not a great idea to use the wp_enqueue_scripts hook for anything besides wp_enqueue_script or wp_enqueue_style functions.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)