您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Display changes for Cinematik
当前为
// ==UserScript== // @name Cinematik Enhancer // @namespace surrealmoviez.info // @description Display changes for Cinematik // @include http://cinematik.net/details.php?id=* // @require http://code.jquery.com/jquery-1.11.1.min.js // @grant none // @version 0.0.2 // ==/UserScript== this.$ = this.jQuery = jQuery.noConflict(true); $(document).ready(function () { // List the IMDb ID(s) found in the description as a linked list in a dedicated row var imdbInfoRow = $('.outer .rowhead:contains("IMDB info")').parent(); var description = $('.outer .heading:contains("Description")').next('td').html(); var pattern = /(tt\d+)/gi; var found = description.match(pattern); var imdbIdRowContent = 'Nothing found in the description'; var s = ''; if (found.length > 0) { var uniqueIds = []; $.each(found, function (i, el) { if ($.inArray(el, uniqueIds) === -1) uniqueIds.push(el); }); if (uniqueIds.length > 1) { s = 's'; } var imdbIdRowContent = ""; for (var i = 0; i < uniqueIds.length; i++) { imdbIdRowContent += '<a href="http://anonym.to/?http://www.imdb.com/title/' + uniqueIds[i] + '/" target="_blank">' + uniqueIds[i] + '</a> '; } } var imdbIdRow = '<tr><td valign="top" align="right" class="heading">IMDb ID' + s + '</td><td valign="top" align="left">' + imdbIdRowContent + '</td></tr>'; $(imdbIdRow).insertBefore(imdbInfoRow); });