{"action":"created","issue":{"url":"https://api.github.com/repos/dangkyokhoang/Man-in-the-Middle/issues/3","repository_url":"https://api.github.com/repos/dangkyokhoang/Man-in-the-Middle","labels_url":"https://api.github.com/repos/dangkyokhoang/Man-in-the-Middle/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/dangkyokhoang/Man-in-the-Middle/issues/3/comments","events_url":"https://api.github.com/repos/dangkyokhoang/Man-in-the-Middle/issues/3/events","html_url":"https://github.com/dangkyokhoang/Man-in-the-Middle/issues/3","id":367153503,"node_id":"MDU6SXNzdWUzNjcxNTM1MDM=","number":3,"title":"Better matching system","user":{"login":"t2YU2m8l83","id":38610659,"node_id":"MDQ6VXNlcjM4NjEwNjU5","avatar_url":"https://avatars1.githubusercontent.com/u/38610659?v=4","gravatar_id":"","url":"https://api.github.com/users/t2YU2m8l83","html_url":"https://github.com/t2YU2m8l83","followers_url":"https://api.github.com/users/t2YU2m8l83/followers","following_url":"https://api.github.com/users/t2YU2m8l83/following{/other_user}","gists_url":"https://api.github.com/users/t2YU2m8l83/gists{/gist_id}","starred_url":"https://api.github.com/users/t2YU2m8l83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t2YU2m8l83/subscriptions","organizations_url":"https://api.github.com/users/t2YU2m8l83/orgs","repos_url":"https://api.github.com/users/t2YU2m8l83/repos","events_url":"https://api.github.com/users/t2YU2m8l83/events{/privacy}","received_events_url":"https://api.github.com/users/t2YU2m8l83/received_events","type":"User","site_admin":false},"labels":[{"id":981346364,"node_id":"MDU6TGFiZWw5ODEzNDYzNjQ=","url":"https://api.github.com/repos/dangkyokhoang/Man-in-the-Middle/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/dangkyokhoang/Man-in-the-Middle/milestones/2","html_url":"https://github.com/dangkyokhoang/Man-in-the-Middle/milestone/2","labels_url":"https://api.github.com/repos/dangkyokhoang/Man-in-the-Middle/milestones/2/labels","id":3714846,"node_id":"MDk6TWlsZXN0b25lMzcxNDg0Ng==","number":2,"title":"3.0","description":"","creator":{"login":"dangkyokhoang","id":14311741,"node_id":"MDQ6VXNlcjE0MzExNzQx","avatar_url":"https://avatars3.githubusercontent.com/u/14311741?v=4","gravatar_id":"","url":"https://api.github.com/users/dangkyokhoang","html_url":"https://github.com/dangkyokhoang","followers_url":"https://api.github.com/users/dangkyokhoang/followers","following_url":"https://api.github.com/users/dangkyokhoang/following{/other_user}","gists_url":"https://api.github.com/users/dangkyokhoang/gists{/gist_id}","starred_url":"https://api.github.com/users/dangkyokhoang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dangkyokhoang/subscriptions","organizations_url":"https://api.github.com/users/dangkyokhoang/orgs","repos_url":"https://api.github.com/users/dangkyokhoang/repos","events_url":"https://api.github.com/users/dangkyokhoang/events{/privacy}","received_events_url":"https://api.github.com/users/dangkyokhoang/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2018-10-05T12:07:39Z","updated_at":"2018-11-01T19:12:49Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2018-10-05T10:34:13Z","updated_at":"2018-11-01T19:16:08Z","closed_at":null,"author_association":"NONE","body":"It's a pretty strange way to address everything with `*://*/*` insted of `*` or `.*` therefore it would be nice to streamline the matching methods for rules into a \"Match rule(s)\" field (full regex support and multiple match rules /regex/,/regex/), an \"Exclude rule(s)\" field (same functionality as Match rule(s)). And \"Redirect field\" (full regex support and script support) for \"Match Success\"-events and \"Exclude triggered\"-Events. Examples:\r\n\r\nOriginalURL: `https://www.google.com`\r\nMatchPattern: empthy -> applies to every request/response\r\nExcludePattern: empthy -> nothing will be excluded\r\nRediredtPattern: empthy -> request will be blocked\r\nResultURL: -> nothing happens because every request will be blocked.\r\n\r\nOriginalURL: `https://www.amazon.com/SanDisk-Ultra-Flair-Flash-Drive/dp/B015CH1GTO/ref=sr_1_1?ie=UTF8&qid=1538731454&sr=8-1&keywords=usb+16gb`\r\nMatchPattern: `(https:\\/\\/www\\.amazon\\.com\\/).*(dp\\/[A-Za-Z0-9]+)\\/.*`\r\nExcludePattern: `(https:\\/\\/www\\.amazon\\.com\\/).*(dp\\/[A-Za-Z0-9]{8})\\/.*`\r\nRediredtPattern: `$1$2` -> capture groups from \"MatchPattern\"\r\nResultURL: `https://www.amazon.com/dp/B015CH1GTO`\r\n\r\nYou also might take some inspiration from [this](https://addons.mozilla.org/en-US/firefox/addon/header-editor/) plugin. It doesn't allow css/js injections but it has a clearly better designed user interface: enable/disable rules, name rules, streamlined rule creation, rule tester, rule grouping."},"comment":{"url":"https://api.github.com/repos/dangkyokhoang/Man-in-the-Middle/issues/comments/435154095","html_url":"https://github.com/dangkyokhoang/Man-in-the-Middle/issues/3#issuecomment-435154095","issue_url":"https://api.github.com/repos/dangkyokhoang/Man-in-the-Middle/issues/3","id":435154095,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTE1NDA5NQ==","user":{"login":"dangkyokhoang","id":14311741,"node_id":"MDQ6VXNlcjE0MzExNzQx","avatar_url":"https://avatars3.githubusercontent.com/u/14311741?v=4","gravatar_id":"","url":"https://api.github.com/users/dangkyokhoang","html_url":"https://github.com/dangkyokhoang","followers_url":"https://api.github.com/users/dangkyokhoang/followers","following_url":"https://api.github.com/users/dangkyokhoang/following{/other_user}","gists_url":"https://api.github.com/users/dangkyokhoang/gists{/gist_id}","starred_url":"https://api.github.com/users/dangkyokhoang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dangkyokhoang/subscriptions","organizations_url":"https://api.github.com/users/dangkyokhoang/orgs","repos_url":"https://api.github.com/users/dangkyokhoang/repos","events_url":"https://api.github.com/users/dangkyokhoang/events{/privacy}","received_events_url":"https://api.github.com/users/dangkyokhoang/received_events","type":"User","site_admin":false},"created_at":"2018-11-01T19:16:08Z","updated_at":"2018-11-01T19:16:08Z","author_association":"OWNER","body":"Version 3 released. Now you can name rules; use URL filters instead of match patterns to filter requests; redirect requests using regex."}}
{"actor":{"display_login":"dangkyokhoang"}}