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

Companion for my fork of Xhamster Private Profiles : mark viewable deleted user with a Green X

Verze ze dne 28. 07. 2017. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

(function () {

// ==UserScript==
// @name          Xhamster Helper - Totally or Viewable DELETED Users (comp Beta) v.17 - DEV
// @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
//
// @version       v.17
//
// @include       https://*xhamster.com/*
//
// @require       https://greasyfork.org/libraries/GM_setStyle/0.0.15/GM_setStyle.js

// @resource      css  https://pastebin.com/raw/63NZ8mf7
//
// @grant         GM_getResourceText
//
// ==/UserScript==

/*
======== 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);


  let styleNode = GM_setStyle({
    data: GM_getResourceText("css")
  });

})();