Greasy Fork is available in English.
try to take over the world!
当前为
// ==UserScript==
// @name mteam good movie
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://tp.m-team.cc/movie.php
// @grant GM_log
// ==/UserScript==
(function($) {
'use strict';
try {
console.log("start good movie");
var imdb_test = /imdb\.com/
var links = $(".embedded a").filter(function (link) { return imdb_test.test($(this).attr("href")) });
GM_log( "find "+links.length+" links");
$(links).each( function(){
var $el = $(this);
var score = $el.text()
var color;
if(score>8) color = "red";
else if (score > 7) color ="orange";
else if (score > 6) color ="green";
else color ="gray";
$el.css("font-size","12pt")
$el.css("color", color);
$el.parents(".torrentname").css("color",color);
});
} catch(e){
GM_log(e)
}
})(jQuery);