-
Notifications
You must be signed in to change notification settings - Fork 30
/
Upjers_Advertisement_Goodbye.user.js
63 lines (60 loc) · 2.72 KB
/
Upjers_Advertisement_Goodbye.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// ==UserScript==
// @name Upjers Advertisement Goodbye
// @namespace https://github.com/BastianKanaan/GMscripts_MyFreeFarm
// @author BastianKanaan
// @description Entfernt Upjers Werbung
// @date 29.05.2014
// @version 2.0
// @include http://*myfreefarm.*
// @include http://*mabelleferme.*
// @include http://*wolnifarmerzy.*
// @include http://*enkicsitanyam.*
// @include http://*veselaferma.*
// @include http://*mojaderewnja.*
// @include http://*migranjalinda.*
// @include http://*kapibados.*
// @include http://*zagubionawyspa.*
// @include http://*kapihospital.*
// @include http://*molehillempire.*
// @include http://*zeleneimperium.*
// @include http://*wurzelimperium.*
// @include http://*kipourosendrasi.*
// @include http://*kertbirodalom.*
// @include http://*zieloneimperium.*
// @include http://*bahcivanlardiyari.*
// ==/UserScript==
window.addEventListener("load",function(){
function $(ID){return document.getElementById(ID);}
// Toolbar
if ($("uptoolbar")){ $("uptoolbar").style.display = "none"; }
if ($("upsimtoolbar")){ $("upsimtoolbar").style.display = "none"; }
// advertising in iframe at right border
if ($("banner_right")) { $("banner_right").style.display = "none"; }
if ($("skyframe")){ $("skyframe").parentNode.style.display="none"; }
if(location.hostname.match(/myfreefarm/)||location.hostname.match(/mabelleferme/)||location.hostname.match(/wolnifarmerzy/)||location.hostname.match(/enkicsitanyam/)||location.hostname.match(/veselaferma/)||location.hostname.match(/mojaderewnja/)||location.hostname.match(/migranjalinda/)){
// MyFreeFarm
GM_addStyle("#travelpremiuminfo{display:none!important;}");
GM_addStyle("#travelad{display:none!important;}");
} else if(location.hostname.match(/kapihospital/)){
// Kapi Hospital
try{
var candDiv = document.getElementsByTagName("div");
for(var i=0;i<candDiv.length;i++){
if (candDiv[i].style.backgroundImage.match("tool_bg.jpg")){
// upjers toolbar with random id
candDiv[i].parentNode.style.display = "none";
}
if (candDiv[i].id == "menu_miniicons"){
// maincontainer
candDiv[i].parentNode.style.marginTop="5px";
}
}
// TopRack
if($("toprack")){ $("toprack").style.top="129px"; }
candDiv=null;
}catch(err){}
} else if(location.hostname.match(/wurzelimperium/)||location.hostname.match(/molehillempire/)||location.hostname.match(/zeleneimperium/)||location.hostname.match(/kipourosendrasi/)||location.hostname.match(/kertbirodalom/)||location.hostname.match(/zieloneimperium/)||location.hostname.match(/bahcivanlardiyari/)){
// Wurzelimperium
document.body.style.margin="0px";
}
},false);