Created
November 6, 2020 06:14
-
-
Save priesdelly/d09450a9be8ac22e4bd35992600b36b0 to your computer and use it in GitHub Desktop.
Niceoppai_read_all_page (old and deprecated)
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
// ==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