Commit be3751e5 authored by Pierre M's avatar Pierre M
Browse files

Initial commit


Signed-off-by: Pierre M's avatarPierre Mazière <pierre.maziere@gmx.com>
parents
// ==UserScript==
// @name DLFPlonk
// @namespace DLFPlonk
// @include https://linuxfr.org/*
// @version 1
// @grant GM_xmlhttpRequest
// ==/UserScript==
// DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
// TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
//
// 0. You just DO WHAT THE FUCK YOU WANT TO.
//
(function() {
var plonk = [];
var articles = document.getElementsByTagName('article');
for (var i = 0; i < articles.length; i++) {
var userLink=articles[i].getElementsByClassName('meta').item(0).getElementsByTagName('a').item(0);
GM_xmlhttpRequest({
method: "GET",
url: userLink.href,
context: articles[i],
onload: function(response) {
if(response.responseText.match(/Compte fermé/)){
response.context.style.display="none";
}
}
});
for(var j = 0; j < plonk.length; j++){
if (userLink.textContent == plonk[j] || userLink.href == "https://linuxfr.org/users/"+plonk[j]){
articles[i].style.display="none";
break;
}
}
}
})();
UserScript to plonk contents authored by specific users of the linuxfr.org website
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment