新搜狗追剧有吗
海阔视界规则分享,当前分享的是:首页频道¥home_rule¥{"title":"豆瓣新版R","author":"(o˘◡˘o)&Reborn","url":"https://movie.douban.com/j/new_search_subjects?range=0,10&start=fypage@-1@*20@&tags=fyclass&fysort&fyarea&fyyear","version":9,"col_type":"movie_3","class_name":"全部&电影&电视剧&综艺&动漫&纪录片&短片","class_url":"&电影&电视剧&综艺&动漫&纪录片&短片","area_name":"全部&中国大陆&美国&中国香港&中国台湾&日本&韩国&英国&法国&德国&意大利&西班牙&印度&泰国&俄罗斯&伊朗&加拿大&澳大利亚&爱尔兰&瑞典&巴西&丹麦","area_url":"countries=&countries=中国大陆&countries=美国&countries=中国香港&countries=中国台湾&countries=日本&countries=韩国&countries=英国&countries=法国&countries=德国&countries=意大利&countries=西班牙&countries=印度&countries=泰国&countries=俄罗斯&countries=伊朗&countries=加拿大&countries=澳大利亚&countries=爱尔兰&countries=瑞典&countries=巴西&countries=丹麦","sort_name":"近期热 & 标记多 & 评分高 & 新上映 &┃\n\n&全部&剧情&喜剧&动作&爱情&科幻&动画&悬疑&惊悚&恐怖&犯罪&同性&音乐&歌舞&传记&历史&战争&西部&奇幻&冒险&灾难&武侠&情sè","year_name":"全部&2020&2019&2018&2010年代&2000年代&更早","sort_url":"sort=U&sort=T&sort=S&sort=R&\n\n&genres=&genres=剧情&genres=喜剧&genres=动作&genres=爱情&genres=科幻&genres=动画&genres=悬疑&genres=惊悚&genres=恐怖&genres=犯罪&genres=同性&genres=音乐&genres=歌舞&genres=传记&genres=历史&genres=战争&genres=西部&genres=奇幻&genres=冒险&genres=灾难&genres=武侠&genres=情(sè自己替换)","year_url":"year_range=&year_range=2020,2020&year_range=2019,2019&year_range=2018,2018&year_range=2010,2019&year_range=2000,2009&year_range=1,1999","find_rule":"js:\n// 是否进入测试模式,开发者专用选项,平民玩家开了也没用\nlet testMode = 0;\ntry {\nvar defaultPic = 'http://1t.click/aXjm';\n\nvar data = JSON.parse(getResCode()).data.map(function(o) {\n return {\n title: o.title,\n desc: o.rate\n ? o.rate + '分'\n : (o.casts.length > 0 ? o.casts : o.directors).slice(0, 2).join(' / '),\n pic_url: o.cover.includes('default') && defaultPic ? defaultPic : o.cover,\n url: 'https://m.douban.com/movie/subject/' + o.id + '/' + '#' + o.title + '#noHistory#'\n };\n});\n\nsetHomeResult({ data: data });\n\n} catch (e) {\n let result = {};\n let errorTitle = '““””<font color=\"grey\">' + '暂无内容,请稍候再试' + '</font>';\n let errorDesc = '';\n try {\n result = JSON.parse(getResCode());\n } catch (e) { }\n if (result.msg != null && result.msg !== '') {\n errorTitle = '““' + result.msg + '””';\n errorDesc = '提示:也许只是服务器打了个盹等等就会好起来了?\\n提示:也许你可以试试搜索?有惊喜哦~';\n }\n\n setHomeResult({\n data: [{\n title: errorTitle,\n desc: errorDesc,\n url: testMode === 1 ? 'https://m.douban.com/subject/26357307/' : '',\n col_type: 'text_center_1'\n }]\n });\n}\n\n/* v0.11.12 (o˘◡˘o) */","search_url":"https://m.douban.com/search/?(o%CB%98%E2%97%A1%CB%98o)&type=movie&query=**;get;utf-8;{User-Agent@Windows}","titleColor":"#ff148e8e","group":"①常用","searchFind":".search_results_subjects&&li;span&&Text;a&&href.js: 'https://movie.douban.com' + input.replace('/movie', '') + '#noHistory#';p&&Text.js: if(/尚未.*/.test(input) != true) \"评分:\" + input;; else input;;;*;img&&src","detail_col_type":"rich_text","detail_find_rule":"js:\nvar res = {};\nvar d = [];\nvar colType = 'rich_text';\nvar html = getResCode();\nvar urlSplits = MY_URL.split('#');\nvar mUrl = urlSplits[0];\n\n/**\n * 一些全局配置,请移步预处理中进行配置\n */\n// 是否开启视界搜\nlet openHikerSearch = -1;\ntry {\n openHikerSearch = parseInt(getVar('db_open_hiker_search'));\n} catch (e) { }\nopenHikerSearch = openHikerSearch === -1 ? 1 : openHikerSearch;\n// desc 描述的三行中每行的最大长度\nlet descLineMaxLen = -1;\ntry {\n descLineMaxLen = parseInt(getVar('db_desc_line_max_len'));\n} catch (e) { }\ndescLineMaxLen = descLineMaxLen === -1 ? 25 : descLineMaxLen;\n// 评论用户颜色\nlet userColor = \"#2979FF\";\ntry {\n userColor = getVar('db_user_color');\n} catch (e) { }\nuserColor = userColor === '' ? \"#2979FF\" : userColor;\n// 模块的间距\nlet line_model = -1;\ntry {\n line_model = parseInt(getVar('db_line_model'));\n} catch (e) { }\nline_model = line_model === -1 ? 0 : line_model;\n// 模块间距类型(适配以后可能会有的无边距线)\nlet line_type_model = '';\ntry {\n line_type_model = getVar('db_line_type_model');\n} catch (e) { }\nline_type_model = line_type_model === '' ? \"line\" : line_type_model;\n\n// 评分对应颜色 [ 五星力荐,四星推荐,三星还行,二星较差,一星很差]\nlet ratingTexts = [\n \"力荐\",\n \"推荐\",\n \"还行\",\n \"较差\",\n \"很差\",\n];\nlet ratingColors = [\n \"#00d437\",\n \"#9cdc00\",\n \"#ddcf00\",\n \"#ffa400\",\n \"#ff7800\",\n];\n\nfunction getBigText(text) {\n return '<big>' + text + '</big>';\n}\nfunction getSmallText(text) {\n return '<small>' + text + '</small>';\n}\nfunction getTitleText(text) {\n return '<strong>' + text + '</strong>';\n}\nfunction getColorText(text, color) {\n return '<font color=\"' + color + '\">' + text + '</font>';\n}\nfunction getGreyText(text) {\n return getColorText(text, 'grey');\n}\nfunction getAuthorText(text) {\n return getColorText(text, userColor);\n}\nfunction getRatingText(text) {\n let colorIndex = ratingTexts.indexOf(text);\n let textColor = colorIndex < 0 ? '#f9b700' : ratingColors[colorIndex];\n return getColorText(text, textColor);\n}\nfunction getAbbrevText(text) {\n let mText = text;\n if (text.length > descLineMaxLen) {\n mText = mText.substring(0, descLineMaxLen) + '...';\n }\n return mText;\n}\nfunction getCommentMeta(html) {\n return getSmallText(html);\n}\nString.prototype.replaceWithCallback = function (searchValue, replaceValue, callback) {\n let returnValue = this;\n if (callback != null) {\n returnValue = callback(this, searchValue, replaceValue);\n }\n return returnValue;\n};\n\nlet reviewRule = '@rule=js: ' +var res={},d=[],colType=\"rich_text\",html=getResCode(),hideImg=0;let userColor=\"#2979FF\";try{userColor=getVar(\"db_user_color\")}catch(t){}userColor=\"\"===userColor?\"#2979FF\":userColor;let line_model=-1;try{line_model=parseInt(getVar(\"db_line_model\"))}catch(t){}line_model=-1===line_model?0:line_model;let line_type_model=\"\";try{line_type_model=getVar(\"db_line_type_model\")}catch(t){}line_type_model=\"\"===line_type_model?\"line\":line_type_model;let ratingTexts=[\" 力荐 \",\" 推荐 \",\" 还行 \",\" 较差 \",\" 很差 \"],ratingColors=[\"#00d437\",\"#9cdc00\",\"#ddcf00\",\"#ffa400\",\"#ff7800\"];function getBigText(t){return\"\"+t+\"\"}function getSmallText(t){return\"\"+t+\"\"}function getStrongText(t){return\"\"+t+\"\"}function getTitleText(t){return getStrongText(t)}function getItalicText(t){return\"\"+t+\"\"}function getColorText(t,e){return''+t+\"\"}function getGreyText(t){return getColorText(t,\"grey\")}function getAuthorText(t){return getColorText(t,userColor)}function getRatingText(t){let e=ratingTexts.indexOf(t);return getColorText(t,e<0?\"#f9b700\":ratingColors[e])}function getAbbrevText(t){let e=t;return t.length>descLineMaxLen&&(e=e.substring(0,descLineMaxLen)+\"...\"),e}function getCommentMeta(t){return getSmallText(t)}function styleSpanToStyleFontReplacement(t,e,l){let r=t;try{let o=t.match(e);for(let t=0;t-1&&(l=getStrongText(l)),e.indexOf(\"font-style: italic;\")>-1&&(l=getItalicText(l)),r=r.replace(e,l)}}catch(t){}return r}String.prototype.replaceWithCallback=function(t,e,l){let r=this;return null!=l&&(r=l(this,t,e)),r};try{let t=getSmallText(getGreyText('[查看原文]')),e=parseDomForHtml(html,\"#content&&.article&&Html\"),l=getBigText(getTitleText(parseDomForHtml(e,\"h1&&Text\")));e=parseDomForHtml(e,\".main-hd&&Html\");let r=\"\",o=\"\";!0===/()/.test(e)&&(o=getAuthorText(parseDomForHtml(RegExp.$1,\"Text\")));let n=\"\";!0===/()/.test(e)&&(n=getColorText(parseDomForHtml(RegExp.$1,\"Text\"),\"#8965b4\")),r=\"\"!==o&&\"\"!==n?o+\"\"+getGreyText(\" 评论 \")+\" \"+n:\"\";let a=\"\";try{a=getRatingText(parseDomForHtml(e,\".main-title-rating&&title\"))+\"\"}catch(t){}r=getSmallText(r+=\" \"+a+getGreyText(parseDomForHtml(e,\".main-meta&&Text\"))),d.push({title:l+\" \"+t+\"\"+r}),d.push({col_type:\"line\"})}catch(t){}try{let t=parseDomForHtml(html,\"#review-content&&Html\"),e=\"\";try{e=\"
海阔视界规则分享,当前分享的是:首页频道¥home_rule¥{"title":"豆瓣新版R","author":"(o˘◡˘o)&Reborn","url":"https://movie.douban.com/j/new_search_subjects?range=0,10&start=fypage@-1@*20@&tags=fyclass&fysort&fyarea&fyyear","version":9,"col_type":"movie_3","class_name":"全部&电影&电视剧&综艺&动漫&纪录片&短片","class_url":"&电影&电视剧&综艺&动漫&纪录片&短片","area_name":"全部&中国大陆&美国&中国香港&中国台湾&日本&韩国&英国&法国&德国&意大利&西班牙&印度&泰国&俄罗斯&伊朗&加拿大&澳大利亚&爱尔兰&瑞典&巴西&丹麦","area_url":"countries=&countries=中国大陆&countries=美国&countries=中国香港&countries=中国台湾&countries=日本&countries=韩国&countries=英国&countries=法国&countries=德国&countries=意大利&countries=西班牙&countries=印度&countries=泰国&countries=俄罗斯&countries=伊朗&countries=加拿大&countries=澳大利亚&countries=爱尔兰&countries=瑞典&countries=巴西&countries=丹麦","sort_name":"近期热 & 标记多 & 评分高 & 新上映 &┃\n\n&全部&剧情&喜剧&动作&爱情&科幻&动画&悬疑&惊悚&恐怖&犯罪&同性&音乐&歌舞&传记&历史&战争&西部&奇幻&冒险&灾难&武侠&情sè","year_name":"全部&2020&2019&2018&2010年代&2000年代&更早","sort_url":"sort=U&sort=T&sort=S&sort=R&\n\n&genres=&genres=剧情&genres=喜剧&genres=动作&genres=爱情&genres=科幻&genres=动画&genres=悬疑&genres=惊悚&genres=恐怖&genres=犯罪&genres=同性&genres=音乐&genres=歌舞&genres=传记&genres=历史&genres=战争&genres=西部&genres=奇幻&genres=冒险&genres=灾难&genres=武侠&genres=情(sè自己替换)","year_url":"year_range=&year_range=2020,2020&year_range=2019,2019&year_range=2018,2018&year_range=2010,2019&year_range=2000,2009&year_range=1,1999","find_rule":"js:\n// 是否进入测试模式,开发者专用选项,平民玩家开了也没用\nlet testMode = 0;\ntry {\nvar defaultPic = 'http://1t.click/aXjm';\n\nvar data = JSON.parse(getResCode()).data.map(function(o) {\n return {\n title: o.title,\n desc: o.rate\n ? o.rate + '分'\n : (o.casts.length > 0 ? o.casts : o.directors).slice(0, 2).join(' / '),\n pic_url: o.cover.includes('default') && defaultPic ? defaultPic : o.cover,\n url: 'https://m.douban.com/movie/subject/' + o.id + '/' + '#' + o.title + '#noHistory#'\n };\n});\n\nsetHomeResult({ data: data });\n\n} catch (e) {\n let result = {};\n let errorTitle = '““””<font color=\"grey\">' + '暂无内容,请稍候再试' + '</font>';\n let errorDesc = '';\n try {\n result = JSON.parse(getResCode());\n } catch (e) { }\n if (result.msg != null && result.msg !== '') {\n errorTitle = '““' + result.msg + '””';\n errorDesc = '提示:也许只是服务器打了个盹等等就会好起来了?\\n提示:也许你可以试试搜索?有惊喜哦~';\n }\n\n setHomeResult({\n data: [{\n title: errorTitle,\n desc: errorDesc,\n url: testMode === 1 ? 'https://m.douban.com/subject/26357307/' : '',\n col_type: 'text_center_1'\n }]\n });\n}\n\n/* v0.11.12 (o˘◡˘o) */","search_url":"https://m.douban.com/search/?(o%CB%98%E2%97%A1%CB%98o)&type=movie&query=**;get;utf-8;{User-Agent@Windows}","titleColor":"#ff148e8e","group":"①常用","searchFind":".search_results_subjects&&li;span&&Text;a&&href.js: 'https://movie.douban.com' + input.replace('/movie', '') + '#noHistory#';p&&Text.js: if(/尚未.*/.test(input) != true) \"评分:\" + input;; else input;;;*;img&&src","detail_col_type":"rich_text","detail_find_rule":"js:\nvar res = {};\nvar d = [];\nvar colType = 'rich_text';\nvar html = getResCode();\nvar urlSplits = MY_URL.split('#');\nvar mUrl = urlSplits[0];\n\n/**\n * 一些全局配置,请移步预处理中进行配置\n */\n// 是否开启视界搜\nlet openHikerSearch = -1;\ntry {\n openHikerSearch = parseInt(getVar('db_open_hiker_search'));\n} catch (e) { }\nopenHikerSearch = openHikerSearch === -1 ? 1 : openHikerSearch;\n// desc 描述的三行中每行的最大长度\nlet descLineMaxLen = -1;\ntry {\n descLineMaxLen = parseInt(getVar('db_desc_line_max_len'));\n} catch (e) { }\ndescLineMaxLen = descLineMaxLen === -1 ? 25 : descLineMaxLen;\n// 评论用户颜色\nlet userColor = \"#2979FF\";\ntry {\n userColor = getVar('db_user_color');\n} catch (e) { }\nuserColor = userColor === '' ? \"#2979FF\" : userColor;\n// 模块的间距\nlet line_model = -1;\ntry {\n line_model = parseInt(getVar('db_line_model'));\n} catch (e) { }\nline_model = line_model === -1 ? 0 : line_model;\n// 模块间距类型(适配以后可能会有的无边距线)\nlet line_type_model = '';\ntry {\n line_type_model = getVar('db_line_type_model');\n} catch (e) { }\nline_type_model = line_type_model === '' ? \"line\" : line_type_model;\n\n// 评分对应颜色 [ 五星力荐,四星推荐,三星还行,二星较差,一星很差]\nlet ratingTexts = [\n \"力荐\",\n \"推荐\",\n \"还行\",\n \"较差\",\n \"很差\",\n];\nlet ratingColors = [\n \"#00d437\",\n \"#9cdc00\",\n \"#ddcf00\",\n \"#ffa400\",\n \"#ff7800\",\n];\n\nfunction getBigText(text) {\n return '<big>' + text + '</big>';\n}\nfunction getSmallText(text) {\n return '<small>' + text + '</small>';\n}\nfunction getTitleText(text) {\n return '<strong>' + text + '</strong>';\n}\nfunction getColorText(text, color) {\n return '<font color=\"' + color + '\">' + text + '</font>';\n}\nfunction getGreyText(text) {\n return getColorText(text, 'grey');\n}\nfunction getAuthorText(text) {\n return getColorText(text, userColor);\n}\nfunction getRatingText(text) {\n let colorIndex = ratingTexts.indexOf(text);\n let textColor = colorIndex < 0 ? '#f9b700' : ratingColors[colorIndex];\n return getColorText(text, textColor);\n}\nfunction getAbbrevText(text) {\n let mText = text;\n if (text.length > descLineMaxLen) {\n mText = mText.substring(0, descLineMaxLen) + '...';\n }\n return mText;\n}\nfunction getCommentMeta(html) {\n return getSmallText(html);\n}\nString.prototype.replaceWithCallback = function (searchValue, replaceValue, callback) {\n let returnValue = this;\n if (callback != null) {\n returnValue = callback(this, searchValue, replaceValue);\n }\n return returnValue;\n};\n\nlet reviewRule = '@rule=js: ' +
\"+parseDomForHtml(t,\".main-title-tip&&Html\")+\"
;\n\n/**\n * 获取 影片/书籍 信息\n * @type {string}\n */\ntry {\n let sub_info_html = parseDomForHtml(html, \"#wrapper&&Html\")\n .replace(/\\n/g, '');\n let sub_original_title = parseDomForHtml(sub_info_html, 'h1&&Text');\n let sub_cover = parseDomForHtml(sub_info_html, '#mainpic&&a&&img&&src');\n // let sub_title = parseDomForHtml(sub_info, '.sub-detail&&.sub-title&&Text');\n let sub_meta_html = parseDomForHtml(sub_info_html, '#info&&Html');\n let actor = '';\n let type = '';\n let showDate = '';\n if (mUrl.indexOf('book') > -1) {\n try {\n if (/(<span>[\\s\\S]*?<span class=\"pl\"> 作者<\\/span>[\\s\\S]*?(?=<br>))/.test(sub_meta_html) === true) {\n actor = '<div class=\"actor\">' + RegExp.$1 + '</div>';\n actor = parseDomForHtml(actor, '.actor&&Text')\n }\n } catch (e) { }\n try {\n if (/(<span class=\"pl\">出版社:<\\/span>[\\s\\S]*?(?=<br>))/.test(sub_meta_html) === true) {\n type = '<div class=\"type\">' + RegExp.$1 + '</div>';\n type = parseDomForHtml(type, '.type&&Text')\n }\n } catch (e) { }\n try {\n if (/(<span class=\"pl\">出版年:<\\/span>[\\s\\S]*?(?=<br>))/.test(sub_meta_html) === true) {\n showDate = '<div class=\"date\">' + RegExp.$1 + '</div>';\n showDate = parseDomForHtml(showDate, '.date&&Text')\n }\n } catch (e) { }\n } else {\n actor = parseDomForHtml(sub_meta_html, '.actor&&Text');\n try {\n if (/(<span class=\"pl\">类型:<\\/span>[\\s\\S]*?(?=<br>))/.test(sub_meta_html) === true) {\n type = '<div class=\"type\">' + RegExp.$1 + '</div>';\n type = parseDomForHtml(type, '.type&&Text')\n }\n } catch (e) { }\n try {\n if (/(<span class=\"pl\">(上映日期|首播):<\\/span>[\\s\\S]*?(?=<br>))/.test(sub_meta_html) === true) {\n showDate = '<div class=\"date\">' + RegExp.$1 + '</div>';\n showDate = parseDomForHtml(showDate, '.date&&Text')\n }\n } catch (e) { }\n }\n let sub_meta = getAbbrevText(actor)\n + (type === '' ? '' : ('\\n' + getAbbrevText(type)))\n + (showDate === '' ? '' : ('\\n' + getAbbrevText(showDate)));\n let db_title = '';\n try {\n db_title = urlSplits[1];\n } catch (e) { }\n // 搜索参数\n let searchValue = getVar('db_search_value');\n let sub_url = openHikerSearch === 1\n ? ('hiker://search?s='\n + (db_title === '' || db_title === undefined\n ? sub_original_title\n : db_title)\n + searchValue\n )\n : mUrl;\n d.push({\n title: sub_original_title,\n pic_url: sub_cover,\n url: sub_url,\n desc: sub_meta,\n col_type: 'movie_1_vertical_pic'\n });\n for (let i = 0; i < line_model; i++) {\n d.push({\n col_type: line_type_model\n })\n }\n} catch (e) { }\n\n/**\n * 豆瓣评分\n */\ntry {\n let rating = parseDomForHtml(html, '#interest_sectl&&Html');\n let rating_title = '';\n let rating_content = '';\n let rating_show = parseDomForHtml(rating, '.rating_self&&div[class^=rating_right]&&Text');\n if (rating_show === '尚未播出' || rating_show === '尚未上映') {\n rating_content += (getBigText('豆瓣评分') + ' ' + getSmallText(getGreyText(rating_show)));\n } else {\n let ratingText = parseDomForHtml(rating, '.rating_self&&strong&&Text');\n rating_content += getBigText('豆瓣评分 '\n + (ratingText === ''\n ? getSmallText(getGreyText('暂无评分'))\n : (getTitleText(ratingText) + ' 分'))\n + '<br>');\n let rating_array = [];\n if (mUrl.indexOf('book') > -1) {\n rating_array = rating.match(/<span class=\"stars[\\s\\S]*?(?=<br>)/g);\n } else {\n rating_array = parseDomForArray(rating, '.ratings-on-weight&&.item');\n }\n for (let i = 0; i < rating_array.length; i++) {\n let ratingItem = rating_array[i];\n if (i === 0) rating_content += '🌟 ';\n if (i === 2) rating_content += '<br>⭐ ';\n if (i === 3) rating_content += '<br>☄️ ';\n rating_content += getColorText(parseDomForHtml(ratingItem, 'Text'), ratingColors[i]) + '\\t\\t';\n }\n }\n let dContent = rating_title + (rating_title === '' ? '' : '<br>') + rating_content;\n d.push({\n title: dContent\n });\n for (let i = 0; i < line_model; i++) {\n d.push({\n col_type: line_type_model\n })\n }\n} catch (e) { }\n\n/**\n * 剧情简介/书籍内容介绍\n */\ntry {\n let sub_intro = parseDomForHtml(html, '.related-info||.related_info&&Html')\n .replace(/\\n/g, '');\n let sub_intro_title = parseDomForHtml(sub_intro, 'h2&&Text')\n .replace(/(.*?的)|(· · · · · ·)|( · · · · · ·)|(· · · · · ·)/g, '');\n sub_intro_title = getBigText(getGreyText(sub_intro_title));\n let sub_intro_content = '';\n try {\n sub_intro_content = parseDomForHtml(sub_intro, '.indent&&span[class^=all]&&Html');\n } catch (e) {\n sub_intro_content = parseDomForHtml(sub_intro, '.indent&&Html');\n }\n try {\n sub_intro_content = parseDomForHtml(sub_intro_content, '.intro&&Html');\n } catch (e) { }\n dContent = sub_intro_title + '<br>' + sub_intro_content;\n d.push({\n title: dContent\n });\n for (let i = 0; i < line_model; i++) {\n d.push({\n col_type: line_type_model\n })\n }\n} catch (e) { }\n\n/**\n * 短评\n */\ntry {\n let comments_html = parseDomForHtml(html, '#comments-section&&Html');\n let comments_title = getBigText(getGreyText(parseDomForHtml(comments_html, 'h2&&Html')\n .replace(/(.*?的)|(· · · · · ·)|( · · · · · ·)/g, '')))\n .replace(/<i[\\s\\S]*?>|<\\/i>/g, '')\n .replace(/movie.douban.com/g, 'm.douban.com/movie');\n dContent = comments_title;\n d.push({\n title: dContent\n });\n let comments_content_html = parseDomForHtml(comments_html, '.tab-bd||#comment-list-wrapper&&Html');\n let comments_content_html_array = parseDomForArray(comments_content_html, '#hot-comments||#new_score&&.comment-item');\n for (let i = 0; i < comments_content_html_array.length; i++) {\n let commentHtmlItem = comments_content_html_array[i];\n let content = parseDomForHtml(commentHtmlItem, 'p&&Html');\n try {\n if (/<\\/span>[\\s\\S]*?(<span class=\"[\\s\\S]*?full\">[\\s\\S]*?<\\/span>)/.test(content) === true) {\n content = RegExp.$1;\n }\n } catch (e) {\n content = parseDomForHtml(commentHtmlItem, 'p&&Html');\n }\n let watchStatus = parseDomForHtml(commentHtmlItem, '.comment-info&&Text');\n if (watchStatus.indexOf(\"看过\")) watchStatus = '看过';\n else if (watchStatus.indexOf(\"想看\")) watchStatus = '想看';\n let ratingText = '';\n try {\n ratingText = '\\t' + getRatingText(parseDomForHtml(commentHtmlItem, '.comment-info&&.rating&&title'))\n } catch (e) { }\n let meta = getAuthorText(parseDomForHtml(commentHtmlItem, '.comment-info&&a&&Text'))\n + '\\t'\n + getGreyText(watchStatus)\n + ratingText\n + '\\t'\n + getGreyText(parseDomForHtml(commentHtmlItem, '.comment-info&&span[class^=comment-time]&&Text'));\n dContent = content + '<br>' + getCommentMeta(meta);\n d.push({\n title: dContent\n .replace(/<a class=\"source-icon\"[\\s\\S]*?<\\/a>/g, '')\n .replace(/\\(<a href=\"javascript:;\"[\\s\\S]*?>展开<\\/a>\\)/g, '')\n });\n if (i < comments_content_html_array.length - 1) {\n d.push({\n col_type: 'line'\n })\n }\n }\n for (let i = 0; i < line_model; i++) {\n d.push({\n col_type: line_type_model\n })\n }\n} catch (e) { }\n\n/**\n * 影评/书评\n */\ntry {\n let reviews_html = parseDomForHtml(html, '#reviews-wrapper&&Html');\n let reviews_title = getBigText(getGreyText(\n parseDomForHtml(reviews_html, 'h2&&Html')\n .replace('href=\"reviews\"', 'href=\"' + mUrl + 'reviews\"')\n .replace(/(.*?的)|(· · · · · ·)/g, '')\n ));\n dContent = reviews_title;\n d.push({\n title: dContent\n });\n let reviews_content_html = parseDomForHtml(reviews_html, 'div[class^=review-list]&&Html');\n let reviews_content_html_array = reviews_content_html.match(/<div class=\"main review-item\"[\\s\\S]*?<\\/div>/g);\n for (let i = 0; i < reviews_content_html_array.length; i++) {\n let reviewHtmlItem = reviews_content_html_array[i];\n let contentHtml = parseDomForHtml(reviewHtmlItem, '.main-bd&&Html');\n let reviewTitle = parseDomForHtml(contentHtml, 'h2&&Html');\n let reviewUrl = parseDomForHtml(reviewTitle, 'a&&href');\n let reviewRuleUrl = 'base64://' + base64Encode(reviewUrl + '#noHistory#' + reviewRule);\n reviewTitle = reviewTitle.replace(reviewUrl, reviewRuleUrl);\n let content = getTitleText(reviewTitle)\n + '<br>'\n + parseDomForHtml(contentHtml, '.review-short&&.short-content&&Html')\n + ' <small><a href=\"' + reviewRuleUrl + '\">[查看全文]</a></small>'\n ;\n let ratingText = '';\n try {\n ratingText = '\\t' + getRatingText(parseDomForHtml(reviewHtmlItem, '.main-hd&&.main-title-rating&&title'))\n } catch (e) { }\n let meta = getAuthorText(parseDomForHtml(reviewHtmlItem, '.main-hd&&.name&&Text'))\n + ratingText\n + '\\t'\n + getGreyText(parseDomForHtml(reviewHtmlItem, '.main-hd&&.main-meta&&Text'));\n let responseHtml = '';\n let feedback = '';\n try{\n if (/(<a href=\"http[\\s\\S]*?class=\"reply[\\s\\S]*?<\\/a>)/.test(reviewHtmlItem) === true) responseHtml = RegExp.$1;\n feedback = getGreyText('👍🏻' + parseDomForHtml(reviewHtmlItem, '.action&&.action-btn.up&&Text')\n + '\\t'\n + '👎🏻' + parseDomForHtml(reviewHtmlItem, '.action&&.action-btn.down&&Text')\n + '\\t'\n + responseHtml\n );\n } catch (e) { }\n dContent = content\n + '<br>'\n + getCommentMeta(meta)\n + (feedback === '' ?\n ''\n : ('<br>' + getCommentMeta(feedback))\n );\n d.push({\n title: dContent\n .replace(/<a class=\"source-icon\"[\\s\\S]*?<\\/a>/g, '')\n .replace(/\\([\\s\\S][\\r\\n]<a href=\"javascript:;\"[\\s\\S]*?title=\"展开\">展开<\\/a>\\)/g, '')\n .replaceWithCallback(/(<p class=\"spoiler-tip\">(.*?)<\\/p>)/g,\n '<blockquote class=\"spoiler-tip\">{有剧透}</blockquote>',\n function (source, searchValue, replaceValue) {\n let returnValue = source;\n if (searchValue.test(source) === true) {\n let replaceText = RegExp.$2;\n replaceText = replaceText === '' ? RegExp.$1 : replaceValue.replace('{有剧透}', replaceText);\n returnValue = source.replace(RegExp.$1, replaceText)\n }\n return returnValue;\n })\n });\n if (i < reviews_content_html_array.length - 1) {\n d.push({\n col_type: 'line'\n })\n }\n }\n} catch (e) { }\n\nres.data = d;\nsetHomeResult(res);","sdetail_col_type":"rich_text","sdetail_find_rule":"*","ua":"pc","preRule":"/**\n * 是否开启视界搜,开启后点击第一项即可使用\n *\n * 若不开启则点击为查看原文\n *\n * 开启/1 不开启/0\n */\nlet openHikerSearch = 1;\n// desc 描述的三行中每行的最大长度\nlet descLineMaxLen = 25;\n// 评论用户颜色\nlet userColor = \"#2979FF\";\n// 模块的间距\nlet line_model = 1;\n// 模块间距类型(适配以后可能会有的无边距线)\nlet line_type_model = 'line_blank';\n/**\n * 搜索模式\n *\n * 0: \"hiker://search?s=测试,将会打开搜索弹窗,自动填充搜索的关键词“测试”,由用户自己选择分组和规则后搜索\",\n * 1: \"hiker://search?s=测试&group=②影搜,将会打开搜索弹窗,自动填充搜索的关键词“测试”并且自动切换分组为“②影搜”,用户可切换分组和规则\",\n * 2: \"hiker://search?s=测试&rule=海阔视界,将会直接跳转搜索结果界面,自动选择标题为“海阔视界”的规则进行搜索,并且该界面不可切换别的规则\",\n * 3: \"hiker://search?s=测试&rule=海阔视界&simple=false,将会自动填充搜索的关键词“测试”,并且自动切换分组为“①推荐”、自动选中标题为“海阔视界”的规则,用户可切换分组和规则,并自动开始搜索\"\n */\nlet searchMode = 0;\n// 搜索分组\nlet searchGroup = '';\n// 搜索规则\nlet searchRule = '';\n\n/**\n * 以下完全不需要使用者配置,如看不懂代码请勿乱动\n */\nlet searchValues = [\n '',\n searchGroup === '' ? '' : '&group=' + searchGroup,\n searchRule === '' ? '' : '&rule=' + searchRule,\n searchRule === '' ? '' : '&rule=' + searchRule + '&simple=false'\n];\nlet searchValue = searchValues[searchMode];\nputVar2('db_open_hiker_search', openHikerSearch.toString());\nputVar2('db_desc_line_max_len', descLineMaxLen.toString());\nputVar2('db_user_color', userColor);\nputVar2('db_line_model', line_model.toString());\nputVar2('db_line_type_model', line_type_model);\nputVar2('db_search_value', searchValue);"}
同求
新搜狗追剧有吗
\"}catch(t){}let l=parseDomForHtml(t,\".review-content&&Html\").replaceWithCallback(/([\\s\\S]*?)<\\/span>/g,\"\",styleSpanToStyleFontReplacement),r=\"\";try{r=getSmallText(getGreyText(parseDomForHtml(t,\".copyright&&Html\")))}catch(t){}let o=parseDomForHtml(t,\".main-panel-useful&&Html\"),n=\"海阔视界规则分享,当前分享的是:首页频道¥home_rule¥{"title":"豆瓣新版R","author":"(o˘◡˘o)&Reborn","url":"https://movie.douban.com/j/new_search_subjects?range=0,10&start=fypage@-1@*20@&tags=fyclass&fysort&fyarea&fyyear","version":9,"col_type":"movie_3","class_name":"全部&电影&电视剧&综艺&动漫&纪录片&短片","class_url":"&电影&电视剧&综艺&动漫&纪录片&短片","area_name":"全部&中国大陆&美国&中国香港&中国台湾&日本&韩国&英国&法国&德国&意大利&西班牙&印度&泰国&俄罗斯&伊朗&加拿大&澳大利亚&爱尔兰&瑞典&巴西&丹麦","area_url":"countries=&countries=中国大陆&countries=美国&countries=中国香港&countries=中国台湾&countries=日本&countries=韩国&countries=英国&countries=法国&countries=德国&countries=意大利&countries=西班牙&countries=印度&countries=泰国&countries=俄罗斯&countries=伊朗&countries=加拿大&countries=澳大利亚&countries=爱尔兰&countries=瑞典&countries=巴西&countries=丹麦","sort_name":"近期热 & 标记多 & 评分高 & 新上映 &┃\n\n&全部&剧情&喜剧&动作&爱情&科幻&动画&悬疑&惊悚&恐怖&犯罪&同性&音乐&歌舞&传记&历史&战争&西部&奇幻&冒险&灾难&武侠&情sè","year_name":"全部&2020&2019&2018&2010年代&2000年代&更早","sort_url":"sort=U&sort=T&sort=S&sort=R&\n\n&genres=&genres=剧情&genres=喜剧&genres=动作&genres=爱情&genres=科幻&genres=动画&genres=悬疑&genres=惊悚&genres=恐怖&genres=犯罪&genres=同性&genres=音乐&genres=歌舞&genres=传记&genres=历史&genres=战争&genres=西部&genres=奇幻&genres=冒险&genres=灾难&genres=武侠&genres=情(sè自己替换)","year_url":"year_range=&year_range=2020,2020&year_range=2019,2019&year_range=2018,2018&year_range=2010,2019&year_range=2000,2009&year_range=1,1999","find_rule":"js:\n// 是否进入测试模式,开发者专用选项,平民玩家开了也没用\nlet testMode = 0;\ntry {\nvar defaultPic = 'http://1t.click/aXjm';\n\nvar data = JSON.parse(getResCode()).data.map(function(o) {\n return {\n title: o.title,\n desc: o.rate\n ? o.rate + '分'\n : (o.casts.length > 0 ? o.casts : o.directors).slice(0, 2).join(' / '),\n pic_url: o.cover.includes('default') && defaultPic ? defaultPic : o.cover,\n url: 'https://m.douban.com/movie/subject/' + o.id + '/' + '#' + o.title + '#noHistory#'\n };\n});\n\nsetHomeResult({ data: data });\n\n} catch (e) {\n let result = {};\n let errorTitle = '““””<font color=\"grey\">' + '暂无内容,请稍候再试' + '</font>';\n let errorDesc = '';\n try {\n result = JSON.parse(getResCode());\n } catch (e) { }\n if (result.msg != null && result.msg !== '') {\n errorTitle = '““' + result.msg + '””';\n errorDesc = '提示:也许只是服务器打了个盹等等就会好起来了?\\n提示:也许你可以试试搜索?有惊喜哦~';\n }\n\n setHomeResult({\n data: [{\n title: errorTitle,\n desc: errorDesc,\n url: testMode === 1 ? 'https://m.douban.com/subject/26357307/' : '',\n col_type: 'text_center_1'\n }]\n });\n}\n\n/* v0.11.12 (o˘◡˘o) */","search_url":"https://m.douban.com/search/?(o%CB%98%E2%97%A1%CB%98o)&type=movie&query=**;get;utf-8;{User-Agent@Windows}","titleColor":"#ff148e8e","group":"①常用","searchFind":".search_results_subjects&&li;span&&Text;a&&href.js: 'https://movie.douban.com' + input.replace('/movie', '') + '#noHistory#';p&&Text.js: if(/尚未.*/.test(input) != true) \"评分:\" + input;; else input;;;*;img&&src","detail_col_type":"rich_text","detail_find_rule":"js:\nvar res = {};\nvar d = [];\nvar colType = 'rich_text';\nvar html = getResCode();\nvar urlSplits = MY_URL.split('#');\nvar mUrl = urlSplits[0];\n\n/**\n * 一些全局配置,请移步预处理中进行配置\n */\n// 是否开启视界搜\nlet openHikerSearch = -1;\ntry {\n openHikerSearch = parseInt(getVar('db_open_hiker_search'));\n} catch (e) { }\nopenHikerSearch = openHikerSearch === -1 ? 1 : openHikerSearch;\n// desc 描述的三行中每行的最大长度\nlet descLineMaxLen = -1;\ntry {\n descLineMaxLen = parseInt(getVar('db_desc_line_max_len'));\n} catch (e) { }\ndescLineMaxLen = descLineMaxLen === -1 ? 25 : descLineMaxLen;\n// 评论用户颜色\nlet userColor = \"#2979FF\";\ntry {\n userColor = getVar('db_user_color');\n} catch (e) { }\nuserColor = userColor === '' ? \"#2979FF\" : userColor;\n// 模块的间距\nlet line_model = -1;\ntry {\n line_model = parseInt(getVar('db_line_model'));\n} catch (e) { }\nline_model = line_model === -1 ? 0 : line_model;\n// 模块间距类型(适配以后可能会有的无边距线)\nlet line_type_model = '';\ntry {\n line_type_model = getVar('db_line_type_model');\n} catch (e) { }\nline_type_model = line_type_model === '' ? \"line\" : line_type_model;\n\n// 评分对应颜色 [ 五星力荐,四星推荐,三星还行,二星较差,一星很差]\nlet ratingTexts = [\n \"力荐\",\n \"推荐\",\n \"还行\",\n \"较差\",\n \"很差\",\n];\nlet ratingColors = [\n \"#00d437\",\n \"#9cdc00\",\n \"#ddcf00\",\n \"#ffa400\",\n \"#ff7800\",\n];\n\nfunction getBigText(text) {\n return '<big>' + text + '</big>';\n}\nfunction getSmallText(text) {\n return '<small>' + text + '</small>';\n}\nfunction getTitleText(text) {\n return '<strong>' + text + '</strong>';\n}\nfunction getColorText(text, color) {\n return '<font color=\"' + color + '\">' + text + '</font>';\n}\nfunction getGreyText(text) {\n return getColorText(text, 'grey');\n}\nfunction getAuthorText(text) {\n return getColorText(text, userColor);\n}\nfunction getRatingText(text) {\n let colorIndex = ratingTexts.indexOf(text);\n let textColor = colorIndex < 0 ? '#f9b700' : ratingColors[colorIndex];\n return getColorText(text, textColor);\n}\nfunction getAbbrevText(text) {\n let mText = text;\n if (text.length > descLineMaxLen) {\n mText = mText.substring(0, descLineMaxLen) + '...';\n }\n return mText;\n}\nfunction getCommentMeta(html) {\n return getSmallText(html);\n}\nString.prototype.replaceWithCallback = function (searchValue, replaceValue, callback) {\n let returnValue = this;\n if (callback != null) {\n returnValue = callback(this, searchValue, replaceValue);\n }\n return returnValue;\n};\n\nlet reviewRule = '@rule=js: ' +
var res={},d=[],colType=\"rich_text\",html=getResCode(),hideImg=0;let userColor=\"#2979FF\";try{userColor=getVar(\"db_user_color\")}catch(t){}userColor=\"\"===userColor?\"#2979FF\":userColor;let line_model=-1;try{line_model=parseInt(getVar(\"db_line_model\"))}catch(t){}line_model=-1===line_model?0:line_model;let line_type_model=\"\";try{line_type_model=getVar(\"db_line_type_model\")}catch(t){}line_type_model=\"\"===line_type_model?\"line\":line_type_model;let ratingTexts=[\" 力荐 \",\" 推荐 \",\" 还行 \",\" 较差 \",\" 很差 \"],ratingColors=[\"#00d437\",\"#9cdc00\",\"#ddcf00\",\"#ffa400\",\"#ff7800\"];function getBigText(t){return\"\"+t+\"\"}function getSmallText(t){return\"\"+t+\"\"}function getStrongText(t){return\"\"+t+\"\"}function getTitleText(t){return getStrongText(t)}function getItalicText(t){return\"\"+t+\"\"}function getColorText(t,e){return''+t+\"\"}function getGreyText(t){return getColorText(t,\"grey\")}function getAuthorText(t){return getColorText(t,userColor)}function getRatingText(t){let e=ratingTexts.indexOf(t);return getColorText(t,e<0?\"#f9b700\":ratingColors[e])}function getAbbrevText(t){let e=t;return t.length>descLineMaxLen&&(e=e.substring(0,descLineMaxLen)+\"...\"),e}function getCommentMeta(t){return getSmallText(t)}function styleSpanToStyleFontReplacement(t,e,l){let r=t;try{let o=t.match(e);for(let t=0;t-1&&(l=getStrongText(l)),e.indexOf(\"font-style: italic;\")>-1&&(l=getItalicText(l)),r=r.replace(e,l)}}catch(t){}return r}String.prototype.replaceWithCallback=function(t,e,l){let r=this;return null!=l&&(r=l(this,t,e)),r};try{let t=getSmallText(getGreyText('[查看原文]')),e=parseDomForHtml(html,\"#content&&.article&&Html\"),l=getBigText(getTitleText(parseDomForHtml(e,\"h1&&Text\")));e=parseDomForHtml(e,\".main-hd&&Html\");let r=\"\",o=\"\";!0===/()/.test(e)&&(o=getAuthorText(parseDomForHtml(RegExp.$1,\"Text\")));let n=\"\";!0===/()/.test(e)&&(n=getColorText(parseDomForHtml(RegExp.$1,\"Text\"),\"#8965b4\")),r=\"\"!==o&&\"\"!==n?o+\"\"+getGreyText(\" 评论 \")+\" \"+n:\"\";let a=\"\";try{a=getRatingText(parseDomForHtml(e,\".main-title-rating&&title\"))+\"\"}catch(t){}r=getSmallText(r+=\" \"+a+getGreyText(parseDomForHtml(e,\".main-meta&&Text\"))),d.push({title:l+\" \"+t+\"\"+r}),d.push({col_type:\"line\"})}catch(t){}try{let t=parseDomForHtml(html,\"#review-content&&Html\"),e=\"\";try{e=\"
\"+getSmallText(getColorText(parseDomForHtml(o,\".useful_count&&Text\"),ratingColors[0])),a=\"\\t\\t\"+getSmallText(getColorText(parseDomForHtml(o,\".useless_count&&Text\"),ratingColors[4]));d.push({title:e+l+r+n+a})}catch(t){}d.push({title:\"““””\"+getColorText(\"· · · 查看评论 · · ·\",\"#ad8b25\"),url:MY_URL+\"#comment-list\",col_type:\"text_center_1\"}),res.data=d,setHomeResult(res);
;\n\n/**\n * 获取 影片/书籍 信息\n * @type {string}\n */\ntry {\n let sub_info_html = parseDomForHtml(html, \"#wrapper&&Html\")\n .replace(/\\n/g, '');\n let sub_original_title = parseDomForHtml(sub_info_html, 'h1&&Text');\n let sub_cover = parseDomForHtml(sub_info_html, '#mainpic&&a&&img&&src');\n // let sub_title = parseDomForHtml(sub_info, '.sub-detail&&.sub-title&&Text');\n let sub_meta_html = parseDomForHtml(sub_info_html, '#info&&Html');\n let actor = '';\n let type = '';\n let showDate = '';\n if (mUrl.indexOf('book') > -1) {\n try {\n if (/(<span>[\\s\\S]*?<span class=\"pl\"> 作者<\\/span>[\\s\\S]*?(?=<br>))/.test(sub_meta_html) === true) {\n actor = '<div class=\"actor\">' + RegExp.$1 + '</div>';\n actor = parseDomForHtml(actor, '.actor&&Text')\n }\n } catch (e) { }\n try {\n if (/(<span class=\"pl\">出版社:<\\/span>[\\s\\S]*?(?=<br>))/.test(sub_meta_html) === true) {\n type = '<div class=\"type\">' + RegExp.$1 + '</div>';\n type = parseDomForHtml(type, '.type&&Text')\n }\n } catch (e) { }\n try {\n if (/(<span class=\"pl\">出版年:<\\/span>[\\s\\S]*?(?=<br>))/.test(sub_meta_html) === true) {\n showDate = '<div class=\"date\">' + RegExp.$1 + '</div>';\n showDate = parseDomForHtml(showDate, '.date&&Text')\n }\n } catch (e) { }\n } else {\n actor = parseDomForHtml(sub_meta_html, '.actor&&Text');\n try {\n if (/(<span class=\"pl\">类型:<\\/span>[\\s\\S]*?(?=<br>))/.test(sub_meta_html) === true) {\n type = '<div class=\"type\">' + RegExp.$1 + '</div>';\n type = parseDomForHtml(type, '.type&&Text')\n }\n } catch (e) { }\n try {\n if (/(<span class=\"pl\">(上映日期|首播):<\\/span>[\\s\\S]*?(?=<br>))/.test(sub_meta_html) === true) {\n showDate = '<div class=\"date\">' + RegExp.$1 + '</div>';\n showDate = parseDomForHtml(showDate, '.date&&Text')\n }\n } catch (e) { }\n }\n let sub_meta = getAbbrevText(actor)\n + (type === '' ? '' : ('\\n' + getAbbrevText(type)))\n + (showDate === '' ? '' : ('\\n' + getAbbrevText(showDate)));\n let db_title = '';\n try {\n db_title = urlSplits[1];\n } catch (e) { }\n // 搜索参数\n let searchValue = getVar('db_search_value');\n let sub_url = openHikerSearch === 1\n ? ('hiker://search?s='\n + (db_title === '' || db_title === undefined\n ? sub_original_title\n : db_title)\n + searchValue\n )\n : mUrl;\n d.push({\n title: sub_original_title,\n pic_url: sub_cover,\n url: sub_url,\n desc: sub_meta,\n col_type: 'movie_1_vertical_pic'\n });\n for (let i = 0; i < line_model; i++) {\n d.push({\n col_type: line_type_model\n })\n }\n} catch (e) { }\n\n/**\n * 豆瓣评分\n */\ntry {\n let rating = parseDomForHtml(html, '#interest_sectl&&Html');\n let rating_title = '';\n let rating_content = '';\n let rating_show = parseDomForHtml(rating, '.rating_self&&div[class^=rating_right]&&Text');\n if (rating_show === '尚未播出' || rating_show === '尚未上映') {\n rating_content += (getBigText('豆瓣评分') + ' ' + getSmallText(getGreyText(rating_show)));\n } else {\n let ratingText = parseDomForHtml(rating, '.rating_self&&strong&&Text');\n rating_content += getBigText('豆瓣评分 '\n + (ratingText === ''\n ? getSmallText(getGreyText('暂无评分'))\n : (getTitleText(ratingText) + ' 分'))\n + '<br>');\n let rating_array = [];\n if (mUrl.indexOf('book') > -1) {\n rating_array = rating.match(/<span class=\"stars[\\s\\S]*?(?=<br>)/g);\n } else {\n rating_array = parseDomForArray(rating, '.ratings-on-weight&&.item');\n }\n for (let i = 0; i < rating_array.length; i++) {\n let ratingItem = rating_array[i];\n if (i === 0) rating_content += '🌟 ';\n if (i === 2) rating_content += '<br>⭐ ';\n if (i === 3) rating_content += '<br>☄️ ';\n rating_content += getColorText(parseDomForHtml(ratingItem, 'Text'), ratingColors[i]) + '\\t\\t';\n }\n }\n let dContent = rating_title + (rating_title === '' ? '' : '<br>') + rating_content;\n d.push({\n title: dContent\n });\n for (let i = 0; i < line_model; i++) {\n d.push({\n col_type: line_type_model\n })\n }\n} catch (e) { }\n\n/**\n * 剧情简介/书籍内容介绍\n */\ntry {\n let sub_intro = parseDomForHtml(html, '.related-info||.related_info&&Html')\n .replace(/\\n/g, '');\n let sub_intro_title = parseDomForHtml(sub_intro, 'h2&&Text')\n .replace(/(.*?的)|(· · · · · ·)|( · · · · · ·)|(· · · · · ·)/g, '');\n sub_intro_title = getBigText(getGreyText(sub_intro_title));\n let sub_intro_content = '';\n try {\n sub_intro_content = parseDomForHtml(sub_intro, '.indent&&span[class^=all]&&Html');\n } catch (e) {\n sub_intro_content = parseDomForHtml(sub_intro, '.indent&&Html');\n }\n try {\n sub_intro_content = parseDomForHtml(sub_intro_content, '.intro&&Html');\n } catch (e) { }\n dContent = sub_intro_title + '<br>' + sub_intro_content;\n d.push({\n title: dContent\n });\n for (let i = 0; i < line_model; i++) {\n d.push({\n col_type: line_type_model\n })\n }\n} catch (e) { }\n\n/**\n * 短评\n */\ntry {\n let comments_html = parseDomForHtml(html, '#comments-section&&Html');\n let comments_title = getBigText(getGreyText(parseDomForHtml(comments_html, 'h2&&Html')\n .replace(/(.*?的)|(· · · · · ·)|( · · · · · ·)/g, '')))\n .replace(/<i[\\s\\S]*?>|<\\/i>/g, '')\n .replace(/movie.douban.com/g, 'm.douban.com/movie');\n dContent = comments_title;\n d.push({\n title: dContent\n });\n let comments_content_html = parseDomForHtml(comments_html, '.tab-bd||#comment-list-wrapper&&Html');\n let comments_content_html_array = parseDomForArray(comments_content_html, '#hot-comments||#new_score&&.comment-item');\n for (let i = 0; i < comments_content_html_array.length; i++) {\n let commentHtmlItem = comments_content_html_array[i];\n let content = parseDomForHtml(commentHtmlItem, 'p&&Html');\n try {\n if (/<\\/span>[\\s\\S]*?(<span class=\"[\\s\\S]*?full\">[\\s\\S]*?<\\/span>)/.test(content) === true) {\n content = RegExp.$1;\n }\n } catch (e) {\n content = parseDomForHtml(commentHtmlItem, 'p&&Html');\n }\n let watchStatus = parseDomForHtml(commentHtmlItem, '.comment-info&&Text');\n if (watchStatus.indexOf(\"看过\")) watchStatus = '看过';\n else if (watchStatus.indexOf(\"想看\")) watchStatus = '想看';\n let ratingText = '';\n try {\n ratingText = '\\t' + getRatingText(parseDomForHtml(commentHtmlItem, '.comment-info&&.rating&&title'))\n } catch (e) { }\n let meta = getAuthorText(parseDomForHtml(commentHtmlItem, '.comment-info&&a&&Text'))\n + '\\t'\n + getGreyText(watchStatus)\n + ratingText\n + '\\t'\n + getGreyText(parseDomForHtml(commentHtmlItem, '.comment-info&&span[class^=comment-time]&&Text'));\n dContent = content + '<br>' + getCommentMeta(meta);\n d.push({\n title: dContent\n .replace(/<a class=\"source-icon\"[\\s\\S]*?<\\/a>/g, '')\n .replace(/\\(<a href=\"javascript:;\"[\\s\\S]*?>展开<\\/a>\\)/g, '')\n });\n if (i < comments_content_html_array.length - 1) {\n d.push({\n col_type: 'line'\n })\n }\n }\n for (let i = 0; i < line_model; i++) {\n d.push({\n col_type: line_type_model\n })\n }\n} catch (e) { }\n\n/**\n * 影评/书评\n */\ntry {\n let reviews_html = parseDomForHtml(html, '#reviews-wrapper&&Html');\n let reviews_title = getBigText(getGreyText(\n parseDomForHtml(reviews_html, 'h2&&Html')\n .replace('href=\"reviews\"', 'href=\"' + mUrl + 'reviews\"')\n .replace(/(.*?的)|(· · · · · ·)/g, '')\n ));\n dContent = reviews_title;\n d.push({\n title: dContent\n });\n let reviews_content_html = parseDomForHtml(reviews_html, 'div[class^=review-list]&&Html');\n let reviews_content_html_array = reviews_content_html.match(/<div class=\"main review-item\"[\\s\\S]*?<\\/div>/g);\n for (let i = 0; i < reviews_content_html_array.length; i++) {\n let reviewHtmlItem = reviews_content_html_array[i];\n let contentHtml = parseDomForHtml(reviewHtmlItem, '.main-bd&&Html');\n let reviewTitle = parseDomForHtml(contentHtml, 'h2&&Html');\n let reviewUrl = parseDomForHtml(reviewTitle, 'a&&href');\n let reviewRuleUrl = 'base64://' + base64Encode(reviewUrl + '#noHistory#' + reviewRule);\n reviewTitle = reviewTitle.replace(reviewUrl, reviewRuleUrl);\n let content = getTitleText(reviewTitle)\n + '<br>'\n + parseDomForHtml(contentHtml, '.review-short&&.short-content&&Html')\n + ' <small><a href=\"' + reviewRuleUrl + '\">[查看全文]</a></small>'\n ;\n let ratingText = '';\n try {\n ratingText = '\\t' + getRatingText(parseDomForHtml(reviewHtmlItem, '.main-hd&&.main-title-rating&&title'))\n } catch (e) { }\n let meta = getAuthorText(parseDomForHtml(reviewHtmlItem, '.main-hd&&.name&&Text'))\n + ratingText\n + '\\t'\n + getGreyText(parseDomForHtml(reviewHtmlItem, '.main-hd&&.main-meta&&Text'));\n let responseHtml = '';\n let feedback = '';\n try{\n if (/(<a href=\"http[\\s\\S]*?class=\"reply[\\s\\S]*?<\\/a>)/.test(reviewHtmlItem) === true) responseHtml = RegExp.$1;\n feedback = getGreyText('👍🏻' + parseDomForHtml(reviewHtmlItem, '.action&&.action-btn.up&&Text')\n + '\\t'\n + '👎🏻' + parseDomForHtml(reviewHtmlItem, '.action&&.action-btn.down&&Text')\n + '\\t'\n + responseHtml\n );\n } catch (e) { }\n dContent = content\n + '<br>'\n + getCommentMeta(meta)\n + (feedback === '' ?\n ''\n : ('<br>' + getCommentMeta(feedback))\n );\n d.push({\n title: dContent\n .replace(/<a class=\"source-icon\"[\\s\\S]*?<\\/a>/g, '')\n .replace(/\\([\\s\\S][\\r\\n]<a href=\"javascript:;\"[\\s\\S]*?title=\"展开\">展开<\\/a>\\)/g, '')\n .replaceWithCallback(/(<p class=\"spoiler-tip\">(.*?)<\\/p>)/g,\n '<blockquote class=\"spoiler-tip\">{有剧透}</blockquote>',\n function (source, searchValue, replaceValue) {\n let returnValue = source;\n if (searchValue.test(source) === true) {\n let replaceText = RegExp.$2;\n replaceText = replaceText === '' ? RegExp.$1 : replaceValue.replace('{有剧透}', replaceText);\n returnValue = source.replace(RegExp.$1, replaceText)\n }\n return returnValue;\n })\n });\n if (i < reviews_content_html_array.length - 1) {\n d.push({\n col_type: 'line'\n })\n }\n }\n} catch (e) { }\n\nres.data = d;\nsetHomeResult(res);","sdetail_col_type":"rich_text","sdetail_find_rule":"*","ua":"pc","preRule":"/**\n * 是否开启视界搜,开启后点击第一项即可使用\n *\n * 若不开启则点击为查看原文\n *\n * 开启/1 不开启/0\n */\nlet openHikerSearch = 1;\n// desc 描述的三行中每行的最大长度\nlet descLineMaxLen = 25;\n// 评论用户颜色\nlet userColor = \"#2979FF\";\n// 模块的间距\nlet line_model = 1;\n// 模块间距类型(适配以后可能会有的无边距线)\nlet line_type_model = 'line_blank';\n/**\n * 搜索模式\n *\n * 0: \"hiker://search?s=测试,将会打开搜索弹窗,自动填充搜索的关键词“测试”,由用户自己选择分组和规则后搜索\",\n * 1: \"hiker://search?s=测试&group=②影搜,将会打开搜索弹窗,自动填充搜索的关键词“测试”并且自动切换分组为“②影搜”,用户可切换分组和规则\",\n * 2: \"hiker://search?s=测试&rule=海阔视界,将会直接跳转搜索结果界面,自动选择标题为“海阔视界”的规则进行搜索,并且该界面不可切换别的规则\",\n * 3: \"hiker://search?s=测试&rule=海阔视界&simple=false,将会自动填充搜索的关键词“测试”,并且自动切换分组为“①推荐”、自动选中标题为“海阔视界”的规则,用户可切换分组和规则,并自动开始搜索\"\n */\nlet searchMode = 0;\n// 搜索分组\nlet searchGroup = '';\n// 搜索规则\nlet searchRule = '';\n\n/**\n * 以下完全不需要使用者配置,如看不懂代码请勿乱动\n */\nlet searchValues = [\n '',\n searchGroup === '' ? '' : '&group=' + searchGroup,\n searchRule === '' ? '' : '&rule=' + searchRule,\n searchRule === '' ? '' : '&rule=' + searchRule + '&simple=false'\n];\nlet searchValue = searchValues[searchMode];\nputVar2('db_open_hiker_search', openHikerSearch.toString());\nputVar2('db_desc_line_max_len', descLineMaxLen.toString());\nputVar2('db_user_color', userColor);\nputVar2('db_line_model', line_model.toString());\nputVar2('db_line_type_model', line_type_model);\nputVar2('db_search_value', searchValue);"}
同求