BvS Filler Themes Notifier

Notifies you when you need to set filler themes for Hidden Hoclaus and Candyween

  1. // ==UserScript==
  2. // @name BvS Filler Themes Notifier
  3. // @namespace Thewho
  4. // @description Notifies you when you need to set filler themes for Hidden Hoclaus and Candyween
  5. // @include http*://*animecubed.com/billy/bvs/pages/main.html
  6. // @include http*://*animecubedgaming.com/billy/bvs/pages/main.html
  7. // @version 1.3
  8. // @history 1.3 New domain - animecubedgaming.com - Channel28
  9. // @history 1.2 Now https compatible (Updated by Channel28)
  10. // @history 1.1 Added grant permissions (Updated by Channel28)
  11. // @history 1.0 Initial Release
  12. // @grant GM_getValue
  13. // @grant GM_setValue
  14. // ==/UserScript==
  15.  
  16.  
  17. var currentDate = new Date().getTime().toString();
  18.  
  19. if (currentDate - GM_getValue("lastDate", "") > 86400000)
  20. {
  21. var d = new Date();
  22. if (d.getDate() == 23)
  23. {
  24. alert("You need to activate your filler themes today \n for access to Hidden Hoclaus Tomorrow!");
  25. var dt = new Date().getTime();
  26. GM_setValue("lastDate", dt.toString());
  27. }
  28.  
  29.  
  30. //Notification for Candyween
  31.  
  32. //This bellow calculates how many days the current month has
  33. function getLastDayOfMonth()
  34. {
  35. var day;
  36. var month;
  37. var year;
  38.  
  39. var tmpdate = new Date();
  40. month = tmpdate.getMonth() +1;
  41. year = tmpdate.getFullYear();
  42.  
  43.  
  44. switch(month)
  45. {
  46. case 1 :
  47. case 3 :
  48. case 5 :
  49. case 7 :
  50. case 8 :
  51. case 10:
  52. case 12:
  53. day = 31;
  54. break;
  55. case 4 :
  56. case 6 :
  57. case 9 :
  58. case 11:
  59. day = 30;
  60. break;
  61.  
  62. case 2 :
  63. if( ( (year % 4 == 0) && ( year % 100 != 0) ) || (year % 400 == 0) )
  64. day = 29;
  65. else
  66. day = 28;
  67. break;
  68. }
  69.  
  70. return day;
  71.  
  72. }
  73.  
  74. if (d.getDate() == getLastDayOfMonth() -1)
  75. {
  76. alert("You need to activate your filler themes today \n for access to Candyween Tomorrow!");
  77. var dt = new Date().getTime();
  78. GM_setValue("lastDate", dt.toString());
  79. }
  80. }
  81.  

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址