Skip to content

Instantly share code, notes, and snippets.

@priesdelly
Created November 6, 2020 06:14
Show Gist options
  • Save priesdelly/d09450a9be8ac22e4bd35992600b36b0 to your computer and use it in GitHub Desktop.
Save priesdelly/d09450a9be8ac22e4bd35992600b36b0 to your computer and use it in GitHub Desktop.
Niceoppai_read_all_page (old and deprecated)
// ==UserScript==
// @name Niceoppai_read_all_page
// @namespace local
// @version 0.2
// @description Redirect from read 1 page to read all page manga
// @author Priesdelly
// @match http*://www.niceoppai.net/*
// @grant none
// @run-at document-start
// ==/UserScript==
(function() {
'use strict';
var href = document.location.href;
var urlSplited = href.split('/');
if (urlSplited.length == 6) {
if (urlSplited[5] == '?all' || urlSplited[4] == 'search') {
return;
}
console.log(urlSplited);
var newUrl = href + "?all";
window.location = newUrl;
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment