Last active
July 22, 2021 07:22
-
-
Save siliconwafer/56fdff0ba30d0ea782fc9c7e8f1477cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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