Better Web (beta)

Block Porn Sites, Horoscope Sites, Gambling Sites, Betting Sites

  1. // ==UserScript==
  2. // @name Better Web (beta)
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.3.0
  5. // @description Block Porn Sites, Horoscope Sites, Gambling Sites, Betting Sites
  6. // @license GNU GPLv3
  7. // @author Yusuf Sameh
  8. // @match https://greasyfork.org/en/scripts?q=porn+blocker
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=greasyfork.org
  10. // @grant none
  11. // @include https://*.pornhub.com/*
  12. // @include https://*.xhamster.com/*
  13. // @include https://*.xvideos.com/*
  14. // @include https://*.thegay.com/*
  15. // @include https://*.gay.bingo/*
  16. // @include https://*.thisvid.com/*
  17. // @include https://*.youporn.com/*
  18. // @include https://*.stripchat.com/*
  19. // @include https://*.slot.com/*
  20. // @include https://*.casino.org/*
  21. // @include https://*.slotomania.com/*
  22. // @include https://*.bet365.com/*
  23. // @include https://*.betmgm.com/*
  24. // @include https://*.fanduel.com/*
  25. // @include https://*.draftkings.com/*
  26. // @include https://*.caesars.com/*
  27. // @include https://*.betus.com/*
  28. // @include https://*.bovada.lv/*
  29. // @include https://*.betonline.ag/*
  30. // @include https://*.mybookie.ag/*
  31. // @include https://*.sportsbetting.ag/*
  32. // @include https://*.betfair.com/*
  33. // @include https://*.paddypower.com/*
  34. // @include https://*.skybet.com/*
  35. // @include https://*.betfred.com/*
  36. // @include https://*.boylesports.com/*
  37. // @include https://*.coral.co.uk/*
  38. // @include https://*.ladbrokes.com/*
  39. // @include https://*.williamhill.com/*
  40. // @include https://*.unibet.com/*
  41. // @include https://*.888sport.com/*
  42. // @include https://*.betvictor.com/*
  43. // @include https://*.betway.com/*
  44. // @include https://*.sportingbet.com/*
  45. // @include https://*.bet-at-home.com/*
  46. // @include https://*.intertops.eu/*
  47. // @include https://*.sbobet.com/*
  48. // @include https://*.pinbet88.com/*
  49. // @include https://*.melbet.com/*
  50. // @include https://*.1xbet.com/*
  51. // @include *pornhub*
  52. // @include *dick*
  53. // @include *pussy*
  54. // @include *cum*
  55. // @include *nude*
  56. // @include *nudity*
  57. // @include *ome*
  58. // @include *porn*
  59. // @include *houseparty*
  60. // @include *sex*
  61. // @include *gay*
  62. // @include *feet*
  63. // @include *male slave*
  64. // @include *telonym*
  65. // @include *kik*
  66. // @include *rule34*
  67. // @include *xhamster*
  68. // @include *yolo*
  69. // @include *fuck*
  70. // @include *suck*
  71. // @include *tinder*
  72. // @include *periscope*
  73. // @include *ask.fm*
  74. // @include *4chan*
  75. // @include *8chan*
  76. // @include *chatroulette*
  77. // @include *youporn*
  78. // @include *hentai*
  79. // @include *daddy*
  80. // @include *xx*
  81. // @include *nsfw*
  82. // @include *gambling*
  83. // @include *777*
  84. // @include *777slots*
  85. // @include *blackjack*
  86. // @include *poker*
  87. // @include *casino games*
  88. // @include *casino*
  89. // @include *jackpot*
  90. // @include *free slots*
  91. // @include *horoscope*
  92.  
  93. // @run-at document-start
  94. // @namespace https://greasyfork.org/users/12417
  95. // ==/UserScript==
  96.  
  97. function block() // Function will block the website.
  98. {
  99. var current = window.location.href;
  100. window.history.back(); // Attempt to go back (if it's opened in a tab with no tab history)
  101. if (window.location.href == current) // If it's still there
  102. {
  103. window.close(); // Attempt to close page
  104. if (window.location.href == current) // If it's still there (if it's the only tab)
  105. {
  106. window.location.href = "about://newtab"; // Go to a new tab; always works!
  107. }
  108. }
  109. }
  110. // ==/UserScript==
  111.  
  112. (function() {
  113. 'use strict';
  114. block();
  115. // Your code here...
  116. })();