Created
July 25, 2020 03:55
-
-
Save kumakichi/5489a51270161b653557f869645be85a to your computer and use it in GitHub Desktop.
download java from oracle without login
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
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" 'https://download.oracle.com/otn-pub/java/jdk/14.0.2+12/205943a0976c4ed48cb16f1043c5c647/jdk-14.0.2_linux-x64_bin.tar.gz' | |
// or | |
curl -j -k -L -b "oraclelicense=accept-securebackup-cookie" 'https://download.oracle.com/otn-pub/java/jdk/14.0.2+12/205943a0976c4ed48cb16f1043c5c647/jdk-14.0.2_linux-x64_bin.tar.gz' -o jdk-14.0.2_linux-x64_bin.tar.gz |
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
// https://www.oracle.com/java/technologies/javase-downloads.html | |
var nodes = document.querySelectorAll('.license-link'); | |
for (var i = 0; i< nodes.length; i++) { | |
document.querySelectorAll('.license-link')[i].parentNode.parentNode.parentNode.firstElementChild.textContent="https:"+document.querySelectorAll('.license-link')[i].getAttribute('data-file'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment