Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@《魔JM》91短视频@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi44CK6a2USk3jgIs5MeefreinhumikSIsImF1dGhvciI6Imh0dHBzOi8vOTFzaG9ydC5jb20iLCJ1cmwiOiJoaWtlcjovL2VtcHR5IyNmeXBhZ2UiLCJ2ZXJzaW9uIjowLCJjb2xfdHlwZSI6Im1vdmllXzNfbWFycXVlZSIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoib3RoZXIiLCJjbGFzc191cmwiOiIiLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6IiIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczpcbi8qKiBAdHlwZSBsYXlvdXRbXSAqL1xudmFyIGxheW91dHMgPSBbXTtcbmlmIChNWV9QQUdFID09PSAxKSBsYXlvdXRzID0gc3RvcmFnZTAuZ2V0TXlWYXIoJ2l0ZW1zJyk7XG5jb25zdCB7IGltYWdlLCBsYXp5UnVsZSB9ID0gJC5yZXF1aXJlKCdoaWtlcjovL3BhZ2UvdG9vbHMnKTtcbmxldCBodG1sO1xubGV0IHR5cGUgPSBnZXRNeVZhcigndHlwZScpO1xuXG5pZiAoTVlfUEFHRSA9PT0gMSkge1xuICBsZXQgdXJsID0gJ2h0dHBzOi8vY24xLjkxc2hvcnQuY29tJyArICh0eXBlID09PSAnc2hvcnQnID8gZ2V0TXlWYXIoJ3Nob3J0JykgOiBnZXRNeVZhcignZmlsbScpKTtcbiAgaWYgKHR5cGUgPT09ICdhY3RvcicpIHVybCA9ICdodHRwczovL2NuMS45MXNob3J0LmNvbS9maWxtL2hvbWVfYWN0b3JfbGlzdCc7XG4gIGh0bWwgPSByZXF1ZXN0KHVybCk7XG4gIHB1dE15VmFyK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AgICAgICAgICAgICcvc2hvcnQvbGFiZWxfcmVsYXRlZF9saXN0L0YxNndDSjNMbVdZJTNEJyxcclxuICAgICAgICAgICAgICAnL3Nob3J0L2xhYmVsX3JlbGF0ZWRfbGlzdC8tMFMxTHdrc2tVNCUzRCcsXHJcbiAgICAgICAgICAgIF0sXHJcbiAgICAgICAgICB9LFxyXG4gICAgICAgIF0sXHJcbiAgICAgICAgW1xyXG4gICAgICAgICAge1xyXG4gICAgICAgICAgICB0aXRsZTogJ2ZpbG0nLFxyXG4gICAgICAgICAgICBuYW1lczogWyfmjqjojZAnLCAn5LiT6aKYJywgJ+aXoOKAjueggScsICfkuK3mlocnLCAn5Yqo5ryrJywgJ+e7j+WFuOS4iee6pycsICfmrKfnvo7mgKfigI7niLEnLCAnQVbop6Por7QnXSxcclxuICAgICAgICAgICAgaWRzOiBbXHJcbiAgICAgICAgICAgICAgJy9maWxtL2hvbWVfcmVjb21tZW5kX2xpc3QnLFxyXG4gICAgICAgICAgICAgICcvZmlsbS9ob21lX3N1YmplY3RfbGlzdCcsXHJcbiAgICAgICAgICAgICAgJy9maWxtL2hvbWVfY2F0ZWdvcnlfbGlzdC9jb2RlZCcsXHJcbiAgICAgICAgICAgICAgJy9maWxtL2hvbWVfY2F0ZWdvcnlfbGlzdC9jaGluZXNlX3N1YnRpdGxlJyxcclxuICAgICAgICAgICAgICAnL2ZpbG0vaG9tZV9saXN0L2pPU3hhLTRFMjdVJTNEJyxcclxuICAgICAgICAgICAgICAnL2ZpbG0vaG9tZV9saXN0L3VaZzB2REw4UDhBJTNEJyxcclxuICAgICAgICAgICAgICAnL2ZpbG0vaG9tZV9saXN0L0xibGVqaUVuTTZzJTNEJyxcclxuICAgICAgICAgICAgICAnL2ZpbG0vaG9tZV9saXN0L3ZKcV9HelJpZXNRJTNEJyxcclxuICAgICAgICAgICAgXSxcclxuICAgICAgICAgIH0sXHJcbiAgICAgICAgXSxcclxuICAgICAgXSxcclxuICAgIH0sXHJcbiAgXTtccl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