Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/uAutoPagerize/uAutoPagerize.uc.js b/uAutoPagerize/uAutoPagerize.uc.js
- index 0225a9d..8ba00b6 100644
- --- a/uAutoPagerize/uAutoPagerize.uc.js
- +++ b/uAutoPagerize/uAutoPagerize.uc.js
- @@ -86,7 +86,12 @@ var MY_SITEINFO = [
- ,nextLink : 'id("AutoPagerizeNextLink")'
- ,pageElement : '//tr[@class="bgColor02"][1]|//tr[@class="bgColor02"][1]/following-sibling::tr'
- ,exampleUrl : 'http://kakaku.com/specsearch/0150/'
- - }
- + },
- + {
- + url : '^https://search\\.yahoo\\.co\\.jp/search\\?'
- + ,nextLink : '//div[contains(concat(" ",normalize-space(@class)," "), " Pagenation__next ")][1]/a[1]'
- + ,pageElement: '//div[contains(concat(" ",normalize-space(@class)," "), " Contents__innerGroupBody ")][1]'
- + },
- ];
- var MICROFORMAT = [
- @@ -818,6 +823,13 @@ AutoPager.prototype = {
- var [reqScheme,,reqHost] = this.requestURL.split('/');
- var {protocol, host} = this.win.location;
- + if (reqHost === "search.yahoo.co.jp") {
- + const idx = this.requestURL.indexOf("/**");
- + if (idx != -1) {
- + this.requestURL = decodeURIComponent(this.requestURL.slice(idx+3));
- + [reqScheme,,reqHost] = this.requestURL.split('/');
- + }
- + }
- if (reqScheme !== protocol) {
- log(protocol + " が " + reqScheme + "にリクエストを送ることはできません");
- this.state = "error";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement