// ==UserScript== // @name douban-info-for-pt // @name:en douban-info-for-pt // @namespace https://github.com/techmovie/DouBan-Info-for-PT // @version 1.7.9 // @author birdplane // @description 在PT站电影详情页展示部分中文信息 // @description:en Display some Chinese information on the PT site movie details page // @license MIT // @source git@github.com:techmovie/DouBan-Info-for-PT.git // @match *://passthepopcorn.me/torrents.php?id=* // @match *://passthepopcorn.me/requests.php?action=view&id=* // @match *://anthelion.me/torrents.php?id=* // @match *://anthelion.me/requests.php?action=view&id=* // @match *://beyond-hd.me/torrents/* // @match *://beyond-hd.me/library/title/* // @match *://blutopia.cc/torrents/* // @match *://eiga.moi/torrents/* // @match *://hdbits.org/details.php?id=* // @match *://hdbits.org/requests/show_request?id=* // @match *://uhdbits.org/torrents.php?id=* // @match *://filelist.io/details.php?id=* // @match *://hd-torrents.org/details.php?id=* // @match *://karagarga.in/details.php?id=* // @match *://privatehd.to/torrent/* // @match *://broadcasthe.net/series.php?id=* // @match *://iptorrents.com/torrent.php?id=* // @match *://www.iptorrents.com/torrent.php?id=* // @match *://www.torrentleech.org/torrent/* // @match *://avistaz.to/torrent/* // @match *://secret-cinema.pw/torrents.php?id=* // @match *://aither.cc/torrents/* // @match *://shadowthein.net/details.php?id=* // @match *://shadowthein.net/details.php?id=* // @match *://baconbits.org/torrents.php?id=* // @match *://broadcity.in/details.php?id=* // @match *://www.morethantv.me/torrents.php?id=* // @match *://www.morethantv.me/show/* // @match *://tgx.rs/torrent/* // @require https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js // @grant GM_addStyle // @grant GM_getValue // @grant GM_openInTab // @grant GM_setValue // @grant GM_xmlhttpRequest // @downloadURL none // ==/UserScript== (t=>{if(typeof GM_addStyle=="function"){GM_addStyle(t);return}const a=document.createElement("style");a.textContent=t,document.head.append(a)})(' .bigstar50,.bigstar45,.bigstar40,.bigstar35,.bigstar30,.bigstar25,.bigstar20,.bigstar15,.bigstar10,.bigstar05,.bigstar00{display:inline-block;zoom:1;background:url(https://ptpimg.me/yze1gz.png) no-repeat;background:-webkit-image-set(url(https://ptpimg.me/yze1gz.png)) 1x,url(https://ptpimg.me/n74cjc.png) 2x) no-repeat;background:-moz-image-set(url(https://ptpimg.me/yze1gz.png)) 1x,url(https://ptpimg.me/n74cjc.png) 2x) no-repeat;background:-o-image-set(url(https://ptpimg.me/yze1gz.png)) 1x,url(https://ptpimg.me/n74cjc.png) 2x) no-repeat;background:-ms-image-set(url(https://ptpimg.me/yze1gz.png)) 1x,url(https://ptpimg.me/n74cjc.png) 2x) no-repeat;width:75px;height:15px;margin:1px 0 0;overflow:hidden}.bigstar50+span.rating_num,.bigstar45+span.rating_num,.bigstar40+span.rating_num,.bigstar35+span.rating_num,.bigstar30+span.rating_num,.bigstar25+span.rating_num,.bigstar20+span.rating_num,.bigstar15+span.rating_num,.bigstar10+span.rating_num,.bigstar05+span.rating_num,.bigstar00+span.rating_num{font-size:16px;line-height:1}.bigstar50{background-position:0 0px}.bigstar45{background-position:0 -15px}.bigstar40{background-position:0 -30px}.bigstar35{background-position:0 -45px}.bigstar30{background-position:0 -60px}.bigstar25{background-position:0 -75px}.bigstar20{background-position:0 -90px}.bigstar15{background-position:0 -105px}.bigstar10{background-position:0 -120px}.bigstar05{background-position:0 -135px}.bigstar00{background-position:0 -150px}.allstar50,.allstar45,.allstar40,.allstar35,.allstar30,.allstar25,.allstar20,.allstar15,.allstar10,.allstar05,.allstar00,.rating1-t,.rating15-t,.rating2-t,.rating25-t,.rating3-t,.rating35-t,.rating4-t,.rating45-t,.rating5-t,.rating-t,.starb~.stars5,.starb~.stars4,.starb~.stars3,.starb~.stars2,.starb~.stars1,.collectors .stars5,.collectors .stars4,.collectors .stars3,.collectors .stars2,.collectors .stars1{display:inline-block;zoom:1;background:url(/f/movie/b8f4c3672ef81106701071831e22422a745d3b74/pics/rating_icons/ic_rating_s.png) no-repeat;background:-webkit-image-set(url(/f/movie/b8f4c3672ef81106701071831e22422a745d3b74/pics/rating_icons/ic_rating_s.png) 1x,url(/f/movie/076dc86067c402ced53eee7c09cd45402235733c/pics/rating_icons/ic_rating_s@2x.png) 2x) no-repeat;background:-moz-image-set(url(/f/movie/b8f4c3672ef81106701071831e22422a745d3b74/pics/rating_icons/ic_rating_s.png) 1x,url(/f/movie/076dc86067c402ced53eee7c09cd45402235733c/pics/rating_icons/ic_rating_s@2x.png) 2x) no-repeat;background:-o-image-set(url(/f/movie/b8f4c3672ef81106701071831e22422a745d3b74/pics/rating_icons/ic_rating_s.png) 1x,url(/f/movie/076dc86067c402ced53eee7c09cd45402235733c/pics/rating_icons/ic_rating_s@2x.png) 2x) no-repeat;background:-ms-image-set(url(/f/movie/b8f4c3672ef81106701071831e22422a745d3b74/pics/rating_icons/ic_rating_s.png) 1x,url(/f/movie/076dc86067c402ced53eee7c09cd45402235733c/pics/rating_icons/ic_rating_s@2x.png) 2x) no-repeat;width:55px;height:11px;margin:0 3px 0 0;overflow:hidden}.status-item .allstar50,.status-item .allstar45,.status-item .allstar40,.status-item .allstar35,.status-item .allstar30,.status-item .allstar25,.status-item .allstar20,.status-item .allstar15,.status-item .allstar10,.status-item .allstar05,.status-item .allstar00,.status-item .rating1-t,.status-item .rating15-t,.status-item .rating2-t,.status-item .rating25-t,.status-item .rating3-t,.status-item .rating35-t,.status-item .rating4-t,.status-item .rating45-t,.status-item .rating5-t,.status-item .rating-t,.status-item .starb~.stars5,.status-item .starb~.stars4,.status-item .starb~.stars3,.status-item .starb~.stars2,.status-item .starb~.stars1,.status-item .collectors .stars5,.status-item .collectors .stars4,.status-item .collectors .stars3,.status-item .collectors .stars2,.status-item .collectors .stars1{margin:0 0 0 4px}.allstar50{background-position:0 0px}.allstar45{background-position:0 -11px}.allstar40{background-position:0 -22px}.allstar35{background-position:0 -33px}.allstar30{background-position:0 -44px}.allstar25{background-position:0 -55px}.allstar20{background-position:0 -66px}.allstar15{background-position:0 -77px}.allstar10{background-position:0 -88px}.allstar05{background-position:0 -99px}.allstar00{background-position:0 -110px}.rating5-t,.starb~.stars5,.collectors .stars5{background-position:0 0px}.rating45-t{background-position:0 -11px}.rating4-t,.starb~.stars4,.collectors .stars4{background-position:0 -22px}.rating35-t{background-position:0 -33px}.rating3-t,.starb~.stars3,.collectors .stars3{background-position:0 -44px}.rating25-t{background-position:0 -55px}.rating2-t,.starb~.stars2,.collectors .stars2{background-position:0 -66px}.rating15-t{background-position:0 -77px}.rating1-t,.starb~.stars1,.collectors .stars1{background-position:0 -88px}.rating1-t,.rating15-t,.rating2-t,.rating25-t,.rating3-t,.rating35-t,.rating4-t,.rating45-t,.rating5-t,.rating-t{padding-left:5px}#stars{font-size:0;vertical-align:text-bottom;cursor:pointer}#stars a img{vertical-align:text-bottom}.starstop,.stars{margin-right:5px}.starstop{float:left}.rating_nums,.rating_num{color:#e09015;font-size:12px;padding:0 3px}.status-item .rating_num{font-size:14px}.rating_nums{padding-left:0}.star .rating_num{color:#e09015;padding:0 5px 0 0}#interest_sect{overflow:hidden;word-wrap:break-word}#interest_sectl{float:left;width:155px;margin:2px 0 0;padding:0 0 0 15px;border-left:1px solid #eaeaea;color:#9b9b9b}#interest_sectl .rating_wrap{padding-bottom:15px;font-size:12px;line-height:14px}#interest_sectl .rating_wrap .rating_logo{line-height:1}#interest_sectl .rating_self{padding:0;line-height:2}#interest_sectl .rating_self:before,#interest_sectl .rating_self:after{content:"";display:block;clear:both}#interest_sectl .rating_self .rating_sum{clear:both}#interest_sectl .rating_num{color:#494949;padding:0;min-width:30%;font-size:28px}#interest_sectl .rating_right{float:left;padding:10px 0 10px 6px}#interest_sectl .rating_right.not_showed{padding:10px 0}#interest_sectl .power{height:10px;float:left;margin:1px 4px;background:#ffd596 none repeat scroll 0 0}#interest_sectl .power.color_gray{background:#ccc}#interest_sectl .rating_per{font-size:11px}#interest_sectl .rating_betterthan{position:relative;padding:15px 0;border-top:1px solid #eaeaea;color:#9b9b9b;margin:0}.rating_logo_wrap .content{display:inline-block;zoom:1;vertical-align:top;font-size:12px;line-height:20px;color:#9b9b9b;margin-right:4px}.rating_helper_wrap{display:inline-block;zoom:1;vertical-align:top;position:relative;line-height:18px}.rating_helper_wrap:hover .rating_helper_icon{background-position:0 -12px}.rating_helper_wrap:hover .rating_helper_content{display:block}.rating_helper_icon{background:url(/f/movie/16305b59f6b69b8acde51c880de2a5b6cde0155a/pics/icon/ic_qmark.png) no-repeat;background:-webkit-image-set(url(/f/movie/16305b59f6b69b8acde51c880de2a5b6cde0155a/pics/icon/ic_qmark.png) 1x,url(/f/movie/1fb4f85391f82c3286d7318d840577daae1c2eee/pics/icon/ic_qmark@2x.png) 2x) no-repeat;background:-moz-image-set(url(/f/movie/16305b59f6b69b8acde51c880de2a5b6cde0155a/pics/icon/ic_qmark.png) 1x,url(/f/movie/1fb4f85391f82c3286d7318d840577daae1c2eee/pics/icon/ic_qmark@2x.png) 2x) no-repeat;background:-o-image-set(url(/f/movie/16305b59f6b69b8acde51c880de2a5b6cde0155a/pics/icon/ic_qmark.png) 1x,url(/f/movie/1fb4f85391f82c3286d7318d840577daae1c2eee/pics/icon/ic_qmark@2x.png) 2x) no-repeat;background:-ms-image-set(url(/f/movie/16305b59f6b69b8acde51c880de2a5b6cde0155a/pics/icon/ic_qmark.png) 1x,url(/f/movie/1fb4f85391f82c3286d7318d840577daae1c2eee/pics/icon/ic_qmark@2x.png) 2x) no-repeat;display:inline-block;zoom:1;vertical-align:middle;width:12px;height:12px}.rating_helper_content{z-index:10;color:#494949;display:none;position:absolute;left:12px;bottom:3px;width:96px;background:#fef6e9;border:1px solid #e3d9ca;padding:8px 10px;border-radius:4px;box-shadow:0 2px 5px rgba(0,0,0,.1)}.rating_content_wrap{width:110%;padding-bottom:8px}.rating_content_wrap .rating_avg{float:left;font-size:16px;line-height:28px;color:#494949;margin-right:12px}.rating_content_wrap .friends{float:left;margin-right:6px}.rating_content_wrap .avatar{float:left;margin-top:6px;margin-right:2px;line-height:0;border-radius:50%;overflow:hidden;cursor:default}.rating_content_wrap .avatar img{width:16px}.rating_content_wrap .friends_count{float:left;line-height:14px;margin-top:7px}#screening .subject-rate{color:#e09015;font-size:12px;margin-left:2px}#screening .rating{display:inline-block;zoom:1;margin:4px auto 2px;height:19px}#screening .rating span{float:left}#screening .rating .rating-star{margin:3px 3px 0 0;width:55px}span.subject-rate,.rate,.subject-rating{color:#e09015}img.rating{vertical-align:text-bottom}img.rating:nth-child(1){padding-left:10px}.rec-list .score{color:#e09015}.album-item .star{line-height:1;margin-top:6px}.album-item .star .allstar50,.album-item .star .allstar45,.album-item .star .allstar40,.album-item .star .allstar35,.album-item .star .allstar30,.album-item .star .allstar25,.album-item .star .allstar20,.album-item .star .allstar15,.album-item .star .allstar10,.album-item .star .allstar05,.album-item .star .allstar00{float:left}.album-item .star .score{color:#e09015}.game-ratings strong{margin:0 6px;color:#e09015}.link-subject .rate-more span{font-size:10px;color:#e09015}.rating-controversy-reason{background-color:#fffbf4;color:#494949;line-height:14px;margin:15px 0 0;padding:6px 20px 6px 35px;font-size:11px;position:relative}.rating-controversy-reason:before{content:"";display:block;width:14px;height:14px;position:absolute;left:12px;top:50%;transform:translateY(-50%);background-image:url(data:image/svg+xml,\\ %3Csvg%20width%3D%2216%22%20height%3D%2216%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M8%200a8%208%200%20110%2016A8%208%200%20018%200zm0%2010.667a1%201%200%20100%202%201%201%200%20000-2zm0-8a1.207%201.207%200%2000-1.2%201.326l.467%204.677a.737.737%200%20001.466%200l.468-4.677A1.207%201.207%200%20008%202.667z%22%20fill%3D%22%23B2B2B2%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);background-size:contain}body #douban-wrapper{width:770px;height:345px;margin:0;font:12px Helvetica,Arial,sans-serif}#douban-wrapper .ll,#douban-wrapper .col-container .fix-col{float:left}#douban-wrapper #content{background-repeat:no-repeat;padding:10px;width:750px;height:325px;min-height:initial}#douban-wrapper #content h1{font-size:20px}#douban-wrapper #content .grid{width:750px;height:325px;border-radius:9px}#douban-wrapper #content .grid .grid-col1{width:225px}#douban-wrapper #content .grid .grid-col2{width:254px;padding:24px 18px;height:277px;overflow:hidden}#douban-wrapper #content .grid .grid-col3{width:18px}#douban-wrapper #content .grid .grid-col4{font-size:14px;padding:27px 14px 0 12px;width:190px}#douban-wrapper #content .picture-douban-wrapper{width:225px;height:325px;border-top-left-radius:9px;border-bottom-left-radius:9px;background-size:cover;background-position:center}#douban-wrapper #content .main-title h1,#douban-wrapper #content .sub-title h2{overflow:hidden;word-break:break-all;max-height:2.5em;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}#douban-wrapper #content .main-title h1{font-weight:500;font-size:30px;color:#000}#douban-wrapper #content .sub-title{margin-top:9px}#douban-wrapper #content .sub-title h2{font-size:18px;color:#adadad;font-weight:400}#douban-wrapper #content .baseinfo{font-size:16px;color:#000;line-height:25px;margin-top:18px;letter-spacing:1px;word-break:break-all;font-weight:400;display:-webkit-box;overflow:hidden;-webkit-line-clamp:5;-webkit-box-orient:vertical}#douban-wrapper #content .line-wrap{width:18px;height:100%;position:relative}#douban-wrapper #content .line-wrap img{width:100%;height:100%}#douban-wrapper #content .douban-icon{font-size:0}#douban-wrapper #content .douban-icon>span{font-size:14px;display:inline-block;text-align:center;border:1px solid #41BE57}#douban-wrapper #content .douban-icon .icon-pt1{background-color:#41be57;color:#fff;border-top-left-radius:4px;border-bottom-left-radius:4px;width:24px;height:24px;line-height:24px}#douban-wrapper #content .douban-icon .icon-pt2{color:#3ba94d;background:#fff;border-top-right-radius:4px;border-bottom-right-radius:4px;width:69px;height:24px;line-height:24px}#douban-wrapper #content .score-container .rating_self{margin-top:15px}#douban-wrapper #content .score-container .rating_self .rating_num{font-size:48px;line-height:1;padding:0;color:#000;font-weight:400}#douban-wrapper #content .score-container .rating_self .rating_right{float:left;padding-left:10px;padding-top:5px}#douban-wrapper #content .score-container .rating_self .rating_right .ll{float:none}#douban-wrapper #content .score-container .rating_self .rating_right .rating_sum{color:#3b3b3b}#douban-wrapper #content .score-container .rating_self .rating_right .rating_sum .rating_people,#douban-wrapper #content .score-container .rating_self .rating_right .rating_sum .rating_people:hover,#douban-wrapper #content .score-container .rating_self .rating_right .rating_sum .rating_people:visited,#douban-wrapper #content .score-container .rating_self .rating_right .rating_sum .rating_people:link{color:#3b3b3b;background:none}#douban-wrapper #content .score-container .ratings-on-weight{margin-top:10px;min-height:1px}#douban-wrapper #content .score-container .ratings-on-weight .item{line-height:1.5}#douban-wrapper #content .score-container .ratings-on-weight .item .starstop{float:none;margin-right:0;color:#3b3b3b}#douban-wrapper #content .score-container .ratings-on-weight .item>span,#douban-wrapper #content .score-container .ratings-on-weight .item>div{display:inline-block}#douban-wrapper #content .score-container .ratings-on-weight .item .power{height:6px;background:#faa032;border-radius:3px;vertical-align:middle}#douban-wrapper #content .bottom-row{display:flex;align-items:center;justify-content:space-between}#douban-wrapper #content .bottom-row .rating-betterthan{font-size:14px;color:#1c1c1c;line-height:21px;width:117px}#douban-wrapper #content .bottom-row .rating-betterthan .number{font-size:14px;color:#41be57}#douban-wrapper #content .bottom-row .qr-code{width:64px;height:64px;overflow:hidden}#douban-wrapper #content .bottom-row .qr-code img{width:100%;height:100%}.contentlayout.douban-info{display:flex;justify-content:space-around}.contentlayout.douban-info .detail{flex:1}.detail .title{font-size:26px;font-weight:600;margin-bottom:20px}.detail .title a{text-decoration:none}.movie-detail{display:flex;justify-content:space-between}.movie-detail .synopsis{width:60%}.movie-detail .movieinfo{margin-right:20px;max-width:30%}.icon-pt1{font-size:14px;display:inline-block;text-align:center;border:1px solid #41be57;background-color:#41be57;color:#fff;border-top-left-radius:4px;border-bottom-left-radius:4px;width:24px;height:24px;line-height:24px}.ant .icon-pt1{border-radius:4px}.icon-pt2{display:inline-block;text-align:center;border:1px solid #41be57;color:#3ba94d;background:#fff;border-top-right-radius:4px;border-bottom-right-radius:4px;width:69px;height:24px;line-height:24px;font-size:14px}.douban-dom{display:flex;cursor:pointer}.douban-dom{text-align:left}#douban-wrapper *{box-sizing:content-box}#douban-wrapper .clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}#douban-wrapper .clearfix{zoom:1;display:inline-block;_height:1px}#douban-wrapper .clearfix{height:1%}#douban-wrapper .clearfix{display:block}#douban-wrapper .rating_per{color:#111}#douban-wrapper .grid{overflow:initial}.content-rounded #douban-wrapper div{margin-left:0}#douban-wrapper #content .douban-icon .icon-pt1{background-image:none}#douban-wrapper h2,#douban-wrapper h1{border:none;background-image:none;background-color:transparent;text-shadow:none;padding:0;margin:0;line-height:normal}#douban-wrapper .grid-col5{font-size:14px;padding:27px 14px 0 12px;width:190px;overflow-y:auto;height:277px;width:calc(100% - 795px)}#douban-wrapper .summary{padding-top:10px;color:#000;line-height:25px;letter-spacing:1px;word-break:break-all;font-weight:400}#douban-wrapper{width:100%!important}.douban-dom>div{width:100%}#douban-wrapper #content{background-image:none!important;background:#fff;width:calc(100% - 20px)!important}#douban-wrapper #content .grid{width:100%!important}.bhd #douban-wrapper ::-webkit-scrollbar-track{background-color:#fff}.bhd #douban-wrapper ::-webkit-scrollbar-thumb{background-color:#ddd}.btn #douban-wrapper .grid-col1,.hdb #douban-wrapper .grid-col1,.hdt #douban-wrapper .grid-col1,.sc #douban-wrapper .grid-col1,.its #douban-wrapper .grid-col1,.bb #douban-wrapper .grid-col1{display:none}.btn #douban-wrapper .grid-col5,.hdt #douban-wrapper .grid-col5,.hdb #douban-wrapper .grid-col5,.sc #douban-wrapper .grid-col5,.its #douban-wrapper .grid-col5,.bb #douban-wrapper .grid-col5{width:calc(100% - 570px)}.its #douban-wrapper{background-color:#131313;color:#fff} '); (function ($) { 'use strict'; var __defProp = Object.defineProperty; var __defProps = Object.defineProperties; var __getOwnPropDescs = Object.getOwnPropertyDescriptors; var __getOwnPropSymbols = Object.getOwnPropertySymbols; var __hasOwnProp = Object.prototype.hasOwnProperty; var __propIsEnum = Object.prototype.propertyIsEnumerable; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __spreadValues = (a, b) => { for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]); if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) { if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]); } return a; }; var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); var _a, _b, _c; const PT_SITE = { "aither.cc": { "url": "https://aither.cc", "host": "aither.cc", "siteName": "Aither", "poster": "#meta-poster", "imdb": '.badge-user a[href*="imdb.com/title"]:nth-child(1)', "insertDomSelector": ".torrent-buttons", "doubanContainerDom": '