xiaomianao666

小程序:视界|世界

Jun 10th, 2022
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序,https://pasteme.tyrantg.com/xxxxxx/swc6f7dsdowixudg
  2.  
  3. 小程序:简单RSS订阅¥home_rule_v2¥base64://@视界|世界@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi6KeG55WMfOS4lueVjCIsImF1dGhvciI6IiIsInVybCI6Imhpa2VyOi8vZW1wdHkjIyNmeUFsbCIsInZlcnNpb24iOjAsImNvbF90eXBlIjoiaWNvbl8yIiwiY2xhc3NfbmFtZSI6IiIsInR5cGUiOiJsaXZlIiwiY2xhc3NfdXJsIjoiIiwiYXJlYV9uYW1lIjoiIiwiYXJlYV91cmwiOiIiLCJzb3J0X25hbWUiOiIiLCJ5ZWFyX25hbWUiOiIiLCJzb3J0X3VybCI6IiIsInllYXJfdXJsIjoiIiwiZmluZF9ydWxlIjoianM6XG52YXIgZGF0YSA9IFtdO1xuZGF0YS5wdXNoKHtcbiAgICB0aXRsZTogXCLwn5SOXCIsXG4gICAgdXJsOiBcIidoaWtlcjovL3NlYXJjaD9ydWxlPVwiICsgTVlfUlVMRS50aXRsZSArIFwiJnM9JytpbnB1dFwiLFxuICAgIGRlc2M6IFwi5pCc57Si6aKR6YGTXCIsXG4gICAgY29sX3R5cGU6IFwiaW5wdXRcIlxufSlcbnZhciBzMiA9ICdodHRwczovL2FwaS5peGlhb3dhaS5jbi9ncWFwaS9ncWFwaS5waHA/Z2xpZGVDYWNoZT1za2lwJyArICcjJyArIG5ldyBEYXRlKCkuZ2V0VGltZSgpO1xuLypmdW5jdGlvbiBnZXRUaXRsZUFuZERlc2MoKSB7XG4gICAgbGV0IGhpdG9rb3RvID1bXTtcbiAgICBsZXQganNvbiA9IEpTT04ucGFyc2UoZmV0Y2goJ2h0dHBzOi8vdjEuaGl0b2tvdG8uY24vP2M9aScsIHt9KSk7XG4gICAgbGV0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ZSMnXG4gICAgfSBlbHNlIGlmICgvKGh1eWEuY29tKS8udGVzdCh1KSkge1xuICAgICAgICByZXR1cm4gdVxuICAgIH1cbiAgICByZXR1cm4gJCh1KS5sYXp5UnVsZSgoKSA9PiB7XG4gICAgICAgIHRyeSB7XG4gICAgICAgICAgICByZXR1cm4gSlNPTi5wYXJzZShmZXRjaChpbnB1dCwge1xuICAgICAgICAgICAgICAgIGhlYWRlcnM6IHtcbiAgICAgICAgICAgICAgICAgICAgJ1VzZXItQWdlbnQnOiAnTW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCknXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICByZWRpcmVjdDogZmFsc2UsXG4gICAgICAgICAgICAgICAgd2l0aEhlYWRlcnM6IHRydWVcbiAgICAgICAgICAgIH0pKS5oZWFkZXJzLmxvY2F0aW9uWzBdICsgJyNpc1ZpZGVvPXRydWUjJ1xuICAgICAgICB9IGNhdGNoIChlKSB7XG4gICAgICAgICAgICBsb2coZS50b1N0cmluZygpKVxuICAgICAgICAgICAgcmV0dXJuIFwidG9hc3Q6Ly/popHpgZPmupDku6XlpLHmlYjvvIzmm7TmjaLlhbblroPpopHpgZPop4LnnItcIlxuICAgICAgICB9XG4gICAgfSlcbn1cbmxldCBwYXRoID0gJ2hpa2VyOi8vZmlsZXMv5Yig6Zmk5pu05paw6KeG55WM5LiW55WML+inhueVjHzkuJbnlYwnO1xuY29uc3Qge1xuICAgIHJlbmRlckxpdmVEYXRhXG59ID0gJC5yZXF1aXJlKFwiaGlrZXI6Ly9wYWdlL3Rvb2xcIik7XG50cnkge1xuICAgIGxldCBpdGVtcyA9IHJlbmRlckxpdmVEYXRhKHBhdGgsIG51bGwsIGZhbHNlKTtcbiAgICAvL2xvZyhpdGVtcyk7XG4gICAgbGV0IGdyb3VwcyA9IE9iamVjdC5rZXlzKGl0ZW1zKTtcbiAgICBncm91cHMucHVzaChncm91cHMuc3BsaWNlKGdyb3Vwcy5pbmRleE9mKDApLCAxKVswXSk7XG4gICAgbGV0IHNlbGVjdEdyb3VwID0gZ2V0TXlWYXIoJ3NlbGVjdEdyb3VwJywgZ3JvdXBzWzBdKTtcbiAgICBpZiAoc2VsZWN0R3JvdXAgPT0gXCJcIikgc2VsZWN0R3JvdXAgPSBncm91cHNbMF07XG4gICAgZ3JvdXBzLmZvckVhY2goKGdyb3VwKSA9PiB7XG4gICAgICAgIGlmIChncm91cCkge1xuICAgICAgICAgICAgZGF0YS5wdXNoKHtcbiAgICAgICAgICAgICAgICB0aXRsZTogZ3JvdXAgPT0gc2VsZWN0R3JvdXAgPyBcIuKAnOKAnOKAneKAnTxzcGFuIHN0eWxlPSdjb2xvcjogIzE5Qjg5RCc+XCIgKyBncm91cCArIFwiPC9zcGFuPlwiIDogZ3JvdXAsXG4gICAgICAgICAgICAgICAgdXJsOiAkKCcjbm9Mb2FkaW5nIycpLmxhenlSdWxlKChncm91cCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBwdXRNeVZhcignc2VsZWN0R3JvdXAnLCBncm91cCk7XG4gICAgICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKCk7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiAnaGlrZXI6Ly9lbXB0eSdcbiAgICAgICAgICAgICAgICB9LCBncm91cCksXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6ICdzY3JvbGxfYnV0dG9uJyxcbiAgICAgICAgICAgICAgICBleHRyYToge1xuICAgICAgICAgICAgICAgICAgICBsaW5lVmlzaWJsZTogZmFsc2VcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KVxuICAgICAgICB9XG4gICAgfSlcbiAgICBmb3IgKGxldCB0aXRsZSBpbiBpdGVtc1tzZWxlY3RHcm91cF0pIHtcbiAgICAgICAgbGV0IHVzID0gaXRlbXNbc2VsZWN0R3JvdXBdW3RpdGxlXTsgICAgICAgIFxuICAgICAgICBkYXRhLnB1c2goe1xuIC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hdGEgPSBbXTtcbmxldCBsYXp5UnVsZSA9IHUgPT4ge1xuICAgIGlmICh1LnN0YXJ0c1dpdGgoXCJ7XCIpKSB7XG4gICAgICAgIHJldHVybiB1O1xuICAgIH1cbiAgICBpZiAoLyhydG1wfHNtaWx8dHgycHxta3Z8Zmx2fG0zdTh8bXA0KS8udGVzdCh1KSkge1xuICAgICAgICByZXR1cm4gdSArICcjaXNWaWRlbz10cnVlIydcbiAgICB9IGVsc2UgaWYgKC8oaHV5YS5jb20pLy50ZXN0KHUpKSB7XG4gICAgICAgIHJldHVybiB1XG4gICAgfVxuICAgIHJldHVybiAkKHUpLmxhenlSdWxlKCgpID0+IHtcbiAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgIHJldHVybiBKU09OLnBhcnNlKGZldGNoKGlucHV0LCB7XG4gICAgICAgICAgICAgICAgaGVhZGVyczoge1xuICAgICAgICAgICAgICAgICAgICAnVXNlci1BZ2VudCc6ICdNb3ppbGxhLzUuMCAoV2luZG93cyBOVCAxMC4wOyBXaW42NDsgeDY0KSdcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHJlZGlyZWN0OiBmYWxzZSxcbiAgICAgICAgICAgICAgICB3aXRoSGVhZGVyczogdHJ1ZVxuICAgICAgICAgICAgfSkpLmhlYWRlcnMubG9jYXRpb25bMF0gKyAnI2lzVmlkZW89dHJ1ZSMnXG4gICAgICAgIH0gY2F0Y2ggKGUpIHtcbiAgICAgICAgICAgIGxvZyhlLnRvU3RyaW5nKCkpXG4gICAgICAgICAgICByZXR1cm4gXCJ0b2FzdDovL+mikemBk+a6kOS7peWkseaViFwiXG4gICAgICAgIH1cbiAgICB9KVxufVxudmFyIGtleXdvcmQgPSBNWV9VUkwuc3BsaXQoJyMjJylbMV0udG9Mb3dlckNhc2UoKTtcbmxldCBwYXRoID0gJ2hpa2VyOi8vZmlsZXMv5Yig6Zmk5pu05paw6KeG55WM5LiW55WML+inhueVjHzkuJbnlYwnO1xuY29uc3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cXG4gICAgICAgICAgICBSZWZlcmVyOiBnZXRSZWZlcmVyKHVybClcXG4gICAgICAgIH1cXG4gICAgfSk7XFxuICAgIGNvbnN0IG0zdSA9IG5ldCxcXG4gICAgICAgIG1vZGUgPSBtM3UuaW5kZXhPZignI0VYVE0zVScpID09IDAsXFxuICAgICAgICByZSA9IG1vZGUgPyAvKC4qKSwoLiopXFxcXHMqPygoPzpodHRwfHJ0bXApW14jXFxcXHNdKikvZyA6IC8oKSguKiksKCNnZW5yZSN8KD86aHR0cHxydG1wKVteI1xcXFxzXSopL2c7XFxuICAgIGxldCBpdGVtcyA9IHt9LFxcbiAgICAgICAgZ3JvdXAgPSAn5pyq5YiG57uEJztcXG4gICAgZm9yIChsZXQgaSA9IHJlLmV4ZWMobTN1KTsgaSAhPSBudWxsOyBpID0gcmUuZXhlYyhtM3UpKSB7XFxuICAgICAgICBpZiAobW9kZSkge1xcbiAgICAgICAgICAgIGdyb3VwID0gKC9ncm91cC10aXRsZT1cXFwiKC4qPylcXFwiLy5leGVjKGlbMV0pIHx8IFtudWxsLCAnJ10pWzFdO1xcbiAgICAgICAgfSBlbHNlIGlmIChpWzNdID09ICcjZ2VucmUjJykge1xcbiAgICAgICAgICAgIGdyb3VwID0gaVsyXTtcXG4gICAgICAgICAgICBjb250aW51ZTtcXG4gICAgICAgIH1cXG4gICAgICAgIGxldCB0aXRsZSA9IGlbMl0sXFxuICAgICAgICAgICAgdXJsID0gaVszXS50cmltKCk7XFxuICAgICAgICBpZiAodXJsLmluZGV4T2YoXFxcIi5waHBcXFwiKSA+IDAgfHwgdXJsLmluY2x1ZGVzKFxcXCJAbGF6eVJ1bGVcXFwiKSB8fCB1cmwuaW5jbHVkZXMoXFxcIjtcXFwiKSkge1xcbiAgICAgICAgICAgIHRpdGxlID0gdGl0bGUgKyBcXFwiIyMjXFxcIiArIG5ldyBEYXRlKCkuZ2V0VGltZSgpICsgbWQ1KHVybCk7XFxuICAgICAgICAgICAgLy9sb2coaik7XFxuICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgIC8vdXJsID0gdXJsICsgXFxcIiNpc1ZpZGVvPXRydWUjXFxcIjtcXG4gICAgICAgIH1cXG4gICAgICAgIGlmIChmaWx0ZXIgIT0gbnVsbCAmJiAhdGl0bGUuaW5jbHVkZXMoZmlsdGVyKSkge1xcbiAgICAgICAgICAgIGNvbnRpbnVlXFxuICAgICAgICB9XFxuICAgICAgICBpZiAoaXRlbXNbZ3JvdXBdKSB7XFxuICAgICAgICAgICAgaWYgKGl0ZW1zW2dyb3VwXVt0aXRsZV0pIHtcXG4gICAgICAgICAgICAgICAgaXRlbXNbZ3JvdXBdW3RpdGxlXSA9IGl0ZW1zW2dyb3VwXVt0aXRsZV0uY29uY2F0KFt1cmxdKTtcXG4gICAgICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgICAgICBpdGVtc1tncm91cF1bdGl0bGVdID0gW3VybF07XFxuICAgICAgICAgICAgfVxcbiAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICBpdGVtc1tncm91cF0gPSB7fTtcXG4gICAgICAgICAgICBpdGVtc1tncm91cF1bdGl0bGVdID0gW3VybF07XFxuICAgICAgICB9O1xcbiAgICB9XFxuICAgIHJldHVybiBpdGVtcztcXG59XFxuJC5leHBvcnRzID0ge1xcbiAgICByZW5kZXJMaXZlRGF0YTogcmVuZGVyTGl2ZURhdGEsXFxufVwifV0iLCJpY29uIjoiaHR0cHM6Ly9naW1nMi5iYWlkdS5jb20vaW1hZ2Vfc2VhcmNoL3NyYz1odHRwJTNBJTJGJTJGY2J1MDEuYWxpY2RuLmNvbSUyRmltZyUyRmliYW5rJTJGMjAxOSUyRjk4NyUyRjkyNyUyRjEyNzE0NzI5Nzg5XzI0ODk5OTU1NS5qcGcifQ==
Add Comment
Please, Sign In to add comment