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' | |
const entries = document.getElementsByClassName('entry-content') | |
if (entries.length > 0 && entries[0] != undefined) { | |
var contents = entries[0].innerHTML | |
const prev = contents; | |
// www subdomain | |
contents = contents.split('www.'+domain_name).join(domain_name) | |
// Yahoo!Blog | |
contents = contents.replace(/https?:\/\/blogs.yahoo.co.jp\/asari_no_miso_soup\/(\d+)\.html?/g, 'https://'+domain_name+'/entry/$1') |
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
<div id='dead_url_found' hidden>●</div> |
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 | |
} |
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
package main | |
func main() { | |
println("hello world") | |
} |