読み込み「後」の実行だからfunctionのoverrideは実質無理なんじゃないの?

cookieはこういうのを使う方がいい
ttp://mozilla-remix.seesaa.net/article/113568450.html