NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name bongacamsKillAds // @description Kill ads & banners on bongacams.com // @version 1.1 // @author Max Max // @license MIT // @include http://bongacams.com/ // @include http://*.bongacams.com/ // @include http://*.bongacams.com/* // @match http://bongacams.com/ // @match http://*.bongacams.com/ // @match http://*.bongacams.com/* // @icon http://i.bongacams.com/images/apple/apple-touch-icon-60x60.png // @run-at document-end // @grant none // ==/UserScript== if(window.self!=window.top){return} if(!window.location.href.match(/bongacams\.com/)){return} if(!document.getElementById('header')){return} var banner,popup,p;removeElementById("member_join_popup_trigger");removeElementById("member_join_popup");removeElementById("fancybox-tmp");removeElementById("fancybox-loading");removeElementById("fancybox-overlay");removeElementById("fancybox-wrap");removeElementById("fancybox-content");removeElementById("fancybox-outer");removeElementById("goldone_popup_trigger");removeElementById("goldtwo_popup_trigger");removeElementById("goldtree_popup_trigger");removeElementById("goldlast_popup_trigger");removeElementById("goldone_popup");removeElementById("goldtwo_popup");removeElementById("goldtree_popup");removeElementById("goldlast_popup");banner=_NodeByXPath('//div[@class="top_banner"]');if(banner){banner.innerHTML="";banner.style.height="0";}removeElementById("warning_popup_mask");removeElementById("warning_popup");_removeElByPath('//div[@class="warning_popup_content"]');removeElementById("fancybox-outer");removeElementById("fancybox-wrap");removeElementById("fancybox-content");if(window.location.href.match(/chat/)){}_removeElByPath('//*[@id="mls_container"]/div[1]/div[1]/div[3]');_removeElByPath('//*[@id="layout_v2"]/div[2]/div[3]');if(window.location.href.match(/bongacams\.com/)){t=setInterval(function(){removeElementById("fancybox-overlay");removeElementById("fancybox-wrap");_removeElByPath('//div[@class="b_container"]');banner=_NodeByXPath('//div[@class="right_banner"]');if(banner){banner.innerHTML="";banner.style.width="0";}_removeElByPath('//div[@class="chat_right_banner screen_small"]');banner=_NodeByXPath('//*[@id="header_login"]/a[1]');if(banner){_removeElByPath('//div[@class="chatbox chatbox_green"]');}},1000);}function _NodesByXPath(a){return document.evaluate(a,document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);}function _NodeByXPath(a){return _NodesByXPath(a).snapshotItem(0);}function _removeElByPath(a){var d=_NodesByXPath(a);if(d.snapshotLength>0){for(var b=0;b<d.snapshotLength;b++){var c=d.snapshotItem(b);c.parentNode.removeChild(c);}}}function removeElementById(b){var a=document.getElementById(b);if(a){a.parentNode.removeChild(a);}}function click(b){var a=document.createEvent("MouseEvents");a.initMouseEvent("click",true,true,window,0,1,1,1,1,false,false,false,false,0,null);b.dispatchEvent(a);}function show_note(e){if(!e){return;}var d,b="",a="",c;d=document.getElementById("note");if(d){d.parentNode.removeChild(d);}d=document.createElement("div");c="data:image/gif;base64,R0lGODlhEAAQAJEDAICAgKCgpP///wAAACH5BAEAAAMALAAAAAAQABAAAAIvnI+py70AI3yi2goUEOH2nGxc1QkgInKlqVnBeh5iWcbGto72kF6sJok4hsSiogAAOw==";b="position: absolute;";b+="z-index: 6001;";b+="top: 0;";b+="left: 0;";b+="right: 0;";b+="background: #fde073;";b+="text-align: center;";b+="color:#333;";b+="line-height: 2.5;";b+="overflow: hidden;";b+="—moz—opacity:0.9; —khtml—opacity: 0.9; -webkit-opacity: 0.9; opacity: 0.9;";b+="-webkit-box-shadow: 0 0 5px black; -moz-box-shadow: 0 0 5px black; box-shadow: 0 0 5px black;";a="position: absolute;";a+="right: 10px;";a+="top: 9px;";a+="text-indent: -9999px;";a+="background: url("+c+");";a+="height: 16px;";a+="width: 16px;";a+="cursor: pointer;";d.setAttribute("id","note");d.setAttribute("style",b);d.innerHTML=""+e+' <a id="close" style="'+a+'">[закрыть]</a>';document.body.insertBefore(d,document.body.firstChild);close=document.getElementById("close");close.addEventListener("click",function(){d=document.getElementById("note");if(d){d.parentNode.removeChild(d);}},false);}if(document.getElementById("header")){show_note("KILL ADS ON!");}