Hi!
You can use Automator for your purpose. Create a workflow with the following actions in this order:
1) Get Current Webpage from Safari
2) Get Link URLs from Webpages (note the option to only open URLs from the same domain)
3) Display Webpages
Hope this was helpful.
/Rupert