Annoying Ad blocker 18+

Prevents annoying ads from displaying 18+

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