NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Les Echos.fr sans limite
// @namespace http://varzight.fr
// @version 0.1
// @description Remove annoying limit to 5 articles / Retire la limite de 5 lectures d'articles
// @author varzight
// @require http://code.jquery.com/jquery-latest.js
// @match http*://lesechos.fr/*
// @match http*://www.lesechos.fr/*
// @grant none
// ==/UserScript==
$(document).ready(function() {
'use strict';
// remove some crap
$('div').eq(0).has('iframe').remove();
$('.paywall-fx').remove();
$('.bloc_pub').remove();
$('#Stage').remove();
$('#google_image_div').remove();
// empty cookies to reset articles count (piece of code from stackoverflow)
(function () {
var cookies = document.cookie.split("; ");
for (var c = 0; c < cookies.length; c++) {
var d = window.location.hostname.split(".");
while (d.length > 0) {
var cookieBase = encodeURIComponent(cookies[c].split(";")[0].split("=")[0]) + '=; expires=Thu, 01-Jan-1970 00:00:01 GMT; domain=' + d.join('.') + ' ;path=';
var p = location.pathname.split('/');
document.cookie = cookieBase + '/';
while (p.length > 0) {
document.cookie = cookieBase + p.join('/');
p.pop();
};
d.shift();
}
}
})();
});