您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
By clicking on the show name you can collapse/expand the episodes
当前为
// ==UserScript== // @name TVmaze watchlist collapse/expand // @namespace tvmazewatchlistcollapseexpand // @description By clicking on the show name you can collapse/expand the episodes // @include http://www.tvmaze.com/watchlist* // @version 1 // @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js // ==/UserScript== $ = this.jQuery = jQuery.noConflict(true); $(document).on('click','a',function(e){ var regex = /\/shows\/(\d+)\//g; var m; while ((m = regex.exec($(this).attr('href'))) !== null) { // This is necessary to avoid infinite loops with zero-width matches if (m.index === regex.lastIndex) { regex.lastIndex++; }; e.preventDefault(); $(".watchlist-show[data-show_id='"+m[1]+"']").slideToggle(); } });