Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:网页插件¥js_url¥global_video辅助@base64://Ly8gPT1Vc2VyU2NyaXB0PT0NCi8vIEBuYW1lICAgICAgICAgIHZpZGVv6L6F5YqpDQovLyBAbmFtZXNwYWNlICAgICBodHRwczovL25vdF9leGlzdC5jeQ0KLy8gQHZlcnNpb24gICAgICAgNC4wLjANCi8vIEBkZXNjcmlwdGlvbiAg5o+Q5Y+WSlNPTuino+aekOecn+WunuinhumikXVybOWcsOWdgCznlKjkuo7ovoXliql2aWRlbzovL+WXheaOouWunueOsEpTT07lpJrnur/ot68757uV6L+H6YOo5YiG6Ziy5ZeF5o6i5o6q5pa9DQovLyBAYXV0aG9yICAgICAgIGN5DQovLyBAbWF0Y2ggICAgIGh0dHAuKnVybD0uKg0KLy8gPT0vVXNlclNjcmlwdD09DQooYXN5bmMgZnVuY3Rpb24gKCkgew0KICAgICd1c2Ugc3RyaWN0JzsNCiAgICAvLyDlvJXlhaXmtbfpmJTljp/nlJ/mlrnms5UNCiAgICBldmFsKGZ5X2JyaWRnZV9hcHAuZ2V0SW50ZXJuYWxKcygpKTsNCiAgICAvLyDlsIHoo4Xlh73mlbAtMeOAgeaLvOaOpei/lOWbnuWkmue6v+i3r0pTT07moLzlvI/mkq3mlL7pk77mjqUNCiAgICBmdW5jdGlvbiBNZXJnZVJldHVybnModXJscywgbmFtZXMsIGhlYWRlcnMpIHsNCiAgICAgICAgdmFyIGNvbmZpZ0FycmF5ID0gSlNPTi5wYXJzZShyZXF1ZXN0KCJoaWtlcjovL2ZpbGVzL3J1bGVzL2N5L015UGFyc2UuanNvbiIpKTsNCiAgICAgICAgdmFyIHRhZ3NBcnJheSA9IEpTT04ucGFyc2UocmVxdWVzdCgnaGlrZXI6Ly9maWxlcy9ydWxlcy9jeS9NeVBhcnNlX3NlbGVjdGlvbi5qc29uJykpOw0KICAgICAgICB2YXIgb3JfbGVuZ3RoID0gdXJscy5sZW5ndGg7DQogICAgICAgIHRhZ3NBcnJheS5mb3JFYWNoKGl0ZW0gPT4gew0KICAgICAgICAgICAgd2luZG93LmV2YWwoJ3ZhciByZWcxPS8nICsgaXRlbSArICcvOycpOw0KICAgICAgICAgICAgd2luZG93LmV2YWwoJ3ZhciByZWcyPS8nICsgaXRlbSArICd85YWo6YOoLzsnKTsNCiAgICAgICAgICAgIGlmICh2aXBVcmwubWF0Y2gocmVnMSkpIHsNCiAgICAgICAgICAgICAgICBjb25maWdBcnJheS5mb3JFYWNoKGl0ZW0gPT4gew0KICAgICAgICAgICAgICAgICAgICBpZiAoaXRlbS50YWdzID09IHVuZGVmaW5lZCB8fCBpdGVtLnRhZ3MubWF0Y2gocmVnMikpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIHVybHMucHVzaCgidmlkZW86Ly8iICsgaXRlbS51cmwgKyB2aXBVcmwpOw0KICAgICAgICAgICAgICAgICAgICAgICAgbmFtZXMucHVzaChpdGVtLm5hbWUpOw0KICAgICAgICAgICAgICAgICAgICAgICAgaGVhZGVycy5wdXNoKHt9KTsNCiAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIH0pOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9KTsNCiAgICAgICAgaWYgKHVybHMubGVuZ3RoID09IG9yX2xlbmd0aCkgew0KICAgICAgICAgICAgY29uZmlnQXJyYXkuZm9yRWFjaChpdGVtID0+IHsNCiAgICAgICAgICAgICAgICB2YXIgaXRlbSA9IEpTT04ucGFyc2UoaXRlbSk7DQogICAgICAgICAgICAgICAgdXJscy5wdXNoKCJ2aWRlbzovLyIgKyBpdGVtLnVybCArIHZpcFVybCk7DQogICAgICAgICAgICAgICAgbmFtZXMucHVzaChpdGVtLm5hbWUpOw0KICAgICAgICAgICAgICAgIGhlYWRlcnMucHVzaCh7fSk7DQogICAgICAgICAgICB9KTsNCiAgICAgICAgfQ0KICAgICAgICBmeV9icmlkZ2VfYXBwLnBsYXlWaWRlbyhKU09OLn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SA9PiB7DQogICAgICAgICAgICBpZiAoaXRlbS5qcyAhPSB1bmRlZmluZWQgJiYgaXRlbS5qcyAhPSAnJykgew0KICAgICAgICAgICAgICAgIGpzQXJyYXkucHVzaChpdGVtKQ0KICAgICAgICAgICAgfQ0KICAgICAgICB9KTsNCiAgICAgICAganNBcnJheS5mb3JFYWNoKGl0ZW0gPT4gew0KICAgICAgICAgICAgZG9GdW5fc3RyID0gZG9GdW5fc3RyICsgImNhc2UnIiArIGl0ZW0udXJsLnNwbGl0KCcvJylbMl0gKyAiJzoiICsgaXRlbS5qcyArICJicmVhazsiOw0KICAgICAgICB9KTsNCiAgICAgICAgZG9GdW5fc3RyID0gZG9GdW5fc3RyICsgYGRlZmF1bHQ6DQogICAgICAgIHRyeSB7DQogICAgICAgICAgICB2YXIgZGF0YSA9IGRvY3VtZW50LmRvY3VtZW50RWxlbWVudC5pbm5lclRleHQ7DQogICAgICAgICAgICB2YXIgbGluayA9IEpTT04ucGFyc2UoZGF0YSkudXJsOw0KICAgICAgICAgICAgaWYgKGxpbmsgPT09IHVuZGVmaW5lZCkgew0KICAgICAgICAgICAgICAgIGxpbmsgPSBKU09OLnBhcnNlKGRhdGEpLmRhdGEudXJsOw0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgaWYgKGxpbmsubWF0Y2goL2JpbGl2aWRlby8pKSB7DQogICAgICAgICAgICAgICAgdmFyIHVybHMgPSBbbGlua107DQogICAgICAgICAgICAgICAgdmFyIG5hbWVzID0gWydC56uZ5a6Y6ZO+J107DQogICAgICAgICAgICAgICAgdmFyIGhlYWRlcnMgPSBbew0KICAgICAgICAgICAgICAgICAgICAiVXNlci1BZ2VudCI6ICJNb3ppbGxhLzUuMCAoV2luZG93cyBOVCAxMC4w77yb77ybIFdPVzY0KSBBcHBsZVdlYktpdC81MzcuMzYgKEtIVE1MLCBsaWtlIEdlY2tvKSBDaHJvbWUvNDkuMC4yNjIzLjg3IFNhZmFyaS81MzcuMzYiLA0KICAgICAgICAgICAgICAgICAgICAiUmVmZXJlciI6ICJodHRwczovL3d3dy5iaWxpYmlsaS5jb20iDQogICAgICAgICAgICAgICAgfV07DQogICAgICAgICAgICAgICAgTWVyZ2VSZXR1cm5zKHVybHMsIG5hbWVzLCBoZWFkZXJzKTsNCiAgICAgICAgICAgIH0gZWxzZSBpZiAobGluay5pbmRleE9mKCd0aXRhbi5tZ3R2LmNvbScpICE9IC0xKSB7DQogICAgICAgICAgICAgICAgdmFyIHVybHMgPSBbbGlua107DQogICAgICAgICAgICAgICAgdmFyIG5hbWVzID0gWyfoipLmnpzlrpjpk74nXTsNCiAgICAgICAgICAgICAgICB2YXIgaGVhZGVycyA9IFt7DQogICAgICAgICAgICAgICAgICAgICdSZWZlcmVyJzogJ3d3dy5tZ3R2LmNvbScsDQogICAgICAgICAgICAgICAgICAgICdVc2VyLUFnZW50JzogJ01vemlsbGEvNS4wJw0KICAgICAgICAgICAgICAgIH1dOw0KICAgICAgICAgICAgICAgIE1lcmdlUmV0dXJucyh1cmxzLCBuYW1lcywgaGVhZGVycyk7DQogICAgICAgICAgICB9IGVsc2UgaWYgKGxpbmsgIT0gJycpIHsNCiAgICAgICAgICAgICAgICB3aW5kb3cubG9jYXRpb24uaHJlZiA9IGxpbms7DQogICAgICAgICAgICB9DQogICAgICAgICAgICBicmVhazsNCiAgICAgICAgfSBjYXRjaCB7DQogICAgICAgICAgICB2YXIgaHRtbCA9IGRvY3VtZW50LmJvZHkudGV4dENvbnRlbnQ7DQogICAgICAgICAgICBpZiAoaHRtbC5tYXRjaCgvTExRUGxheWVyLVByby8pKSB7DQogICAgICAgICAgICAgICAgZnlfYnJpZGdlX2FwcC5zZXRXZWJVYSgnTW96aWxsYS81LjAgKGlQaG9uZe+8m++8myBDUFUgaVBob25lIE9TIDlfMyBsaWtlIE1hYyBPUyBYKSBBcHBsZVdlYktpdC82MDEuMS40NiAoS0hUTUwsIGxpa2UgR2Vja28pIFZlcnNpb24vOS4wIE1vYmlsZS8xM0UyMzAgU2FmYXJpLzYwMS4xJyk7DQogICAgICAgICAgICAgICAgdmFyIHRva2VuX3RpbWVyID0gZnVuY3Rpb24gKCkgew0KICAgICAgICAgICAgICAgICAgICB2YXIgdGltZXIgPSBzZXRJbnRlcnZhbCgoKSA9PiB7DQogICAgICAgICAgICAgICAgICAgICAgICBpZiAoZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoInN0YXJ0X3BsYXkiKSkgew0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBodG1sID0gZG9jdW1lbnQuYm9keS5pbm5lckhUTUwuc3BsaXQoJzxzY3JpcHQgc3JjPSJjdXN0b21KUy5qcyI+PC9zY3JpcHQ+JylbMV07DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHRlbXBMaXN0ID0gaHRtbC5tYXRjaCgvaWQ9Ii57MCwzMH3ngrnlh7vmkq3mlL4vZyk7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgdGVtcExpc3QuZm9yRWFjaChpdGVtID0+IHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGlkID0gaXRlbS5zcGxpdCgvIi8pWzFdOw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgY3RuQnRuID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoaWQgKyAiIik7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBldmVudCA9IG5ldyBFdmVudCgnY2xpY2snKTsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY3RuQnRuLmRpc3BhdGNoRXZlbnQoZXZlbnQpOw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pOw0KICAgICAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICB9LCAyNTApDQogICAgICAgICAgICAgICAgfTsNCiAgICAgICAgICAgICAgICB0b2tlbl90aW1lcigpOw0KICAgICAgICAgICAgfSBlbHNlIGlmIChsb2NhdGlvbi5ocmVmLm1hdGNoKC9qeC5ubnh2LmNuLykgJiYgZG9jdW1lbnQucXVlcnlTZWxlY3RvcigiYm9keSA+IHAgPiBmb250ID4gYiA+IGZvbnQgPiBhIikudGV4dC5tYXRjaCgv5pKt5pS+LykpIHsNCiAgICAgICAgICAgICAgICBsb2NhdGlvbi5ocmVmID0gbG9jYXRpb24uaHJlZjsNCiAgICAgICAgICAgIH0NCiAgICAgICAgfX1gOw0KICAgICAgICBldmFsKGRvRnVuX3N0cik7DQogICAgfQ0KfSkoKTsNCg==
Add Comment
Please, Sign In to add comment