forked from jesus2099/konami-command
-
Notifications
You must be signed in to change notification settings - Fork 0
/
laposte.net_BOUGEZ-AVEC-LA-POSTE.user.js
43 lines (43 loc) · 2.26 KB
/
laposte.net_BOUGEZ-AVEC-LA-POSTE.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// ==UserScript==
// @name laposte.net. BOUGEZ AVEC LA POSTE
// @version 2016.6.15
// @changelog https://github.com/jesus2099/konami-command/commits/master/laposte.net_BOUGEZ-AVEC-LA-POSTE.user.js
// @description laposte.net webmail power ups: Déconnexion d’un seul clic, moins de pubs
// @homepage http://userscripts-mirror.org/scripts/show/422068
// @supportURL https://github.com/jesus2099/konami-command/labels/laposte.net_BOUGEZ-AVEC-LA-POSTE
// @compatible opera(12.18.1872)+violentmonkey my setup
// @namespace https://github.com/jesus2099/konami-command
// @downloadURL https://github.com/jesus2099/konami-command/raw/master/laposte.net_BOUGEZ-AVEC-LA-POSTE.user.js
// @updateURL https://github.com/jesus2099/konami-command/raw/master/laposte.net_BOUGEZ-AVEC-LA-POSTE.user.js
// @author PATATE12
// @licence CC BY-NC-SA 3.0 (https://creativecommons.org/licenses/by-nc-sa/3.0/)
// @since 2014-03-21
// @icon data:image/gif;base64,R0lGODlhEAAQAKEDAP+/3/9/vwAAAP///yH/C05FVFNDQVBFMi4wAwEAAAAh/glqZXN1czIwOTkAIfkEAQACAwAsAAAAABAAEAAAAkCcL5nHlgFiWE3AiMFkNnvBed42CCJgmlsnplhyonIEZ8ElQY8U66X+oZF2ogkIYcFpKI6b4uls3pyKqfGJzRYAACH5BAEIAAMALAgABQAFAAMAAAIFhI8ioAUAIfkEAQgAAwAsCAAGAAUAAgAAAgSEDHgFADs=
// @grant none
// @match *://webmail.laposte.net/*
// @match *://www.laposte.net/*
// @exclude *advertisement*
// @exclude *leftpub*
// @run-at document-end
// ==/UserScript==
"use strict";
document.head.appendChild(document.createElement("style")).setAttribute("type", "text/css");
var j2css = document.styleSheets[document.styleSheets.length - 1];
j2css.insertRule([
"div.home div#aside div[class*='advertis']",
"div.home div#aside div[class*='Shopping']",
"iframe#adtopiframe",
"iframe.adtopiframe",
"td#bottomPub",
"td.bottomPub",
].join(", ") + " { display: none; }", j2css.cssRules.length);
var maxinterval = 20;
var interval = setInterval(function(){
var quitter = document.querySelector("a#quitLink[onclick]");
if (quitter) {
quitter.removeAttribute("onclick");
quitter.setAttribute("href", "https://compte.laposte.net/logout.do");
quitter.style.setProperty("color", "#fc6");
}
if (quitter || maxinterval-- < 0) clearInterval(interval);
}, 400);