Xhamster Helper - Totally or Viewable DELETED Users (comp Beta) v.30

Companion for my fork of Xhamster Private Profiles : mark viewable deleted user with a Green X ((lib-add-stylish-string))

Versión del día 23/09/2017. Echa un vistazo a la versión más reciente.

// ==UserScript==
// @name          Xhamster Helper - Totally or Viewable DELETED Users (comp Beta) v.30
// @namespace     https://greasyfork.org/en/users/7434-janvier56
// @description   Companion for my fork of Xhamster Private Profiles : mark viewable deleted user with a Green X ((lib-add-stylish-string))
//
// @version       v.30
//
// @include       https://*xhamster.com/*
//
// @require          https://greasyfork.org/scripts/24621-lib-add-stylish-string/code/lib-add-stylish-string.js
//
// @run-at        document-start
//
// @resource      css  https://pastebin.com/raw/MRiqmNb8
//
// @grant         GM_getResourceText
//
// ==/UserScript==

window.addStylish(GM_getResourceText('css'));
/*
======== pseudo elements  - innerHTML - Using attr(), with pseudo-elements and JavaScript
== https://tiffanybbrown.com/2014/11/using-attr-with-pseudo-elements-and-javascript/
 we'll set a data-txt attribute using DOM scripting.
 Here we've just copied the innerHTML of our paragraph element 
 to the data-txt attribute when the DOMContentLoaded event fires.
window.addEventListener('DOMContentLoaded', function(){
    var p = document.querySelector('p');
    p.dataset.txt = p.innerHTML;
}
window.addEventListener('DOMContentLoaded', function(){
    var p = document.querySelector('p');
    p.dataset.txt = p.innerHTML;
    p.classList.add('triptych');
},false);

*/
window.addEventListener('DOMContentLoaded', function(){
    var p = document.querySelector('.entity-author-container__name>span');
    p.dataset.txt = p.innerHTML;
    p.classList.add('DEL');
},false);