Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAVERまとめ絡みの特定のSITEINFOが動作しない問題 #3

Open
t-f-m opened this issue May 27, 2012 · 2 comments
Open

NAVERまとめ絡みの特定のSITEINFOが動作しない問題 #3

t-f-m opened this issue May 27, 2012 · 2 comments

Comments

@t-f-m
Copy link

t-f-m commented May 27, 2012

以下のSITEINFOがAutoPatchWorkでは動作しません。
http://wedata.net/items/60489

なお、Firefox、ChromeのAutoPagerizeでは動作したので、AutoPatchWorkでの問題です。

おそらく、NAVERまとめの記事での対策が誤爆しているのではないでしょうか。

@Dither
Copy link

Dither commented Jun 19, 2012

Comment out or remove this block in injected script includes/AutoPatchWork.js to fix it:

    if (location.host==='matome.naver.jp') {
      var _get_next = get_next;
      get_next = function(doc) {
        var next = _get_next(doc);
        if (!next || !next.hasAttribute('onclick')) return;
        var nextpage = next.getAttribute('onclick').match(/goPage\(\s*(\d+)\s*\)/)[1];
        var form=document.getElementsByName('missionViewForm')[0];
        var param=[].slice.call(form).map(function(i){return i.name+'='+(i.name==='page'?nextpage:i.value);}).join('&');
        next.href = location.pathname+'?'+param;
        return next;
      };
      next = get_next(document);
    }

@os0x
Copy link
Owner

os0x commented Jun 23, 2012

I got. i'm going to fix it.
thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants