Worm, Ward, Pact, and Twig web serial comments spoiler protector

Disables character tags and hides all comments in Wildbow's web serials.

  1. // ==UserScript==
  2. // @name Worm, Ward, Pact, and Twig web serial comments spoiler protector
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Disables character tags and hides all comments in Wildbow's web serials.
  6. // @author ShareDVI
  7. // @match http://parahumans.wordpress.com/*
  8. // @match http://parahumans.net/*
  9. // @match http://www.parahumans.net/*
  10. // @match http://pactwebserial.wordpress.com/*
  11. // @match http://twigserial.wordpress.com/*
  12. // @match https://parahumans.wordpress.com/*
  13. // @match https://parahumans.net/*
  14. // @match https://www.parahumans.net/*
  15. // @match https://pactwebserial.wordpress.com/*
  16. // @match https://twigserial.wordpress.com/*
  17. // @include parahumans.wordpress.com/*
  18. // @include parahumans.net/*
  19. // @include pactwebserial.wordpress.com/*
  20. // @include twigserial.wordpress.com/*
  21. // @grant none
  22. // ==/UserScript==
  23.  
  24. (function() {
  25. 'use strict';
  26. jQuery("#comments").before("<b style='color:green; font-size:150%'>Spoiler protection: all comments hidden!</b>");
  27. if (Math.floor(Math.random() * 50) < 1) {
  28. jQuery("#comments").before("<b style='color:green; font-size:100%'>Also, thank you for being wholesome ^_^</b><br>");
  29. }
  30. // Filter all comments newer than days
  31. jQuery("#comments").hide().remove()
  32. //jQuery("article.comment").filter(function(i,e) {return Date.parse(jQuery(e).find("time").attr("datetime")) >= chapter + 2*86400*1000;}).hide().remove();
  33. // Delete tags
  34. jQuery("a[rel=tag]").hide().remove();
  35. // How many days ahead are allowed
  36. //var DAYS = 2;
  37. // Get chapter release date, thank gods of semantic web
  38. //var chapter = Date.parse(jQuery("time.entry-date").attr("datetime"));
  39. // If something went wrong, better kill all comments
  40. //if(!chapter) chapter=0;
  41. // Add warning so that you know it's enabled
  42. })();