MCPcopy Index your code
hub / github.com/XIU2/UserScript / getNextSP

Function getNextSP

Autopage.user.js:2153–2167  ·  view source on GitHub ↗
(page, pf, reg)

Source from the content-addressed store, hash-verified

2151 }
2152 // 通用型获取下一页地址(直接给定页码,URL 替换 page= 参数)
2153 function getNextSP(page, pf, reg) {
2154 let url = '';
2155 if (!page) return url
2156 if (typeof page === 'number') page = page.toString()
2157 if (location.search) {
2158 if (indexOF(pf, 's')) {
2159 url = location.search.replace(reg, pf + page);
2160 } else {
2161 url = location.search + '&' + pf + page;
2162 }
2163 } else {
2164 url = '?' + pf + page;
2165 }
2166 return (location.origin + location.pathname + url)
2167 }
2168 // 通用型获取下一页地址(从 元素 中获取页码,URL 替换 pathname 路径)
2169 function getNextEPN(css, reg, a, b = '') {
2170 let nextNum = getOne(css), url = '';

Callers

nothing calls this directly

Calls 1

indexOFFunction · 0.85

Tested by

no test coverage detected