Hermione wandered off to the library then, starting her research to remove the snitch from her. This would be something that she'd only find in the restricted section. Since Hermione was an adult now, she was allowed to go to the restricted section of the library without needing a permission slip. 