Override contrib Disqus behavior settings I want to override a contrib module's library setting that is being attached to page using hook_js_settings_alter(). But, I am unable to change the setting that is being called in js. 

Here is the code that is being called in Disqus module Element:

$element['#attached']['library'][] = 'disqus/disqus';
$element['#attached']['drupalSettings']['disqus'] = $disqus;


I want to override settings in $disqus that is being called in Disqus.js 

Drupal.behaviors.disqus = {
  attach: function (context, settings) {
    // Load the Disqus comments.
    if (settings.disqus || false) {


I could override this element with hook_element_info_alter, but is there a way to override the above settings.disqus using other hooks.
You can also use hook_js_settings_alter Something like:

/**
 * Implements hook_js_settings_alter().
 */
function YOURMODULE_js_settings_alter(array &amp;$settings, \Drupal\Core\Asset\AttachedAssetsInterface $assets) {
  if (isset($settings['disqus'])){
    // Change settings here 
    $new_disqus_settings = [];
    $settings['disqus'] = $new_disqus_settings;
  }
}