花瓣
https://api.huaban.com/
分享者: logique (204)发布时间: 2023/09/18
该用户很懒,什么介绍也没有写!
{ "articleStyle": 2, "customOrder": -24383, "enableJs": true, "enabled": true, "enabledCookieJar": true, "lastUpdateTime": 0, "loadWithBaseUrl": true, "ruleArticles": "pins[?(!( @.board.title =~ \/.*(?:营销|元素|其他图片|文|教程|ps|Adobe|全家桶|首页|广告|海报|美容|图标|教育|纹理|详情|免|排版|我的|学习|自拍).*\/i || @.board.category_id in ['web_app_icon','design','architecture','industrial_design','home','desire','data_presentation','tips','education','other','']))]", "ruleContent": "{{$.pin.file.key##\\n##\\$}}${{$..pins..file.key##\\n##\\$}}\r\n\r\n<js>\r\nli='\\n'\r\nlist=result.split('$')\r\nfor(i in list){\r\n\t\tli += '<li><img src=\"https:\/\/gd-hbimg.huaban.com\/'+list[i]+'\"><\/li>\\n'\r\n\t}\r\n\r\n<\/js>\r\n\r\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0\">\n<title>{{$.board.title}}<\/title>\r\n<ul id=\"box\">\r\n{{result}}\r\n<\/ul>\r\n<link rel=\"stylesheet\" href=\"https:\/\/cdn.bootcdn.net\/ajax\/libs\/viewerjs\/1.10.1\/viewer.min.css\">\r\n<script src=\"https:\/\/cdn.bootcdn.net\/ajax\/libs\/viewerjs\/1.10.1\/viewer.min.js\"><\/script>\n<script src=\"http:\/\/lib.sinaapp.com\/js\/jquery\/2.0.2\/jquery-2.0.2.min.js\"><\/script>\r\n<script>\nvar i = 1 ;\n$(document).ready(function () {\r\nroot = document.getElementById('box');\r\n\/\/查看大图插件\r\nnew Viewer(root,{title:false,interval:3000});\nvar url = '{{baseUrl}}\/relatedboards';\nfetchHtml(3, url)\n });\nfunction fetchHtml(i, url) {\r\n nurl = url + \"?limit=\" + i;\r\n $.ajax({\r\n url: nurl,\r\n dataType: 'json',\r\n success: function (json) {\r\n for (var k = 0; k < json.boards.length; k++) {\r\n for (var q = 0; q < json.boards[k].pins.length; q++) {\r\n $('#box').append('<li><img src=\\\"https:\/\/gd-hbimg.huaban.com\/' + json.boards[k].pins[q].file.key + '\\\"><\/li>\\n');\r\n }\r\n }\r\n box.viewer.update();\r\n },\r\n error: function (xhr) { }\r\n });\r\n }\r\n<\/script>", "ruleDescription": "", "ruleImage": "https:\/\/gd-hbimg.huaban.com\/{{$.file.key}}", "ruleLink": "https:\/\/api.huaban.com\/pins\/{{$.pin_id}}", "ruleNextPage": "@js:\nresult = '{{baseUrl}}'.replace(\/\\&max=\\d{7,}$\/,'')+'&max={{$.pins[-1].pin_id}}'", "rulePubDate": "{{java.timeFormatUTC(java.getString(\"created_at\")*1000,\"YYYY-MM-dd HH:mm:ss\",8)}}", "ruleTitle": "{{$.board.title}}❤️{{$..board.like_count}}", "singleUrl": false, "sortUrl": "推荐::\/discovery\/?limit=40\n插画::\/discovery\/illustration?limit=20\n热门::\/popular?limit=40\n最新::\/all?limit=40\n搜索::\/search\/file?sort=created_at&limit=62&text={{source.getVariable().length()<1? source.setVariable(\"ai\") : source.getVariable() }}&page={{page}}&position=search_pin{{java.toast(\"第\"+page+\"页\")}}\n极客::\/discovery\/geek?limit=40\n美图::\/discovery\/quotes?limit=40\n美女::\/discovery\/beauty?limit=40\r\n搞笑::\/discovery\/funny?limit=40\r\n动漫::\/discovery\/anime?limit=40\r\n摄影::\/discovery\/photography?limit=40\r\n人文艺术::\/discovery\/art?limit=40\r\n游戏::\/discovery\/games?limit=40\r\n手工::\/discovery\/diy_crafts?limit=40\r\n运动::\/discovery\/sports?limit=40\r\n电影::\/discovery\/film_music_books?limit=40", "sourceIcon": "https:\/\/api.huaban.com\/favicon.ico", "sourceName": "花瓣", "sourceUrl": "https:\/\/api.huaban.com\/", "style": "\/*标题相关*\/\nh3{text-align:center}\nh6{margin-bottom:0}\n* {\n\tmargin: 0;\n\tpadding: 0\n}\nul {\n\tfont-size: 0;\n\theight: 100%;\n\toverflow-y: scroll\n}\nli {\n\tlist-style: none;\n\ttext-align: center\n}\nimg {\n\twidth: 100%;\n\theight: auto\n}", "variableComment": "搜索关键字" }