Created
March 24, 2021 18:40
-
-
Save ijash/b2c7275e691267cab9474dd8e2e29828 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
/** | |
* dbepisodes.com open many tabs. | |
* open new tab(empty tab)>developer console(f12)>paste codes | |
* www.github.com/ijash | |
*/ | |
let latestEpisode = parseInt(prompt('enter start episode', 145)); | |
let countEp = 0; | |
if (openInNewTab !== undefined) { | |
function openInNewTab(targetDbUrl) { | |
let currentWindow = window.open(targetDbUrl, '_blank'); | |
currentWindow.focus(); | |
}; | |
} else { | |
openInNewTab = function (targetDbUrl) { | |
let win = window.open(targetDbUrl, '_blank'); | |
win.focus(); | |
}; | |
}; | |
for (let i = latestEpisode; i < (latestEpisode+20); i++) { | |
let targetLink = `https://dbepisodes.com/episodes/dragon-ball-z-episode-${i}-subbed-in-english-online-free-watch/`; | |
openInNewTab(targetLink); | |
countEp++; | |
}; | |
console.log(`${countEp} episodes remaining`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment