Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@4kan·Q@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoiNGthbsK3USIsImF1dGhvciI6IuWPkeeyqua2guWimSIsInVybCI6Imh0dHBzOi8vd3d3LjRrYW4uY2Mvdm9kc2hvdy9meUFsbC0tLS0tLS0tZnlwYWdlLS0tLyIsInZlcnNpb24iOjAsImNvbF90eXBlIjoibW92aWVfMyIsImNsYXNzX25hbWUiOiLnlLXlvbEm55S16KeG5YmnJue7vOiJuibliqjmvKsiLCJjbGFzc191cmwiOiIxJjImMyY0IiwiYXJlYV9uYW1lIjoi5Zu95Lqn5YmnJua4r+WPsOWJpybml6Xpn6nliacm5qyn576O5YmnIiwiYXJlYV91cmwiOiIxMyYxNCYxNCYxNiIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczpcbnZhciBkID0gW11cblxudmFyIGxpc3QgPSBwYXJzZURvbUZvckFycmF5KGdldFJlc0NvZGUoKSwgJy5zdHVpLXZvZGxpc3QmJmxpJylcblxuZm9yICh2YXIgaSBpbiBsaXN0KSB7XG4gICAgZC5wdXNoKHtcbiAgICAgICAgdGl0bGU6IHBhcnNlRG9tRm9ySHRtbChsaXN0W2ldLCAnaDQmJlRleHQnKSxcbiAgICAgICAgZGVzYzogcGFyc2VEb21Gb3JIdG1sKGxpc3RbaV0sICcucGljLXRhZy1sZWZ0JiZUZXh0JyksXG4gICAgICAgIGltZzogcGFyc2VEb20obGlzdFtpXSwgJ2EmJmRhdGEtb3JpZ2luYWwnKSxcbiAgICAgICAgdXJsOiBwYXJzZURvbShsaXN0W2ldLCAnYSYmaHJlZicpKycjaW1tZXJzaXZlVGhlbWUjJ1xuICAgIH0pXG59XG5zZXRSZXN1bHQoZCkiLCJzZWFyY2hfd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ms2NjYnK3JhbmRTdHIpLnRvU3RyaW5nKClcXG4gICAgdmFyIGxlbiA9IGtleS5sZW5ndGhcXG4gICAgY29kZSA9ICcnXFxuICAgIGZvciAoaSA9IDB4MDsgaSA8IHN0cmluZy5sZW5ndGg7IGkrKykge1xcbiAgICAgICAgayA9IGkgJSBsZW47XFxuICAgICAgICBjb2RlICs9IFN0cmluZy5mcm9tQ2hhckNvZGUoc3RyaW5nLmNoYXJDb2RlQXQoaSkgXiBrZXkuY2hhckNvZGVBdChrKSlcXG4gICAgfVxcbiAgICB2YXIgdXJsID0gYmFzZTY0RGVjb2RlKGNvZGUpXFxuICAgIGlmICh1cmwubWF0Y2goL2h0bWx8bGVrYW4vKSkge1xcbiAgICAgICAgdmFyIGh0bWwgPSByZXF1ZXN0KCdodHRwczovL3Qub2pia2p4LmNvbS9tM3U4LnBocD91cmw9JyArIHVybCArICcmbmV4dD0vL3d3dy40a2FuLnR2Jywge1xcbiAgICAgICAgICAgIGhlYWRlcnM6IHtcXG4gICAgICAgICAgICAgICAgJ1JlZmVyZXInOiAnaHR0cHM6Ly93d3cuNGthbi50di8nXFxuICAgICAgICAgICAgfVxcbiAgICAgICAgfSk7XFxuICAgICAgICBpZiAoaHRtbC5pbmRleE9mKCfmo4DmtYvkuK0nKSAhPSAtMSkge1xcbiAgICAgICAgICAgIGh0bWwgPSByZXF1ZXN0KCdodHRwczovL3Qub2pia2p4LmNvbS9tM3U4LnBocD91cmw9JyArIHVybCArICcmbmV4dD0vL3d3dy40a2FuLnR2JyArICcmYnR3YWYnICsgaHRtbC5tYXRjaCgvYnR3YWYoLio/KVxcXFxcXFwiLylbMV0sIHtcXG4gICAgICAgICAgICAgICAgaGVhZGVyczoge1xcbiAgICAgICAgICAgICAgICAgICAgJ1JlZmVyZXInOiAnaHR0cHM6Ly93d3cuNGthbi50di8nXFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICB9KVxcbiAgICAgICAgfTtcXG4gICAgICAgIHZhciBwbGF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sZS5oaWtlcnZpZXcvZmlsZXMvRG9jdW1lbnRzL2NhY2hlL3ZpZGVvcy5tM3U4IycgKyB1cmxcXG5cXHRcXHRcXHQqL1xcbiAgICAgICAgICAgIHJldHVybiBwbGF5ICsgJzt7UmVmZXJlckBodHRwczovL3Yub2pia2p4LmNvbS99J1xcbiAgICAgICAgfSBlbHNlXFxuICAgICAgICBpZiAocGxheS5zdGFydHNXaXRoKCcvJykpIHtcXG4gICAgICAgICAgICByZXR1cm4gJ2h0dHBzOicgKyBwbGF5ICsgJyNpc1ZpZGVvPXRydWUjJ1xcbiAgICAgICAgfSBlbHNlIFxcblxcdFxcdCAgIGlmICgvbWd0di8udGVzdChwbGF5KSkge1xcblxcdFxcdFxcdCAgICByZXR1cm4gcGxheSArICc7e1VzZXItQWdlbnRAV2luZG93c30nXFxuICAgICAgICB9ZWxzZXtcXG4gICAgICAgICAgICByZXR1cm4gcGxheSArICcjaXNWaWRlbz10cnVlIydcXG4gICAgICAgIH1cXG4gICAgfSBlbHNlIHtcXG4gICAgICAgIHJldHVybiB1cmxcXG4gICAgfVxcbn0pO1wifV0iLCJpY29uIjoiaHR0cHM6Ly93d3cuNGthbi50di9zdGF0aWNzL2ltZy9mYXZpY29uLmljbyJ9
Add Comment
Please, Sign In to add comment