NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Daily Mail trash remover
// @namespace http://itsastickup.com
// @version 0.2
// @description Remove the trash on the right-hand side, at the bottom, and top ad
// @author itsastickup
// @copyright 2021, itsastickup (https://openuserjs.org/users/itsastickup)
// @license MIT
// @match https://www.dailymail.co.uk/*l
// @grant none
// @require http://code.jquery.com/jquery-3.3.1.slim.min.js#sha384=q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo
// @updateURL https://openuserjs.org/meta/itsastickup/Daily_Mail_trash_remover.meta.js
// ==/UserScript==
(function () {
'use strict';
function debug(s, label) {
label = label || '';
if (label) {
label = label + ': ';
}
console.debug('Daily Mail trash remover to kindle 2021 itsastickup - ' + label + s);
return s;
}
function debugb(s, label) {
label = label || '';
if (label) {
label = '<div>' + label + ': ' + '</div>';
}
$('body').prepend(label + '<pre>' + s + '</pre>');
}
debug('start');
// window.close();
var sent = false;
var lb = null;
$(document).ready(function () {
var es = $("div.femail.item");
//debugb(es);
es.remove();
var b = $("div.beta");
//debugb(es);
b.remove();
setInterval(function () {
var femail = $("div.femail.item");
//debugb(es);
femail.remove();
var c = $("div.beta");
//debugb(es);
c.remove();
var b = $("div.trc_rbox_container");
b.html('');
var d = $("div.billboard_wrapper");
d.remove();
$('div.femail.item').each(
function (e) { //debugb(e);
e.html('');
})
}, 2000);
});
// Your code here...
})();