Get scope from the selected element in developer tools