xiaomianao666

小程序:巨魔

Apr 29th, 2024
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@巨魔@eyJmaXJzdEhlYWRlciI6ImNsYXNzIiwibGFzdF9jaGFwdGVyX3J1bGUiOiIiLCJ0aXRsZSI6IuW3qOmtlCIsImF1dGhvciI6IkBMb3lEZ0lrIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSMjZnljbGFzcyIsInZlcnNpb24iOjAsImNvbF90eXBlIjoiaWNvbl9yb3VuZF80IiwiY2xhc3NfbmFtZSI6IummlumhtSbmianlsZUm57u85ZCIIiwidHlwZSI6InZpZGVvIiwiY2xhc3NfdXJsIjoi6aaW6aG1JuaJqeWxlSbnu7zlkIgiLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6IiIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczpcbmxldCBzcCA9IChpdCwgcywgZSkgPT4gU3RyaW5nKGl0LnNwbGl0KHMpWzFdKS5zcGxpdChlKVswXTtcbmxldCBkID0gW107XG5cbmlmIChNWV9DTEFTU19VUkwgPT09IFwi6aaW6aG1XCIpIHtcbiAgICBsZXQgc291cmNlID0gZmV0Y2goXCJodHRwOi8vYXBpLnhrYTEudG9wL3FpZXppL3Nob3V5ZS50eHRcIiwge1xuICAgICAgICBoZWFkZXJzOiB7XG4gICAgICAgICAgICAnY29udGVudC10eXBlJzogJ2NoYXJzZXQ9R0JLJ1xuICAgICAgICB9XG4gICAgfSk7XG5cbiAgICBmdW5jdGlvbiBnZXRWaWV3KHRpdGxlLCB0eXBlKSB7XG4gICAgICAgIGlmICh0eXBlID09PSBcIuW/q+eMq1wiKSB7XG4gICAgICAgICAgICByZXR1cm4gXCJoaWtlcjovL3BhZ2Uva3VhaW1hby52P3BhZ2U9ZnlwYWdlXCI7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0gSlNPTi5wYXJzZShkZWNyeXB0KHNvdXJjZSkpLmRhdGEuZGF0YTtcXG4gICAgZm9yIChsZXQgaXQgb2YgbGlzdCkge1xcbiAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICB0aXRsZTogaXQudXBkYXRlX2F0ICsgXFxcIlxcXFxuXFxcIiArIGl0LnZpZGVvX25hbWUsXFxuICAgICAgICAgICAgcGljX3VybDogaXQuaW1hZ2UsXFxuICAgICAgICAgICAgdXJsOiBpdC52aWRlb19pZCtsYXp5LFxcbiAgICAgICAgICAgIGNvbF90eXBlOiBcXFwicGljXzJfY2FyZFxcXCIsXFxuICAgICAgICAgICAgZXh0cmE6e1xcbiAgICAgICAgICAgICAgICBpbmhlcml0VGl0bGU6IGZhbHNlXFxuICAgICAgICAgICAgfVxcbiAgICAgICAgfSk7XFxuICAgIH1cXG59IGNhdGNoIChlKSB7XFxuXFxufVxcbnNldFJlc3VsdChkKTtcIn1dIiwiaWNvbiI6IiIsInByb3h5IjoiIn0=
Add Comment
Please, Sign In to add comment