replace href if part is detected with new url

by zachreynolds

HTML

<h3>

<a href="https://www.reddit.com/r/news/top/.rss?sort=top&t=day&limit=5">Link</a></h3>

<script>
$(document).ready(function(){
$("h3 a[href*='/r/news/']").attr('href', 'https://wiredintel.jimdo.com/world');
$("h3 a[href*='/r/science/']").attr('href', 'https://wiredintel.jimdo.com/science');
$("h3 a[href*='/r/technology/']").attr('href', 'https://wiredintel.jimdo.com/technology');
});
</script>