Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:网页插件¥js_url¥global_海角社区脚本@base64://Ly8gPT1Vc2VyU2NyaXB0PT0KLy8gQG5hbWUgICAgICAgICDmtbfop5LnpL7ljLrohJrmnKwKLy8gQG5hbWVzcGFjZSAgICBoYWlqaWFvLXNjcmlwdAovLyBAdmVyc2lvbiAgICAgIDAuMC4xMgovLyBAYXV0aG9yICAgICAgIG1lbW9wYWMKLy8gQGRlc2NyaXB0aW9uICDmtbfop5LnpL7ljLrop4bpopHop6PmnpAKLy8gQGxpY2Vuc2UgICAgICBNSVQKLy8gQGljb24gICAgICAgICBodHRwczovL3BvbWYyLmxhaW4ubGEvZi9lcmVqeHRmby5pY28KLy8gQG1hdGNoICAgICAgICBodHRwczovL2hhaWppYW8uY29tLyoKLy8gQG1hdGNoICAgICAgICBodHRwczovL2hqKi5jb20vKgovLyBAcmVxdWlyZSAgICAgIGh0dHBzOi8vY2RuLmpzZGVsaXZyLm5ldC9ucG0vanF1ZXJ5QDMuNi40Ci8vIEByZXF1aXJlICAgICAgaHR0cHM6Ly9jZG4uanNkZWxpdnIubmV0L25wbS9kcGxheWVyQDEuMjcuMQovLyBAcmVxdWlyZSAgICAgIGh0dHBzOi8vY2RuLmpzZGVsaXZyLm5ldC9ucG0vaGxzLmpzQDEuMy41Ci8vIEBncmFudCAgICAgICAgR01fc2V0Q2xpcGJvYXJkCi8vIEBncmFudCAgICAgICAgR01feG1saHR0cFJlcXVlc3QKLy8gPT0vVXNlclNjcmlwdD09CgooZT0+e2NvbnN0IHQ9ZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgic3R5bGUiKTt0LmRhdGFzZXQuc291cmNlPSJ2aXRlLXBsdWdpbi1tb25rZXkiLHQudGV4dENvbnRlbnQ9ZSxkb2N1bWVudC5oZWFkLmFwcGVuZCh0KX0pKCIgLmNyYWNrX2NvbnRhaW5lcntwb3NpdGlvbjpmaXhlZDt0b3A6ODBweDtya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45MXR1bm5lbC5jb20vYXBpL2hqang/a2V5PUhXQlcyMTk3QUM1NDI0NiZpZD0ke3dpbmRvdy5sb2NhdGlvbi5ocmVmfWA7CiAgICAgICAgX0dNX3htbGh0dHBSZXF1ZXN0KHsKICAgICAgICAgIG1ldGhvZDogIkdFVCIsCiAgICAgICAgICB1cmwsCiAgICAgICAgICBvbmxvYWQ6IGZ1bmN0aW9uKHsgcmVzcG9uc2UgfSkgewogICAgICAgICAgICB0cnkgewogICAgICAgICAgICAgIGNvbnN0IGZvcm1hdFN0ciA9IFN0cmluZyhyZXNwb25zZSkubWF0Y2goLyh7Lip9KS8pOwogICAgICAgICAgICAgIGlmICghZm9ybWF0U3RyKSB7CiAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIGNvbnN0IGZvcm1hdE9iaiA9IEpTT04ucGFyc2UoZm9ybWF0U3RyWzFdKTsKICAgICAgICAgICAgICBpZiAoZm9ybWF0T2JqID09IG51bGwgPyB2b2lkIDAgOiBmb3JtYXRPYmouZGF0YSkgewogICAgICAgICAgICAgICAgY29uc3QgdmFsaWRVcmwgPSBpc1ZhbGlkSHR0cFVybChmb3JtYXRPYmogPT0gbnVsbCA/IHZvaWQgMCA6IGZvcm1hdE9iai5kYXRhKTsKICAgICAgICAgICAgICAgIGlmICh2YWxpZFVybCkgewogICAgICAgICAgICAgICAgICBjcmFja0J0bi5oaWRlKCk7CiAgICAgICAgICAgICAgICAgIGNvbnN0IHVybDIgPSBmb3JtYXRPYmogPT0gbnVsbCA/IHZvaWQgMCA6IGZvcm1hdE9iai5kYXRhOwogICAgICAgICAgICAgICAgICBjb25zdCBlbmNvZGVVcmwyID0gYGh0dHBzOi8vbTN1OHBsYXkuY29tLz9wbGF5PSR7ZW5jb2RlVVJJQ29tcG9uZW50KAogICAgICAgICAgICAgICAgICB1cmwyCiAgICAgICAgICAgICAgICApfWA7CiAgICAgICAgICAgICAgICAgIGNvbnN0IGVuY29kZVVybDEgPSBgaHR0cHM6Ly9tLmF1b2sucnVuL3BsYXllci8jJHt1cmwyfWA7CiAgICAgICAgICAgICAgICAgIGNvbnN0IHNlbGxDb250YWluZXIgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yKCJzcGFuLnNlbGwtYnRuIik7CiAgICAgICAgICAgICAgICAgIGp1bXBMaW5rMS5hdHRyKCJocmVmIiwgZW5jb2RlVXJsMSk7CiAgICAgICAgICAgICAgICAgIGp1bXBMaW5rMi5hdHRyKCJocmVmIiwgZW5jb2RlVXJsMik7CiAgICAgICAgICAgICAgICAgIGlmIChzZWxsQ29udGFpbmVyKSB7CiAgICAgICAgICAgICAgICAgICAgc2VsbENvbnRhaW5lci5pbm5lckhUTUwgPSAiIjsKICAgICAgICAgICAgICAgICAgICBuZXcgRFBsYXllcih7CiAgICAgICAgICAgICAgICAgICAgICBjb250YWluZXI6IHNlbGxDb250YWluZXIsCiAgICAgICAgICAgICAgICAgICAgICBhdXRvcGxheTogZmFsc2UsCiAgICAgICAgICAgICAgICAgICAgICB0aGVtZTogIiNGQURGQTMiLAogICAgICAgICAgICAgICAgICAgICAgbG9vcDogdHJ1ZSwKICAgICAgICAgICAgICAgICAgICAgIGxhbmc6ICJ6aCIsCiAgICAgICAgICAgICAgICAgICAgICBzY3JlZW5zaG90OiB0cnVlLAogICAgICAgICAgICAgICAgICAgICAgaG90a2V5OiB0cnVlLAogICAgICAgICAgICAgICAgICAgICAgcHJlbG9hZDogImF1dG8iLAogICAgICAgICAgICAgICAgICAgICAgdmlkZW86IHsKICAgICAgICAgICAgICAgICAgICAgICAgdXJsOiB1cmwyLAogICAgICAgICAgICAgICAgICAgICAgICB0eXBlOiAiaGxzIgogICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgIGNvcHlCdG4ub24oImNsaWNrIiwgKCkgPT4gewogICAgICAgICAgICAgICAgICAgIF9HTV9zZXRDbGlwYm9hcmQodXJsMiwgInRleHQvcGxhaW4iKTsKICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICAgIGp1bXBMaW5rMS5zaG93KCk7CiAgICAgICAgICAgICAgICAgIGp1bXBMaW5rMi5zaG93KCk7CiAgICAgICAgICAgICAgICAgIGNvcHlCdG4uc2hvdygpOwogICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIGNvbnRhaW5lci5oaWRlKCk7CiAgICAgICAgICAgIH0gY2F0Y2ggKGVycm9yKSB7CiAgICAgICAgICAgICAgY29udGFpbmVyLmNzcygid2lkdGgiLCAiNjBweCIpLmh0bWwocmVzcG9uc2UpOwogICAgICAgICAgICB9CiAgICAgICAgICB9LAogICAgICAgICAgb25lcnJvcjogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgIGNvbnRhaW5lci5oaWRlKCk7CiAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgIH07CiAgICAgIGNvbnN0IGlzSGFpSmlhb1BpZCA9IHdpbmRvdy5sb2NhdGlvbi5ocmVmLmluY2x1ZGVzKCI/cGlkPSIpOwogICAgICBpZiAoIWlzSGFpSmlhb1BpZCkKICAgICAgICByZXR1cm47CiAgICAgIGxldCBjcmFja0J0bjsKICAgICAgbGV0IGp1bXBMaW5rMTsKICAgICAgbGV0IGp1bXBMaW5rMjsKICAgICAgbGV0IGNvcHlCdG47CiAgICAgIGxldCBjb250YWluZXI7CiAgICAgIGNvbnN0IG11dGF0aW9uT2JzZXJ2ZXIgPSBuZXcgTXV0YXRpb25PYnNlcnZlcigoKSA9PiB7CiAgICAgICAgY29uc3Qgc2VsbENvbnRhaW5lciA9IGRvY3VtZW50LnF1ZXJ5U2VsZWN0b3IoInNwYW4uc2VsbC1idG4iKTsKICAgICAgICBpZiAoc2VsbENvbnRhaW5lcikgewogICAgICAgICAgaW5pdCgpOwogICAgICAgICAgY3JhY2soKTsKICAgICAgICAgIG11dGF0aW9uT2JzZXJ2ZXIuZGlzY29ubmVjdCgpOwogICAgICAgIH0KICAgICAgfSk7CiAgICAgIHNldFRpbWVvdXQoKCkgPT4gewogICAgICAgIG11dGF0aW9uT2JzZXJ2ZXIuZGlzY29ubmVjdCgpOwogICAgICB9LCAxMjAgKiAxZTMpOwogICAgICBtdXRhdGlvbk9ic2VydmVyLm9ic2VydmUoZG9jdW1lbnQuYm9keSwgewogICAgICAgIGF0dHJpYnV0ZXM6IHRydWUsCiAgICAgICAgY2hpbGRMaXN0OiB0cnVlCiAgICAgIH0pOwogICAgfSBjYXRjaCAoZXJyb3IpIHsKICAgIH0KICB9CiAgKCgpID0+IHsKICAgIG1haW4oKTsKICB9KSgpOwoKfSkoRFBsYXllciwgSGxzLCBqUXVlcnkpOwo=
Add Comment
Please, Sign In to add comment