// ==UserScript== // @name Press Enter key to click next episode // @description Press Enter key to click next episode // @match https://search.bilibili.com/* // @match https://www.agedm.org/* // @match https://m.ejujiu.com/manhua/* // @match https://ikmmh.com/* // @match https://learning.edx.org/* // @match https://space.bilibili.com/* // @match https://1000h.org/* // @match https://github.com/* // @match https://mmmlf.com/* // @match https://www.google.com/* // @match https://wmmh.cc/* // @match https://www.czmanga.com/* // @match https://www.hanman100.com/* // @match https://libretv.pages.dev/* // @match https://anytv.yaoniplan.eu.org/* // @match https://moontv.ashangg.top/* // @match https://tv.pei.ee/* // @version 1.0.0 // ==/UserScript== document.addEventListener('keydown', function(event) { if (event.key === 'Enter') { let url = window.location.href; let nextIcon = null; if (url.includes("https://search.bilibili.com")) { nextIcon = document.querySelector('button.vui_button:nth-child(11)'); } else if (url.includes("https://tv.pei.ee")) { nextIcon = document.querySelector('.art-icon.flex'); } else if (url.includes("https://moontv.ashangg.top")) { nextIcon = document.querySelector('.art-icon.flex'); } else if (url.includes("https://anytv.yaoniplan.eu.org")) { nextIcon = document.querySelector('.art-control-control9'); } else if (url.includes("https://libretv.pages.dev")) { nextIcon = document.querySelector('#nextButton'); } else if (url.includes("https://www.hanman100.com")) { nextIcon = document.querySelector('html body.p-read div.chapter-end.hide div.end-btns ul.clearfix li.end-itm.next.next-btn'); } else if (url.includes("https://www.czmanga.com")) { nextIcon = document.querySelector('a#next-chapter'); } else if (url.includes("https://wmmh.cc")) { nextIcon = document.querySelector('.ptm-col-xs-3 a.copy-btn'); } else if (url.includes("https://www.google.com")) { nextIcon = document.querySelector('a#pnnext'); } else if (url.includes("https://mmmlf.com")) { nextIcon = document.querySelector('.btn.nextpage'); } else if (url.includes("https://github.com")) { nextIcon = document.querySelector('a[rel="next"]'); } else if (url.includes("https://1000h.org")) { nextIcon = document.querySelector('.VPLink.link.pager-link.next'); } else if (url.includes("https://space.bilibili.com")) { nextIcon = document.querySelector('.be-pager-next'); } else if (url.includes("https://learning.edx.org")) { nextIcon = document.querySelector('.next-btn.btn.btn-link'); } else if (url.includes("https://www.agedm.org")) { nextIcon = document.querySelector('div.video-switch-icon.next-icon'); } else if (url.includes("https://m.ejujiu.com/manhua") || url.includes("https://ikmmh.com")) nextIcon = document.querySelector('.afterChapter, .next.next'); if (nextIcon) { nextIcon.click(); } } });