Date Changer for dashboard

Automatically inputs video title on Live Dashboard

  1. // ==UserScript==
  2. // @name Date Changer for dashboard
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.3
  5. // @description Automatically inputs video title on Live Dashboard
  6. // @author You
  7. // @match https://www.youtube.com/live_dashboard*
  8. // @grant GM_setClipboard
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. setInterval(function() {
  15.  
  16. if(document.getElementsByClassName("video-settings-title")[0] != null) {
  17.  
  18. var d = new Date();
  19.  
  20. if(d.getHours() <= 12) {window.realtime = "Morning"} else {window.realtime = "Evening"};
  21. var wd = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
  22. GM_setClipboard("PHPCG " + (d.getMonth() + 1) + "/" + d.getDate() + "/" + d.getFullYear() + " " + wd[d.getDay()] + " " + realtime + " Service");
  23.  
  24. }
  25.  
  26. },100);
  27. })();

QingJ © 2025

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