你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/4685-ts-pixiv-v3-alpha/discussions/14892,源站連結 點此以跳轉

[TS] Pixiv++ V3 alpha

Development has halted until I have more time. Pixiv uses async page loading, which broke some aspects of this script. Ultimate Pixiv Script: Direct Links, Auto-Paging, Preview, IQDB/Danbooru, Filter/Sort using Bookmark,views,rating,total score. | Safe Search | plus more. Works best with "Pixiv++ Manga Viewer" and "Generic Image Viewer". 自動ページング|ポケベル|ロード次ページ|フィルター|並べ替え|注文|ダイレクトリンク

< 脚本 [TS] Pixiv++ V3 alpha 的反馈

评价:好评 - 脚本运行良好

§
发布于:2017-04-18

All Features No Longer Appearing, Possibly Due To Site Revision?

Nothing from any of my pixiv scripts are showing up (Generic Image Viewer, Pixiv Manga Viewer, Pixiv++, or Pixiv Translation Plus) at all on the site. Not sure what could be causing the issue, has anyone else had this problem? I'm currently running Firefox 52.0.2, the site was working fine just the other day (maybe 2 days ago?).

I also noticed that there aren't a whole lot of places to talk about Pixiv Greasemonkey scripts online other than here. Everywhere else seems to be dead as far as updates or discussion is concerned. Is there anywhere else to ask questions like this? Especially for any sort of pixiv translation scripts.

Thanks.

§
发布于:2017-04-18

Pixiv seems to have gone full https (instead of doing it only for images) recently, I just replaced every instance of "http" with "https" on the script and it seems to be working now.

§
发布于:2017-04-18
编辑于:2017-04-18

Yep, site now https:// only.
Thus, you need to edit this:


var IsIllustrationPage = (document.URL.indexOf("https://www.pixiv.net/member_illust.php?") != -1 && document.URL.match(/mode=medium/i) != null);
var Illustrations = {};

/*
00 Illustration page
01 Front page
03 Artist work page
04 Personal Work page
05 Personal Bookmarks page
06 Artist Bookmark
07 Works from favourite artists
07 New illustrations
09 Search
10 Bookmark recommendations */
var PAGETYPE = (function ()
{
var pathname = document.location.pathname;
if (IsIllustrationPage) return 0;
else if (document.URL.match(/https:\/\/www\.pixiv\.net\/((cate_r18|mypage|member)\.php|$)/i)) return 1;
else if (document.URL.match(/https:\/\/www\.pixiv\.net\/member_illust\.php\?id/i)) return 3; //Artist Work Page
else if (document.URL.match(/https:\/\/www\.pixiv\.net\/member_illust\.php/i)) return 4; //Personal Work Page
else if (document.URL.match(/https:\/\/www\.pixiv\.net\/bookmark\.php/i)) return 5; //Personal Bookmarks, Added new bookmarks
else if (document.URL.match(/https:\/\/www\.pixiv\.net\/bookmark\.php\?id=/i)) return 6; //Artist Bookmark
else if (document.URL.match(/https:\/\/www\.pixiv\.net\/bookmark_new_illust(_r18)?\.php/i)) return 7; //Works from favourite artists
else if (document.URL.match(/https:\/\/www\.pixiv\.net\/new_illust(_r18)?\.php/i)) return 8; //New illustrations
else if (pathname == "/bookmark_detail.php") return 10;
else if (document.URL.match(/https:\/\/www\.pixiv\.net\/search\.php\?/i)) return 9; //Search

return -1;
})();

And change or add https include:


// @include http://www.pixiv.net/*
// @include https://www.pixiv.net/*

Edits above will provide some basic functionality, but one will need to go through code and change http -> https. Or, in any proper editor - replace all.[do it at your own risk]
Well, actually regexes should be changed properly, but well. It's not like you can use http version...
And translation script is broken too. Good job pixiv. "Security" ftw.

§
发布于:2017-04-18

"original image link" feature also broken again, just like last week lol. Sadly the above fixes doesn't undo that, hopefully an update comes soon!

TimidScript作者
§
发布于:2017-04-18
编辑于:2017-04-18

Released a new version. Added Suffix V3 as my own version is version 4 alpha, which wasn't broken by the changes XD.

More details found here: https://github.com/TimidScript/UserScripts/issues/13

It's a temporary quickfix until I get more time to finsh Version 4.

§
发布于:2017-04-18

Gotcha. Thanks for the tips guys. I'll have to go through the translation script and do some replacing, then.

发布留言

登录以发布留言。