Ad blocker Adult sites 18+

Prevents annoying ads from displaying 18+

  1. // ==UserScript==
  2. // @name Ad blocker Adult sites 18+
  3. // @description Prevents annoying ads from displaying 18+
  4. // @version 2017.09.69
  5. // @match *://*.thepiratebay.org/*
  6. // @match *://*.pornhub.com/*
  7. // @match *://*.redtube.com/*
  8. // @match *://*.youporn.com/*
  9. // @match *://*.camwhores.tv/*
  10. // @match *://*.chaturbate.com/*
  11. // @match *://chaturbate.com/*
  12. // @match *://*.cam4.com/*
  13. // @match *://*.bongacams.com/*
  14. // @namespace https://openuserjs.org/users/nonedude
  15. // @require http://code.jquery.com/jquery-1.11.1.min.js
  16. // @license MIT
  17. // @grant GM_addStyle
  18. // ==/UserScript==
  19.  
  20. var counter = 0;
  21.  
  22. String.prototype.contains = function (it) {
  23. return this.indexOf(it) != -1;
  24. };
  25.  
  26. var ssss = location.href;
  27.  
  28. function pornhub() {
  29. $("iframe").each(function () {
  30. $(this).remove();
  31. });
  32. $(".adLinks").parent().parent().parent().remove();
  33. $(".abEnabled").remove();
  34. $(".streamatesModelsContainer").remove();
  35. $(".js_adblockPremium").remove();
  36. $(".premiumPromoBanner").remove();
  37. $(".js-abContainterMain").remove();
  38. $("#js-abContainterMain").remove();
  39. $("#welcome").remove();
  40. }
  41.  
  42. function camwhores() {
  43. console.log("Running camwhores");
  44.  
  45. delete window.TotemToolsObject;
  46.  
  47. loadTool = function () {};
  48. e = function () {};
  49. t = function () {};
  50. o = function () {};
  51. t = function () {};
  52.  
  53.  
  54. $("iframe").each(function () {
  55. $(this).remove();
  56. });
  57.  
  58. $("iframe").remove();
  59. $(".topad").remove();
  60. $(".row-models").remove();
  61. $(".list-live-models").remove();
  62. $("#videos-ad").remove();
  63.  
  64. d9g = "";
  65. p9b0g = "";
  66. r3H4 = "";
  67. _0x9f02 = [];
  68. f = function () {};
  69. i = function () {};
  70. a = function () {};
  71. u = function () {};
  72. v = function () {};
  73. n = function () {};
  74. h = function () {};
  75. l = function () {};
  76. d = function () {};
  77. H = function () {};
  78. k = function () {};
  79. g = function () {};
  80.  
  81. $(".fp-ui div:first-child").remove();
  82. $("div.adv").remove();
  83. $("canvas").each(function () {
  84. $(this).remove();
  85. });
  86. $("script").each(function () {
  87. $(this).html("vvvvvvv");
  88. $(this).attr("src", "localhost");
  89. });
  90.  
  91. $('a[href*="faphouse"]').each(function() {
  92. $(this).remove();
  93. });
  94. $('img[src*="https://static.nc-img.com/uilayout2/34735a65a0c63bd007fa4c32f67dab4c.svg"]').each(function() {
  95. $(this).parent().remove();
  96. });
  97.  
  98. }
  99.  
  100. function chaturbate() {
  101. console.log("Running chaturbate"+ new Date().getTime() / 1000);
  102.  
  103. $(".adsbyxa").remove();
  104. $(".ad").remove();
  105. $(".banner").remove();
  106. $('.BioContents').css("max-height", "200px").css("overflow-y", "scroll");
  107. $('.BioContents').css("background-color", "gray");
  108.  
  109. $("body").css("background-color", "gray");
  110. $("#VideoPanel").css("background-color", "gray");
  111. $(".msg-list-wrapper-split").css("background-color", "gray");
  112.  
  113. $("#footer-holder").remove();
  114.  
  115. GM_addStyle ( `.msg-text { background-color: gray !important;}`);
  116. GM_addStyle ( `.camBgColor { background-color: gray !important;}`);
  117. GM_addStyle ( `.homepageFilterPanel { background-color: gray !important;}`);
  118. GM_addStyle ( `.filterOption { color: black !important;}`);
  119. GM_addStyle ( `.top-section { background-color: gray !important;}`);
  120. GM_addStyle ( `.app-link { background-color: gray !important;}`);
  121. GM_addStyle ( `.pureChatColor { background-color: gray !important;}`);
  122. GM_addStyle ( `.BioContents { max-height: 200px !important; overflow-y: scroll}`);
  123. GM_addStyle ( `.emoticonImage { background-color: gray !important;}`);
  124.  
  125. }
  126.  
  127. function spankbang() {
  128. $(".ttaa").remove();
  129. $(".user_panel_guest").remove();
  130. }
  131.  
  132. function cam4() {
  133. $(".acceptCookieConsent").click();
  134. $("input[id$='cookieConsent_consentCookieBtn']")
  135. $("#PrimaryDialogContainer").delete();
  136. $("#videoBannerMidrollAdWrapper").delete();
  137. $("#boost").delete();
  138.  
  139. }
  140.  
  141.  
  142. function bongacams() {
  143. console.log("Running bongacams");
  144. $(".__give_away").click();
  145. //$("input[id$='cookieConsent_consentCookieBtn']")
  146. //$("#PrimaryDialogContainer").delete();
  147. //$("#videoBannerMidrollAdWrapper").delete();
  148. $(".boost").delete();
  149.  
  150. }
  151.  
  152.  
  153. if (ssss.contains("pornhub") || ssss.contains("redtube") || ssss.contains("youporn")) {
  154. pornhub();
  155. window.setInterval(function () {
  156. if (counter < 10)
  157. pornhub();
  158. counter++;
  159. }, 500);
  160.  
  161. }
  162. if (ssss.contains("camwhores")) {
  163. camwhores();
  164. window.setInterval(function () {
  165. if (counter < 10)
  166. camwhores();
  167. counter++;
  168. }, 500);
  169. }
  170.  
  171. if (ssss.contains("spankbang")) {
  172. spankbang();
  173. window.setInterval(function () {
  174. if (counter < 10)
  175. spankbang();
  176. counter++;
  177. }, 500);
  178. }
  179.  
  180. if (ssss.contains("chaturbate")) {
  181. chaturbate();
  182. window.setInterval(function () {
  183. if (counter < 10)
  184. chaturbate();
  185. counter++;
  186. }, 500);
  187. }
  188.  
  189.  
  190. if (ssss.contains("cam4")) {
  191. cam4();
  192. window.setInterval(function () {
  193. //if (counter < 10)
  194. cam4();
  195. //counter++;
  196. }, 1500);
  197. }
  198.  
  199.  
  200. if (ssss.contains("bongacams")) {
  201. bongacams();
  202. window.setInterval(function () {
  203. //if (counter < 10)
  204. bongacams();
  205. //counter++;
  206. }, 1500);
  207. }