xiaomianao666

小程序:豆瓣新版.D

Dec 2nd, 2021
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@豆瓣新版.D@eyJmaXJzdEhlYWRlciI6ImNsYXNzIiwibGFzdF9jaGFwdGVyX3J1bGUiOiIiLCJ0aXRsZSI6IuixhueTo+aWsOeJiC5EIiwiYXV0aG9yIjoiKG/LmOKXocuYbykmUmVib3JuIiwidXJsIjoiaHR0cHM6Ly9tb3ZpZS5kb3ViYW4uY29tL2ovbmV3X3NlYXJjaF9zdWJqZWN0cz9yYW5nZT0wLDEwJnN0YXJ0PWZ5cGFnZUAtMUAqMjBAJnRhZ3M9ZnljbGFzcyZmeXNvcnQmZnlhcmVhJmZ5eWVhciIsInZlcnNpb24iOjEwLCJjb2xfdHlwZSI6Im1vdmllXzMiLCJjbGFzc19uYW1lIjoi5YWo6YOoJueUteW9sSbnlLXop4bliacm57u86Im6JuWKqOa8qybnuqrlvZXniYcm55+t54mHIiwiY2xhc3NfdXJsIjoiJueUteW9sSbnlLXop4bliacm57u86Im6JuWKqOa8qybnuqrlvZXniYcm55+t54mHIiwiYXJlYV9uYW1lIjoi5YWo6YOoJuS4reWbveWkp+mZhibnvo7lm70m5Lit5Zu96aaZ5rivJuS4reWbveWPsOa5vibml6XmnKwm6Z+p5Zu9JuiLseWbvSbms5Xlm70m5b635Zu9JuaEj+Wkp+WIqSbopb/nj63niZkm5Y2w5bqmJuazsOWbvSbkv4TnvZfmlq8m5LyK5pyXJuWKoOaLv+WkpybmvrPlpKfliKnkupom54ix5bCU5YWwJueRnuWFuCblt7Topb8m5Li56bqmIiwiYXJlYV91cmwiOiJjb3VudHJpZXM9JmNvdW50cmllcz3kuK3lm73lpKfpmYYmY291bnRyaWVzPee+juWbvSZjb3VudHJpZXM95Lit5Zu96aaZ5rivJmNvdW50cmllcz3kuK3lm73lj7Dmub4mY291bnRyaWVzPeaXpeacrCZjb3VudHJ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aXRsZSArICcjbm9IaXN0b3J5IydcbiAgfTtcbn0pO1xuXG5zZXRIb21lUmVzdWx0KHsgZGF0YTogZGF0YSB9KTtcblxufSBjYXRjaCAoZSkge1xuICAgIGxldCByZXN1bHQgPSB7fTtcbiAgICBsZXQgZXJyb3JUaXRsZSA9ICfigJzigJzigJ3igJ08Zm9udCBjb2xvcj1cImdyZXlcIj4nICsgJ+aaguaXoOWGheWuue+8jOivt+eojeWAmeWGjeivlScgKyAnPC9mb250Pic7XG4gICAgbGV0IGVycm9yRGVzYyA9ICcnO1xuICAgIHRyeSB7XG4gICAgICAgICByZXN1bHQgPSBKU09OLnBhcnNlKGdldFJlc0NvZGUoKSk7XG4gICAgfSBjYXRjaCAoZSkgeyB9XG4gICAgaWYgKHJlc3VsdC5tc2cgIT0gbnVsbCAmJiByZXN1bHQubXNnICE9PSAnJykge1xuICAgICAgICAgZXJyb3JUaXRsZSA9ICfigJzigJwnICsgcmVzdWx0Lm1zZyArICfigJ3igJ0nO1xuICAgICAgICAgZXJyb3JEZXNjID0gJ+aPkOekuu+8muS5n+iuuOWPquaYr+acjeWKoeWZqOaJk+S6huS4quebueetieetieWwseS8muWlvei1t+adpeS6hu+8n1xcbuaPkOekuu+8muS5n+iuuOS9oOWPr+S7peivleivleaQnOe0ou+8n+acieaDiuWWnOWTpu+9nic7XG4gICAgfVxuXG4gICAgc2V0SG9tZVJlc3VsdCh7XG4gICAgICAgICAgZGF0YTogW3tcbiAgICAgICAgICAgICAgdGl0bGU6IGVycm9yVGl0bGUsXG4gICAgICAgICAgICAgIGRlc2M6IGVycm9yRGVzYyxcbiAgICAgICAgICAgICAgdXJsOiB0ZXN0TW9kZSA9PT0gMSA/ICdodHRwczovL20uZG91YmFuLmNvbS9zdWJqZWN0LzI2MzU3MzA3LycgOiAnJyxcbiAgICAgICAgICAgICAgY29sX3R5cGU6ICd0ZXh0X2NlbnRlcl8xJ1xuICAgICAgICAgIH1dXG4gICAgfSk7XG59XG5cbi8qIHYwLj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BjYXRjaCAoZSkgeyB9XG5cbi8qKlxuICog6LGG55Oj6K+E5YiGXG4gKi9cbnRyeSB7XG4gICAgbGV0IHJhdGluZyA9IHBhcnNlRG9tRm9ySHRtbChodG1sLCAnI2ludGVyZXN0X3NlY3RsJiZIdG1sJyk7XG4gICAgbGV0IHJhdGluZ190aXRsZSA9ICcnO1xuICAgIGxldCByYXRpbmdfY29udGVudCA9ICcnO1xuICAgIGxldCByYXRpbmdfc2hvdyA9IHBhcnNlRG9tRm9ySHRtbChyYXRpbmcsICcucmF0aW5nX3NlbGYmJmRpdltjbGFzc149cmF0aW5nX3JpZ2h0XSYmVGV4dCcpO1xuICAgIGlmIChyYXRpbmdfc2hvdyA9PT0gJ+WwmuacquaSreWHuicgfHwgcmF0aW5nX3Nob3cgPT09ICflsJrmnKrkuIrmmKAnKSB7XG4gICAgICAgIHJhdGluZ19jb250ZW50ICs9IChnZXRCaWdUZXh0KCfosYbnk6Por4TliIYnKSArICcgJyArIGdldFNtYWxsVGV4dChnZXRHcmV5VGV4dChyYXRpbmdfc2hvdykpKTtcbiAgICB9IGVsc2Uge1xuICAgICAgICBsZXQgcmF0aW5nVGV4dCA9IHBhcnNlRG9tRm9ySHRtbChyYXRpbmcsICcucmF0aW5nX3NlbGYmJnN0cm9uZyYmVGV4dCcpO1xuICAgICAgICByYXRpbmdfY29udGVudCArPSBnZXRCaWdUZXh0KCfosYbnk6Por4TliIYgJ1xuICAgICAgICAgICAgKyAocmF0aW5nVGV4dCA9PT0gJydcbiAgICAgICAgICAgICAgICA/IGdldFNtYWxsVGV4dChnZXRHcmV5VGV4dCgn5pqC5peg6K+E5YiGJykpXG4gICAgICAgICAgICAgICAgOiAoZ2V0VGl0bGVUZXh0KHJhdGluZ1RleHQpICsgJyDliIYnKSlcbiAgICAgICAgICAgICsgJzxicj4nKTtcbiAgICAgICAgbGV0IHJhdGluZ19hcnJheSA9IFtdO1xuICAgICAgICBpZiAobVVybC5pbmRleE9mKCdib29rJykgPiAtMSkge1xuICAgICAgICAgICAgcmF0aW5nX2FycmF5ID0gcmF0aW5nLm1hdGNoKC88c3BhbiBjbGFzcz1cInN0YXJzW1xcc1xcU10qPyg/PTxicj4pL2cpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgcmF0aW5nX2FycmF5ID0gcGFyc2VEb21Gb3JBcnJheShyYXRpbmcsICcucmF0aW5ncy1vbi13ZWlnaHQmJi5pdGVtJyk7XG4gICAgICAgIH1cbiAgICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCByYXRpbmdfYXJyYXkubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgIGxldCByYXRpbmdJdGVtID0gcmF0aW5nX2FycmF5W2ldO1xuICAgICAgICAgICAgaWYgKGkgPT09IDApIHJhdGluZ19jb250ZW50ICs9ICfwn4yfICc7XG4gICAgICAgICAgICBpZiAoaSA9PT0gMikgcmF0aW5nX2NvbnRlbnQgKz0gJzxicj7irZAgJztcbiAgICAgICAgICAgIGlmIChpID09PSAzKSByYXRpbmdfY29udGVudCArPSAnPGJyPuKYhO+4jyAnO1xuICAgICAgICAgICAgcmF0aW5nX2NvbnRlbnQgKz0gZ2V0Q29sb3JUZXh0KHBhcnNlRG9tRm9ySHRtbChyYXRpbmdJdGVtLCAnVGV4dCcpLCByYXRpbmdDb2xvcnNbaV0pICsgJ1xcdFxcdCc7XG4gICAgICAgIH1cbiAgICB9XG4gICAgbGV0IGRDb250ZW50ID0gcmF0aW5nX3RpdGxlICsgKHJhdGluZ190aXRsZSA9PT0gJycgPyAnJyA6ICc8YnI+JykgKyByYXRpbmdfY29udGVudDtcbiAgICBkLnB1c2goe1xuICAgICAgICB0aXRsZTogZENvbnRlbnRcbiAgICB9KTtcbiAgICBmb3IgKGxldCBpID0gMDsgaSA8IGxpbmVfbW9kZWw7IGkrKykge1xuICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgY29sX3R5cGU6IGxpbmVfdHlwZV9tb2RlbFxuICAgICAgICB9KVxu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bGV0IHJhdGluZ1RleHQgPSAnJztcbiAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgIHJhdGluZ1RleHQgPSAnXFx0JyArIGdldFJhdGluZ1RleHQocGFyc2VEb21Gb3JIdG1sKGNvbW1lbnRIdG1sSXRlbSwgJy5jb21tZW50LWluZm8mJi5yYXRpbmcmJnRpdGxlJykpXG4gICAgICAgIH0gY2F0Y2ggKGUpIHsgfVxuICAgICAgICBsZXQgbWV0YSA9IGdldEF1dGhvclRleHQocGFyc2VEb21Gb3JIdG1sKGNvbW1lbnRIdG1sSXRlbSwgJy5jb21tZW50LWluZm8mJmEmJlRleHQnKSlcbiAgICAgICAgICAgICsgJ1xcdCdcbiAgICAgICAgICAgICsgZ2V0R3JleVRleHQod2F0Y2hTdGF0dXMpXG4gICAgICAgICAgICArIHJhdGluZ1RleHRcbiAgICAgICAgICAgICsgJ1xcdCdcbiAgICAgICAgICAgICsgZ2V0R3JleVRleHQocGFyc2VEb21Gb3JIdG1sKGNvbW1lbnRIdG1sSXRlbSwgJy5jb21tZW50LWluZm8mJnNwYW5bY2xhc3NePWNvbW1lbnQtdGltZV0mJlRleHQnKSk7XG4gICAgICAgIGRDb250ZW50ID0gY29udGVudCArICc8YnI+JyArIGdldENvbW1lbnRNZXRhKG1ldGEpO1xuICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgdGl0bGU6IGRDb250ZW50XG4gICAgICAgICAgICAgICAgLnJlcGxhY2UoLzxhIGNsYXNzPVwic291cmNlLWljb25cIltcXHNcXFNdKj88XFwvYT4vZywgJycpXG4gICAgICAgICAgICAgICAgLnJlcGxhY2UoL1xcKDxhIGhyZWY9XCJqYXZhc2NyaXB0OjtcIltcXHNcXFNdKj8+5bGV5byAPFxcL2E+XFwpL2csICcnKVxuICAgICAgICB9KTtcbiAgICAgICAgaWYgKGkgPCBjb21tZW50c19jb250ZW50X2h0bWxfYXJyYXkubGVuZ3RoIC0gMSkge1xuICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ2xpbmUnXG4gICAgICAgICAgICB9KVxuICAgICAgICB9XG4gICAgfVxuICAgIGZvciAobGV0IGkgPSAwOyBpIDwgbGluZV9tb2RlbDsgaSsrKSB7XG4gICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICBjb2xfdHlwZTogbGluZV90eXBlX21vZGVsXG4gICAgICAgIH0pXG4gICAgfVxufSBjYXRjaCAoZSkgeyB9XG5cbi8qKlxuICog5b2x6K+EL+S5puivhFxuICovXG50cnkge1xuICAgIGxldCByZXZpZXdzX2h0bWwgPSBwYXJzZURvbUZvckh0bWwoaHRtbCwgJyNyZXZpZXdzLXdyYXBwZXImJkh0bWwnKTtcbiAgICBsZXQgcmV2aWV3c190aXRsZSA9IGdldEJpZ1RleHQoZ2V0R3JleVRleHQoXG4gICAgICAgIHBhcnNlRG9tRm9ySHRtbChyZXZpZXdzX2h0bWwsICdoMiYmSHRtbCcpXG4gICAgICAgICAgICAucmVwbGFjZSgnaHJlZj1cInJldmlld3NcIicsICdocmVmPVwiJyArIG1VcmwgKyAncmV2aWV3c1wiJylcbiAgICAgICAgICAgIC5yZXBsYWNlKC8oLio/55qEKXwowrcgwrcgwrcgwrcgwrcgwrcpL2csICcnKVxuICAgICkpO1xuICAgIGRDb250ZW50ID0gcmV2aWV3c190aXRsZTtcbiAgICBkLnB1c2goe1xuICAgICAgICB0aXRsZTogZENvbnRlbnRcbiAgICB9KTtcbiAgICBsZXQgcmV2aWV3c19jb250ZW50X2h0bWwgPSBwYXJzZURvbUZvckh0bWwocmV2aWV3c19odG1sLCAnZGl2W2NsYXNzXj1yZXZpZXctbGlzdF0mJkh0bWwnKTtcbiAgICBsZXQgcmV2aWV3c19jb250ZW50X2h0bWxfYXJyYXkgPSByZXZpZXdzX2NvbnRlbnRfaHRtbC5tYXRjaCgvPGRpdiBjbGFzcz1cIm1haW4gcmV2aWV3LWl0ZW1cIltcXHNcXFNdKj88XFwvZGl2Pi9nKTtcbiAgICBmb3IgKGxldCBpID0gMDsgaSA8IHJldmlld3NfY29udGVudF9odG1sX2FycmF5Lmxlbmd0aDsgaSsrKSB7XG4gICAgICAgIGxldCByZXZpZXdIdG1sSXRlbSA9IHJldmlld3NfY29udGVudF9odG1sX2FycmF5W2ldO1xuICAgICAgICBsZXQgY29udGVudEh0bWwgPSBwYXJzZURvbUZvckh0bWwocmV2aWV3SHRtbEl0ZW0sICcubWFpbi1iZCYmSHRtbCcpO1xuICAgICAgICBsZXQgcmV2aWV3VGl0bGUgPSBwYXJzZURvbUZvckh0bWwoY29udGVudEh0bWwsICdoMiYmSHRtbCcpO1xuICAgICAgICBsZXQgcmV2aWV3VXJsID0gcGFyc2VEb21Gb3JIdG1sKHJldmlld1RpdGxlLCAnYSYmaHJlZicpO1xuICAgICAgICBsZXQgcmV2aWV3UnVsZVVybCA9ICdiYXNlNjQ6Ly8nICsgYmFzZTY0RW5jb2RlKHJldmlld1VybCArICcjbm9IaXN0b3J5IycgKyByZXZpZXdSdWxlKTtcbiAgICAgICAgcmV2aWV3VGl0bGUgPSByZXZpZXdUaXRsZS5yZXBsYWNlKHJldmlld1VybCwgcmV2aWV3UnVsZVVybCk7XG4gICAgICAgIGxldCBjb250ZW50ID0gZ2V0VGl0bGVUZXh0KHJldmlld1RpdGxlKVxuICAgICAgICAgICAgKyAnPGJyPidcbiAgICAgICAgICAgICsgcGFyc2VEb21Gb3JIdG1sKGNvbnRlbnRIdG1sLCAnLnJldmlldy1zaG9ydCYmLnNob3J0LWNvbnRlbnQmJkh0bWwnKVxuICAgICAgICAgICAgKyAnIDxzbWFsbD48YSBocmVmPVwiJyArIHJldmlld1J1bGVVcmwgKyAnXCI+W+afpeeci+WFqOaWh108L2E+PC9zbWFsbD4nXG4gICAgICAgIDtcbiAgICAgICAgbGV0IHJhdGluZ1RleHQgPSAnJztcbiAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgIHJhdGluZ1RleHQgPSAnXFx0JyArIGdldFJhdGlu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ICAgICAgICAgICk7XG4gICAgICAgIH0gY2F0Y2ggKGUpIHsgfVxuICAgICAgICBkQ29udGVudCA9IGNvbnRlbnRcbiAgICAgICAgICAgICsgJzxicj4nXG4gICAgICAgICAgICArIGdldENvbW1lbnRNZXRhKG1ldGEpXG4gICAgICAgICAgICArIChmZWVkYmFjayA9PT0gJycgP1xuICAgICAgICAgICAgICAgICAgICAnJ1xuICAgICAgICAgICAgICAgICAgICA6ICgnPGJyPicgKyBnZXRDb21tZW50TWV0YShmZWVkYmFjaykpXG4gICAgICAgICAgICApO1xuICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgdGl0bGU6IGRDb250ZW50XG4gICAgICAgICAgICAgICAgLnJlcGxhY2UoLzxhIGNsYXNzPVwic291cmNlLWljb25cIltcXHNcXFNdKj88XFwvYT4vZywgJycpXG4gICAgICAgICAgICAgICAgLnJlcGxhY2UoL1xcKFtcXHNcXFNdW1xcclxcbl08YSBocmVmPVwiamF2YXNjcmlwdDo7XCJbXFxzXFxTXSo/dGl0bGU9XCLlsZXlvIBcIj7lsZXlvIA8XFwvYT5cXCkvZywgJycpXG4gICAgICAgICAgICAgICAgLnJlcGxhY2VXaXRoQ2FsbGJhY2soLyg8cCBjbGFzcz1cInNwb2lsZXItdGlwXCI+KC4qPyk8XFwvcD4pL2csXG4gICAgICAgICAgICAgICAgICAgICc8YmxvY2txdW90ZSBjbGFzcz1cInNwb2lsZXItdGlwXCI+e+acieWJp+mAj308L2Jsb2NrcXVvdGU+JyxcbiAgICAgICAgICAgICAgICAgICAgZnVuY3Rpb24gKHNvdXJjZSwgc2VhcmNoVmFsdWUsIHJlcGxhY2VWYWx1ZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHJldHVyblZhbHVlID0gc291cmNlO1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHNlYXJjaFZhbHVlLnRlc3Qoc291cmNlKSA9PT0gdHJ1ZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgI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