您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
left and right arrow key navigation to the previous or next manga/manhwa/manhua in the series
// ==UserScript== // @name Left/Right Arrow Key Navigation for Manga/Manhwa/Manhua Sites // @author sm00nie // @version 1.07 // @description left and right arrow key navigation to the previous or next manga/manhwa/manhua in the series // @grant none // @include /^https?:\/\/(?:www\.)?(manganelo\.com|mangakakalot\.com|mangasushi\.net|leviatanscans\.com|methodscans\.com|skscans\.com|reaperscans\.com|secretscans\.co|hunlight-scans\.info|edelgardescans\.com|the-nonames\.com|asurascans\.com|webtoons\.com/)(?:.*)$/ // @namespace http://greasyfork.icu/users/165048 // ==/UserScript== (function() { 'use strict'; let next, previous; document.addEventListener("keyup", function(event) { let btnContainer = document.querySelectorAll('#pages-container .btn'); if(btnContainer.length > 0) { // Genkan themes for (const button of btnContainer) { if(button.text.includes('Previous')) { previous = button } if(button.text.includes('Next')) { next = button } } } else { // Madara -> mangakakalot, manganelo, mangasushi // Mangastream -> asurascans previous = document.querySelector('.next') || document.querySelector('.navi-change-chapter-btn-prev') || document.querySelector('.prev_page') || document.querySelector('[rel="prev"]') || document.querySelector('.pg_prev'); next = document.querySelector('.back') || document.querySelector('.navi-change-chapter-btn-next') || document.querySelector('.next_page') || document.querySelector('[rel="next"]') || document.querySelector('.pg_next'); } if (event.keyCode == 37 && previous !== null) { previous.click() } else if(event.keyCode == 39 && next !== null) { next.click() } }) })();