您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Shows only uploads on subscription pages
- // ==UserScript==
- // @name Youtube Show Uploads Only
- // @namespace http://userscripts.org/users/zackton
- // @description Shows only uploads on subscription pages
- // @include *.youtube.com/*
- // @grant none
- // @version 1.3.7
- // ==/UserScript==
- window.setTimeout(UploadsOnly,0)
- function UploadsOnly() {
- console.log('test2');
- var currenturl = document.URL;
- console.log(currenturl);
- var load = currenturl.indexOf("feed/");
- var add = currenturl.indexOf("/u");
- if (load===-1) {}
- else if (add===-1) {
- window.location = document.URL+"/u";
- }
- }
- // Add script to the page
- document.addEventListener('DOMContentLoaded', function(e) {
- var s = document.createElement('script');
- s.textContent = "(" + UploadsOnly.toString() + ')();';
- document.head.appendChild(s)
- });