Created
February 9, 2019 09:33
-
-
Save userhooke/8edf5dfe6bf94387b0130475835f2beb to your computer and use it in GitHub Desktop.
HTML page with buttons to batch open websites
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Morning Coffee</title> | |
<link rel="stylesheet" href="vendor/tacit.min.css"> | |
</head> | |
<body> | |
<script> | |
const mos = [ | |
'https://itsfoss.com/', | |
'https://www.producthunt.com', | |
'https://tmfeed.ru/popular/day/', | |
'https://www.designernews.co', | |
'https://www.theverge.com/', | |
'https://news.ycombinator.com', | |
'https://hackernoon.com', | |
'https://megaplan.ru/letters/', | |
'http://fff.works/blog/', | |
'https://www.windy.com/49.990/36.230?rain,49.586,36.230,8,m:e2uahby' | |
]; | |
const reddits = [ | |
'https://www.reddit.com/r/ukraina/', | |
'https://www.reddit.com/r/ukraine/', | |
'https://www.reddit.com/r/unixporn/', | |
'https://www.reddit.com/r/Lisk/', | |
'https://www.reddit.com/r/linuxhardware/', | |
'https://www.reddit.com/r/linux/', | |
'https://www.reddit.com/r/sysadmin/', | |
'https://www.reddit.com/r/raspberry_pi/' | |
]; | |
const sos = [ | |
'https://security.stackexchange.com/', | |
'https://devops.stackexchange.com/', | |
'https://opensource.stackexchange.com/', | |
'https://pm.stackexchange.com/', | |
'https://raspberrypi.stackexchange.com/' | |
]; | |
const blogs = [ | |
'http://kompotique.ru/', | |
'https://tonsky.livejournal.com/', | |
'https://f213.in/', | |
'http://grumpy.website/', | |
'http://vas3k.ru/365/', | |
'http://visual-storytelling.ru/', | |
'http://www.dmitriysivak.com/' | |
]; | |
const check = [ | |
'https://dou.ua/calendar/tags/%D0%BA%D1%83%D1%80%D1%81%D1%8B/%D0%A5%D0%B0%D1%80%D1%8C%D0%BA%D0%BE%D0%B2/' | |
]; | |
function openAll(arr) { | |
for (let i = 0; i < arr.length; i++) { | |
window.open(arr[i]) | |
} | |
}; | |
</script> | |
<button onclick="openAll(mos)" type="submit">Morning Coffee</button> | |
<button onclick="openAll(reddits)" type="submit">Reddits</button> | |
<button onclick="openAll(sos)" type="submit">Stack Overflow</button> | |
<button onclick="location.href='/shaarli'" type="submit">Shaarli</button> | |
<button onclick="location.href='/bookmarks'" type="submit">Bookmarks</button> | |
<button onclick="openAll(blogs)" type="submit">Blogs</button> | |
<button onclick="openAll(check)" type="submit">Check list</button> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment