Skip to content

Instantly share code, notes, and snippets.

@siliconwafer
Last active July 22, 2021 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siliconwafer/56fdff0ba30d0ea782fc9c7e8f1477cd to your computer and use it in GitHub Desktop.
Save siliconwafer/56fdff0ba30d0ea782fc9c7e8f1477cd to your computer and use it in GitHub Desktop.
<script type="text/javascript">
const domain_name = 'asarinomisosoup.com'
// www subdomain
const text_split = document.body.innerHTML.split('www.'+domain_name)
if (text_split.length > 1) {
document.body.innerHTML = text_split.join(domain_name)
const element = document.getElementById('dead_url_found')
if (element != undefined) {
element.hidden = false
}
}
// Yahoo!Blog
document.body.innerHTML = document.body.innerHTML.replace(/https?:\/\/blogs.yahoo.co.jp\/asari_no_miso_soup\/(\d+)\.html?/g, 'https://'+domain_name+'/entry/$1')
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment