Created
June 6, 2021 02:33
-
-
Save hogelog/6e4788dc8556498cad4058808463ddaa to your computer and use it in GitHub Desktop.
This file contains hidden or 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
copy(document.querySelector("#billSelectDate").innerText + "\t" + document.querySelector("#billFxAmount").innerText); | |
m=window.location.href.match(/bills\?year=(\d+)&month=(\d+)/);year=m[1];month=m[2]; | |
if (month == "1") { | |
year -= 1; | |
month = 12; | |
} else { | |
month -= 1; | |
} | |
window.location.href = "https://console.aws.amazon.com/billing/home?region=ap-northeast-1#/bills?year=" + year + "&month=" + month; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment