This script easily gets the material(s) and loads them into the material editor.
With multiple objects selected it will load them all into the editor.
I suggest keybinding this to CTRL-SHIFT-G for speeding up your workflow instead of using a toolbar icon!