mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-25 09:37:37 +00:00
c6ba97eab6
* Use emoji and characters as markers. Add ~marker filter syntax. * Add a test to please our CI overlords. :)
11 lines
381 B
Python
11 lines
381 B
Python
from mitmproxy import ctx, command
|
|
from mitmproxy.utils import emoji
|
|
|
|
|
|
@command.command('all.markers')
|
|
def all_markers():
|
|
'Create a new flow showing all marker values'
|
|
for marker in emoji.emoji:
|
|
ctx.master.commands.call('view.flows.create', 'get', f'https://example.com/{marker}')
|
|
ctx.master.commands.call('flow.mark', [ctx.master.view.focus.flow], marker)
|