xiaomianao666

小程序:磁搜君

Nov 7th, 2023
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@磁搜君@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi56OB5pCc5ZCbIiwiYXV0aG9yIjoiIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSMjIiwidmVyc2lvbiI6MjEsImNvbF90eXBlIjoibW92aWVfMyIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoiYWxsIiwiY2xhc3NfdXJsIjoiIiwiYXJlYV9uYW1lIjoiIiwiYXJlYV91cmwiOiIiLCJzb3J0X25hbWUiOiIiLCJ5ZWFyX25hbWUiOiIiLCJzb3J0X3VybCI6IiIsInllYXJfdXJsIjoiIiwiZmluZF9ydWxlIjoianM6XG52YXIgZCA9IFtdO1xubGV0IGlkID0gRGF0ZS5ub3coKSArIE1ZX1JVTEUudGl0bGU7XG5cbmZ1bmN0aW9uIG1lbShpbnB1dCkge1xuICAgIGxldCBoaXN0b3J5ID0gc3RvcmFnZTAuZ2V0SXRlbShcInNlYXJjaEhpc3RvcnlcIiwgW10pO1xuICAgIGxldCBpaSA9IGhpc3RvcnkuaW5kZXhPZihpbnB1dCk7XG4gICAgaWYgKGlpID4gLTEpIHtcbiAgICAgICAgaGlzdG9yeS5zcGxpY2UoaWksIDEpO1xuICAgIH1cbiAgICBpZiAoaGlzdG9yeS5sZW5ndGggPiAyMCkge1xuICAgICAgICBoaXN0b3J5LnNwbGljZShoaXN0b3J5Lmxlbmd0aCAtIDEsIDEpO1xuICAgIH1cbiAgICBoaXN0b3J5LnVuc2hpZnQoaW5wdXQpO1xuICAgIHN0b3JhZ2UwLnNldEl0ZW0oXCJzZWFyY2hIaXN0b3J5XCIsIGhpc3RvcnkpO1xufVxuZC5wdXNoKHtcbiAgICB0aXRsZTogXCLmkJzntKJcIixcbiAgICB1cmw6ICQudG9TdHJpbmco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sgXCI6a2V5OlwiICsga2V5LFxuICAgICAgICAgICAgY2xzOiBpZCArIFwiOmtleVwiLFxuICAgICAgICAgICAgbG9uZ0NsaWNrOiBbe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBcIuWIoOmZpOWFs+mUruivjTpcIiArIGtleSxcbiAgICAgICAgICAgICAgICBqczogJC50b1N0cmluZygoaWQsIGtleSwgaSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBsZXQgaGlzdG9yeSA9IHN0b3JhZ2UwLmdldEl0ZW0oXCJzZWFyY2hIaXN0b3J5XCIsIFtdKTtcbiAgICAgICAgICAgICAgICAgICAgaGlzdG9yeS5zcGxpY2UoaSwgMSk7XG4gICAgICAgICAgICAgICAgICAgIHN0b3JhZ2UwLnNldEl0ZW0oXCJzZWFyY2hIaXN0b3J5XCIsIGhpc3RvcnkpO1xuICAgICAgICAgICAgICAgICAgICBkZWxldGVJdGVtKGlkICsgXCI6a2V5OlwiICsga2V5KTtcbiAgICAgICAgICAgICAgICAgICAgLy90b2FzdCgpO1xuICAgICAgICAgICAgICAgIH0sIGlkLCBrZXksIGkpXG4gICAgICAgICAgICB9LCB7XG4gICAgICAgICAgICAgICAgdGl0bGU6IFwi5riF56m66K6w5b2VXCIsXG4gICAgICAgICAgICAgICAganM6ICQudG9TdHJpbmcoKGlkKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiAkKFwi56Gu5a6a5riF6Zmk5YWo6YOo5pCc57Si6K6w5b2V77yfXCIpLmNvbmZpcm0oKGlkKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbGVhckl0ZW0oXCJzZWFyY2hIaXN0b3J5XCIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgZGVsZXRlSXRlbUJ5Q2xzKGlkICsgXCI6a2V5XCIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgYWRkSXRlbUFmdGVyKGlkICsgXCI6c2VhcmNoSGlzdG9yeVwiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6IFwidGV4dF9jZW50ZXJfMVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVybDogXCJoaWtlcjovL2VtcHR5XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGU6IFwi4oCc4oCc4oCd4oCdXCIgKyBcIn5+fuS7gOS5iOmDveayoeacieWTpn5+flwiLmZvbnRjb2xvcihcIkdyYXlcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZXh0cmE6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2xzOiBpZCArIFwiOmtleVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIH0sIGlkKVxuICAgICAgICAgICAgICAgIH0sIGlkKSxcbiAgICAgICAgICAgIH1dXG4gICAgICAgIH1cbiAgICB9KTtcbiAgICBpKys7XG59XG5pZiAoaGlzdG9yeS5sZW5ndGggPT09IDApIHtcbiAgICBkLnB1c2goe1xuICAgICAgICBjb2xfdHlwZTogXCJ0ZXh0X2NlbnRlcl8xXCIsXG4gICAgICAgIHVybDogXCJoaWtlcjovL2VtcHR5XCIsXG4gICAgICAgIHRpdGxlOiBcIuKAnOKAnOKAneKAnVwiICsgXCJ+fn7ku4DkuYjpg73msqHmnInlk6Z+fn5cIi5mb250Y29sb3IoXCJHcmF5XCIpLFxuICAgICAgICBleHRyYToge1xuICAgICAgICAgICAgY2xzOiBpZCArIFwiOmtleVwiXG4gICAgICAgIH1cbiAgICB9KTtcbn1cbmQucHVzaCh7XG4gICAgY29sX3R5cGU6ICdsaW5lJyxcbiAgICBleHRyYToge1xuICAgICAgICBpZDogJ3lwai1sJ1xuICAgIH1cbn0pO1xuXG5zZXRSZXN1bHQoZCk7Iiwic2VhcmNoX3VybCI6IiIsImdyb3VwIjoi4pGg572R55uYIiwic2VhcmNoRmluZCI6IiIsIm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7XFxuICAgICAgICB9IGVsc2UgaWYgKCFpbnB1dC5zdGFydHNXaXRoKG9yaWdpbikgJiYgaW5wdXQuc3RhcnRzV2l0aChcXFwiaHR0cFxcXCIpKSB7XFxuICAgICAgICAgICAgbG9nKGlucHV0KTtcXG4gICAgICAgICAgICBpZihvcmlnaW4uaW5jbHVkZXMoXFxcImJhaWR1LmNvbVxcXCIpKXtcXG4gICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xcbiAgICAgICAgICAgIH0gICAgICAgICAgICBcXG4gICAgICAgICAgICByZXR1cm4gJC50b1N0cmluZygodXJsLCBydWxlKSA9PiB7XFxuICAgICAgICAgICAgICAgIGZ5X2JyaWRnZV9hcHAub3BlbihKU09OLnN0cmluZ2lmeSh7XFxuICAgICAgICAgICAgICAgICAgICB0aXRsZTogXFxcIuivpuaDhVxcXCIsXFxuICAgICAgICAgICAgICAgICAgICB1cmw6IFxcXCJoaWtlcjovL3BhZ2UveXNmeD9ydWxlPVxcXCIgKyBydWxlICsgXFxcIiZyPVxcXCIgKyBydWxlICsgXFxcIiMjXFxcIiArIHVybCxcXG4gICAgICAgICAgICAgICAgfSkpXFxuICAgICAgICAgICAgfSwgaW5wdXQsIHJ1bGUpXFxuICAgICAgICB9IGVsc2UgaWYgKCFpbnB1dC5zdGFydHNXaXRoKFxcXCJodHRwXFxcIikpIHtcXG4gICAgICAgICAgICBsb2coaW5wdXQpO1xcbiAgICAgICAgICAgIC8v6IO95ZSk6LW3QVBQ55qE55m95ZCN5Y2VXFxuICAgICAgICAgICAgbGV0IHdoaXRlID0gW1xcbiAgICAgICAgICAgICAgICBcXFwicWtsaW5rXFxcIixcXG4gICAgICAgICAgICAgICAgXFxcImJkbmV0ZGlza1xcXCIsXFxuICAgICAgICAgICAgICAgIFxcXCJ4dW5sZWlhcHBcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwic21hcnRkcml2ZVxcXCIsXFxuICAgICAgICAgICAgICAgIFxcXCJqaWFucGlhblxcXC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