Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. var homestuck_page_map = {'005221': '3321', '002146': '246', '002238': '338', '004526': '2626', '003556': '1656', '007152': '5252', '006725': '4825', '006290': '4390', '003049': '1149', '005197': '3297', '002771': '871', '007163': '5263', '002293': '393', '004901': '3001', '004888': '2988', '005420': '3520', '008300': '6400', '005618': '3718', '002322': '422', '004987': '3087', '002848': '948', '002621': '721', '002838': '938', '002779': '879', '008131': '6231', '005644': '3744', '003167': '1267', '007161': '5261', '002037': '137', '002818': '918', '003258': '1358', '003307': '1407', '004827': '2927', '007138': '5238', '002926': '1026', '008178': '6278', '005579': '3679', '005595': '3695', '004979': '3079', '008998': '7098', '003541': '1641', '004478': '2578', '002376': '476', '004687': '2787', '002153': '253', '006720': '4820', '005985': '4085', '002288': '388', '007327': '5427', '002736': '836', '006565': '4665', '002657': '757', '006273': '4373', '002973': '1073', '009349': '7449', '002743': '843', '002297': '397', '001977': '77', '007338': '5438', '009348': '7448', '002655': '755', '006472': '4572', '005338': '3438', '004692': '2792', '007298': '5398', '003568': '1668', '006013': '4113', '005596': '3696', '006727': '4827', '006009': '4109', '003840': '1940', '009859': '7959', '002880': '980', '007412': '5512', '002122': '222', '002551': '651', '002300': '400', '003701': '1801', '6009': '4109', '005625': '3725', '007208': '5308', '006386': '4486', '007555': '5655', '001990': '90', '002565': '665', '002733': '833', '006011': '4111', 'GAMEOVER': '6901'};
  2. if(document.location.host.indexOf('mspaintadventures.com') > -1) {
  3. var pages = ['001977', '001990', '002037', '002122', '002146', '002288', '002293', '002297', '002300', '002322', '002376', '002551', '002565', '002621', '002655', '002657', '002733', '002736', '002743', '002771', '002779', '002818', '002838', '002848', '002880', '002926', '002973', '003049', '003167', '003258', '003307', '003541', '003556', '003568', '003701', '003840', '004478', '004526', '004687', '004827', '004888', '004901', '004979', '004987', '005221', '005338', '005420', '005579', '005595', '005596', '005618', '005625', '005644', '005985', '006011', '006013', '006273', '006290', '006386', '006472', '006565', '006720', '006725', '006727', '007138', '007152', '007161', '007327', '007338', '007412', '007555', '008131', '008300', '008998', '005197', '008178', '006009', '6009', '002153', '004692', '002238', '007163', '007208', '007298', '009348', '009349', '009859'];
  4.  
  5. for(var i in pages) {
  6. if(document.location.toString().match('p=' + pages[i]))
  7. document.location = 'http://www.bgreco.net/hsflash/' + pages[i] + '.html';
  8. else if(document.location.toString().match('GAMEOVER'))
  9. document.location = 'http://www.bgreco.net/hsflash/GAMEOVER.html';
  10. }
  11. } else if (document.location.host.indexOf('homestuck.com') > -1) {
  12. for (var key in homestuck_page_map) {
  13. if (document.location.toString().indexOf('story/' + homestuck_page_map[key]) > -1)
  14. document.location = 'http://www.bgreco.net/hsflash/' + key + '.html';
  15. }
  16. } else {
  17. for (var key in homestuck_page_map) {
  18. if (document.location.toString().indexOf('/' + key + '.html') > -1) {
  19. var destination_page = parseInt(homestuck_page_map[key]) + 1;
  20. var destination = 'https://www.homestuck.com/story/' + destination_page;
  21. document.getElementById('nav_next').href = destination;
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement