El_risitas / removeNestedQuote

// ==UserScript==
// @name         removeNestedQuote
// @version      1.0
// @description  N'afficher que le dernier message cité
// @author       elRisitas
// @license MIT
// @copyright 2020, El_risitas (https://openuserjs.org/users/El_risitas)
// @match        http://www.jeuxvideo.com/forums/*
// @match        https://www.jeuxvideo.com/forums/*
// @grant        none
// ==/UserScript==

(function () {
  'use strict';

  var blockquoteList = document.getElementsByTagName('blockquote') || [];

  for (var i = 0; i < blockquoteList.length; i++) {
    var containNested = blockquoteList[i].getElementsByTagName('blockquote');

    for (var j = 0; j < containNested.length; j++) {
      containNested[j].parentNode.removeChild(containNested[j])
    }

  }

})();