{"action":"opened","issue":{"url":"https://api.github.com/repos/mobify/descript/issues/4","labels_url":"https://api.github.com/repos/mobify/descript/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/mobify/descript/issues/4/comments","events_url":"https://api.github.com/repos/mobify/descript/issues/4/events","html_url":"https://github.com/mobify/descript/issues/4","id":71419238,"number":4,"title":"Function `insertScript` accepts an optional 3rd parameter, `container` ","user":{"login":"Helen-Mobify","id":2319002,"avatar_url":"https://avatars.githubusercontent.com/u/2319002?v=3","gravatar_id":"","url":"https://api.github.com/users/Helen-Mobify","html_url":"https://github.com/Helen-Mobify","followers_url":"https://api.github.com/users/Helen-Mobify/followers","following_url":"https://api.github.com/users/Helen-Mobify/following{/other_user}","gists_url":"https://api.github.com/users/Helen-Mobify/gists{/gist_id}","starred_url":"https://api.github.com/users/Helen-Mobify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Helen-Mobify/subscriptions","organizations_url":"https://api.github.com/users/Helen-Mobify/orgs","repos_url":"https://api.github.com/users/Helen-Mobify/repos","events_url":"https://api.github.com/users/Helen-Mobify/events{/privacy}","received_events_url":"https://api.github.com/users/Helen-Mobify/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mobify/descript/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-27T22:26:04Z","updated_at":"2015-04-27T22:26:04Z","closed_at":null,"body":"The inserted script is set to the same container as the `searchType` script's container. With the optional `container` parameter, we can inject a script at the order we want and in the container we choose. If `container` parameter is not specified, descript work as before.\r\n\r\nUse case example:\r\n1. There is a client script we need to replace at the same order\r\n1. Move the client script in to another container, `ignore`, to maintain the order of the scripts\r\n1. Inject our replacement scripts after the client scripts with `default` container"}}