403Webshell
Server IP : 167.179.152.94  /  Your IP : 216.73.216.169
Web Server : Apache/2.4.66 (Debian)
System : Linux 6d8cbb3dc321 6.8.0-117-generic #117-Ubuntu SMP PREEMPT_DYNAMIC Tue May 5 19:26:24 UTC 2026 x86_64
User :  ( 1000)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/plugins/google-analytics-for-wordpress/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins/google-analytics-for-wordpress/assets/js/admin-common.js
jQuery(document).ready(function ($) {
  /**
   * Dismissable Notices
   * - Sends an AJAX request to mark the notice as dismissed
   */
  $('div.monsterinsights-notice').on('click', 'button.notice-dismiss', function (e) {
    e.preventDefault();
    $(this).closest('div.monsterinsights-notice').fadeOut();

    // If this is a dismissible notice, it means we need to send an AJAX request
    if ($(this).parent().hasClass('is-dismissible')) {
      $.post(
        monsterinsights_admin_common.ajax,
        {
          action: 'monsterinsights_ajax_dismiss_notice',
          nonce: monsterinsights_admin_common.dismiss_notice_nonce,
          notice: $(this).parent().data('notice')
        },
        function (response) {
        },
        'json'
      );
    }

  });

  /**
   * WP Consent Notice Dismiss
   * - Handles the dismissal of the WP Consent notice
   */
  $('#monsterinsights-wpconsent-notice-close').on('click', function (e) {
    e.preventDefault();

    var $notice = $('#monsterinsights-wpconsent-notice');

    // Fade out the notice immediately for better UX
    $notice.fadeOut();

    // Send AJAX request to dismiss the notice
    $.post(
      monsterinsights_admin_common.ajax,
      {
        action: 'monsterinsights_dismiss_wpconsent_notice',
        nonce: monsterinsights_admin_common.dismiss_notice_nonce
      },
      function () {},
      'json'
    );
  });

  $('div.wp-menu-name > .monsterinsights-menu-notification-indicator').on('click', function (event) {
    event.preventDefault();
    event.stopPropagation();

    location.href = monsterinsights.reports_url + '&open=monsterinsights_notification_sidebar';
  });

  // Persist dismissal of Ads addon installed notice for 30 days
  $('#monsterinsights-ads-addon-notice').on('click', 'button.notice-dismiss', function (e) {
    e.preventDefault();
    $.post(
      monsterinsights_admin_common.ajax,
      {
        action: 'monsterinsights_dismiss_ads_addon_notice',
        nonce: monsterinsights_admin_common.dismiss_notice_nonce
      },
      function () {},
      'json'
    );
  });
});

var submenu_item = document.querySelector('.monsterinsights-upgrade-submenu');
if (null !== submenu_item) {
  var anchorTag = submenu_item.parentNode;

  if ( anchorTag ) {
    anchorTag.setAttribute("target", "_blank");
    anchorTag.setAttribute("rel", "noopener");

    var li = anchorTag.parentNode;

    if (li) {
      li.classList.add('monsterinsights-submenu-highlight');
    }
  }
}

var automated_submenu_item = document.querySelector('.monsterinsights-automated-submenu');
if (null !== automated_submenu_item) {
  var anchorTag = automated_submenu_item.parentNode;

  if ( anchorTag ) {
    anchorTag.setAttribute("target", "_blank");
    anchorTag.setAttribute("rel", "noopener");
    anchorTag.setAttribute("style", "color:#1da867");
  }
}

Youez - 2016 - github.com/yon3zu
LinuXploit