您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Sort YouTube Studio videos by scheduled and published date easier through visual cues (border and bgcolor)
当前为
- // ==UserScript==
- // @name YouTube Studio Scheduled Date Visual Enhancer
- // @description Sort YouTube Studio videos by scheduled and published date easier through visual cues (border and bgcolor)
- // @version 1
- // @grant none
- // @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
- // @match https://studio.youtube.com/channel/*/videos/upload*
- // @namespace ปวัตน
- // ==/UserScript==
- console.log("YouTube Studio Scheduled Date Visual Enhancer running");
- window.addEventListener('load', function() {
- this.$ = this.jQuery = jQuery.noConflict(true);
- var timerVar = setInterval (function() {DoMeEverySecond (); }, 5000);
- function isOdd(num) { return num % 2;}
- function DoMeEverySecond ()
- {
- dayPrev=0;
- $("#video-list .video-table-content ytcp-video-row").each(function() {
- cell = $(this).find("#row-container .tablecell-date")
- description = $(cell).find("div.cell-description").text().trim();
- if (description == "Scheduled" || description == "Published") {
- day = $(cell).text().trim().split(",")[0].split(" ")[1];
- // border
- if (day != dayPrev) {
- $(this).find("#row-container").css("border-top", "solid black 3px");
- } else {
- $(this).find("#row-container").css("border-top", "solid black 0px");
- }
- dayPrev = day;
- // bg
- if (isOdd(day)) {
- $(this).find("#row-container").css("background-color", "#ddd");
- } else {
- $(this).find("#row-container").css("background-color", "transparent");
- }
- }
- });
- }
- //--- When ready to stop the timer, run this code:
- //clearInterval (timerVar);
- //timerVar = "";
- }, false);