This commit is contained in:
2025-07-24 16:09:35 +09:00
parent 193946cadf
commit dc69070823
11 changed files with 326 additions and 210 deletions
@@ -0,0 +1,9 @@
(function() {
var meta = document.querySelector('meta[name=viewport]');
if (!meta) {
meta = document.createElement('meta');
meta.name = 'viewport';
document.head.appendChild(meta);
}
meta.setAttribute('content', 'width=device-width, initial-scale=1.0');
})();
@@ -15,7 +15,7 @@
{
"run_at": "document_end",
"matches": ["<all_urls>"],
"js": ["messaging.js"]
"js": ["messaging.js","inject-viewport.js"]
}
],
"permissions": [
@@ -414,20 +414,21 @@ var time2 = null
function gotoNext() {
clearTimeout(time1)
try{
console.log("targetUrl :: " + targetUrl);
time2 = setTimeout(function () {
clearTimeout(time2)
document.querySelector('[class="btn-group"]').querySelectorAll('a').forEach(function(e){
if(e.hasAttribute("href") &&
(
(e.getAttribute("href").search("page=2") > -1 && location.href.search("page") < 0) ||
(e.getAttribute("href").search("page=3") > -1 && location.href.search("page=2") > 0)
)) {
e.click()
}
})
}, 5000);
console.log("targetUrl :: " + targetUrl);
if (document.querySelector('[class="btn-group"]')) {
time2 = setTimeout(function () {
clearTimeout(time2)
document.querySelector('[class="btn-group"]').querySelectorAll('a').forEach(function(e){
if(e.hasAttribute("href") &&
(
(e.getAttribute("href").search("page=2") > -1 && location.href.search("page") < 0) ||
(e.getAttribute("href").search("page=3") > -1 && location.href.search("page=2") > 0)
)) {
e.click()
}
})
}, 5000);
}
} catch (e) {
}