Ne plus afficher "agrandir image "

2 participants

Voir le sujet précédent Voir le sujet suivant Aller en bas

Résolu Ne plus afficher "agrandir image "

Message par chrisnvidia Dim 22 Jan 2023 - 15:30

Détails techniques


Version du forum : phpBB3
Poste occupé : Administrateur
Navigateur(s) concerné(s) : Mozilla Firefox
Capture d'écran du problème :
Voir l'image:

Personnes concernées par le problème : Tous les utilisateurs
Problème apparu depuis : 20/01/2023
Lien du forum : https://windows-et-depannage.forumactif.fr

Description du problème

Bonjour

je rencontre un souci avec les images , elles affichent toujours " Agrandir image "
et dans le PA ;

Hauteur :
Largeur :

j'ai rien mis

afficher - Ne plus afficher "agrandir image " Diment11

Est ce qu'il y a un script ou autre à mettre .

Pour info le forum est sous Edge

Merci d'avance pour votre lumière Wink
chrisnvidia

chrisnvidia
***

Masculin
Messages : 131
Inscrit(e) le : 20/01/2015

https://windows-et-depannage.forumactif.fr
chrisnvidia a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Ne plus afficher "agrandir image "

Message par chattigre Dim 22 Jan 2023 - 15:47

Bonjour,

Est ce qu'il y a un script ou autre à mettre .
Plutôt un à enlever Mr. Green

Il me semble que c'est dans le script par défaut de Edge, ou en tout cas c'est dans un Javascript placé sur toutes les pages, recherchez et supprimez le code suivant :
Code:
(function () {
  window.fa_img_resizer = {
    max_width: 400,
    max_height: 250,
    selector: '.postbody .content img, .mod_news img, .message-text img',
    options: {
      bar: true,
      toggler: true,
      full_size: true,
      download: false,
      lightbox: true
    },
    lang: {
      full_size: '<i class="fa fa-external-link"></i> Voir en grand',
      enlarge: '<i class="fa fa-search-plus"></i> Agrandir l\'image',
      reduce: '<i class="fa fa-search-minus"></i> Réduire l\'image',
      download: '<i class="fa fa-download"></i> Télécharger l\'image',
      tooltip: 'Cliquez pour voir en entier'
    },
    resize: function () {
      for (var a = $(fa_img_resizer.selector), i = 0, j = a.length; i < j; i++) {
        if (!a[i].longdesc && (a[i].naturalWidth > fa_img_resizer.max_width || a[i].naturalHeight > fa_img_resizer.max_height)) {
          a[i].className += ' fa_img_reduced';
          if (fa_img_resizer.options.lightbox && a[i].parentNode.tagName != 'A') {
            a[i].style.cursor = 'pointer';
            a[i].title = fa_img_resizer.lang.tooltip;
            a[i].onclick = function () {
              fa_img_resizer.lightbox(this)
            }
          }
          if (fa_img_resizer.options.bar) {
            (a[i].parentNode.tagName == 'A' ? a[i].parentNode : a[i]).insertAdjacentHTML('beforebegin', '<div class="fa_img_resizer" style="width:' + (a[i].width - 8) + 'px;">' + (fa_img_resizer.options.toggler ? '<a class="fa_img_enlarge" href="#" onclick="fa_img_resizer.toggle(this); return false;">' + fa_img_resizer.lang.enlarge + '</a>' : '') + (fa_img_resizer.options.full_size ? '<a class="fa_img_full" href="/viewimage.forum?u=' + a[i].src + '" target="_blank">' + fa_img_resizer.lang.full_size + '</a>' : '') + (fa_img_resizer.options.download && !/Firefox/.test(navigator.userAgent) && 'download' in document.createElement('A') ? '<a class="fa_img_download" href="' + a[i].src + '" target="_blank" download>' + fa_img_resizer.lang.download + '</a>' : '') + '</div>')
          }
        }
      }
    },
    toggle: function (that) {
      var img = that.parentNode.nextSibling;
      if (img.tagName == 'A') {
        img = img.getElementsByTagName('IMG') [0]
      }
      if (/fa_img_reduced/.test(img.className)) {
        that.innerHTML = fa_img_resizer.lang.reduce;
        that.className = 'fa_img_reduce';
        img.className = img.className.replace(/fa_img_reduced/, 'fa_img_enlarged')
      } else {
        that.innerHTML = fa_img_resizer.lang.enlarge;
        that.className = 'fa_img_enlarge';
        img.className = img.className.replace(/fa_img_enlarged/, 'fa_img_reduced')
      }
      that.parentNode.style.width = img.width - 8 + 'px'
    },
    lightbox: function (that) {
      var frag = document.createDocumentFragment(),
      overlay = $('<div id="fa_img_lb_overlay" />') [0],
      img = $('<img id="fa_img_lb_image" src="' + that.src + '" />') [0];
      overlay.onclick = fa_img_resizer.kill_lightbox;
      img.onclick = fa_img_resizer.kill_lightbox;
      frag.appendChild(overlay);
      frag.appendChild(img);
      document.body.appendChild(frag);
      document.body.style.overflow = 'hidden';
      img.style.marginTop = '-' + (img.height / 2) + 'px';
      img.style.marginLeft = '-' + (img.width / 2) + 'px'
    },
    kill_lightbox: function () {
      var overlay = document.getElementById('fa_img_lb_overlay'),
      img = document.getElementById('fa_img_lb_image');
      overlay && document.body.removeChild(overlay);
      img && document.body.removeChild(img);
      document.body.style.overflow = ''
    }
  };
  document.write('<style type="text/css">' + fa_img_resizer.selector + ', .fa_img_reduced { max-width:' + fa_img_resizer.max_width + 'px; max-height:' + fa_img_resizer.max_height + 'px; }' + '.fa_img_enlarged { max-width:100% !important; max-height:100% !important; }' + '.fa_img_resizer { font-size:12px; text-align:left; padding:3px; margin:3px 0; background:#FFF; border:1px solid #CCC; }' + '.fa_img_resizer a { display:inline-block; margin:0 3px; }' + '.fa_img_resizer i { font-size:14px; vertical-align:middle; }' + '#fa_img_lb_overlay { background:rgba(0, 0, 0, 0.7); position:fixed; top:0; right:0; bottom:0; left:0; z-index:999999; cursor:pointer; }' + '#fa_img_lb_image { max-height:100%; max-width:100%; position:fixed; left:50%; top:50%; z-index:9999999; cursor:pointer; }' + '</style>');
  $(window).load(fa_img_resizer.resize);
  if (window.resize_images) {
    window.resize_images = function () {
      return false
    }
  }
}());
Vérifiez ensuite qu'il n'y a pas d'erreurs particulières en conséquence (notamment si la fonction était appelée ailleurs), mais à première vue il ne devrait pas y en avoir.

Cordialement
chattigre

chattigre
Aidactif
Aidactif

Masculin
Messages : 3596
Inscrit(e) le : 17/04/2019

https://test1-chattigre.forumactif.fr
chattigre a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Ne plus afficher "agrandir image "

Message par chrisnvidia Dim 22 Jan 2023 - 16:29

Hello chattigre


Merci beaucoup impec j'ai trouvé thumright
chrisnvidia

chrisnvidia
***

Masculin
Messages : 131
Inscrit(e) le : 20/01/2015

https://windows-et-depannage.forumactif.fr
chrisnvidia a été remercié(e) par l'auteur de ce sujet.

Voir le sujet précédent Voir le sujet suivant Revenir en haut

- Sujets similaires

Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum