Firefox userChrome.js greasemonkeyスクリプトスレ23
■ このスレッドは過去ログ倉庫に格納されています
0764名無しさん@お腹いっぱい。
2013/06/25(火) 01:46:33.96ID:0lzhNTec0どなたか分かる方、修正していただけませんか…?
// Pixiv {{{2
{
name : 'pixiv',
includeRegExp : /^http:\/\/www\.pixiv\.net(\/|$)/i,
linkRegExp : /\bmember_illust\.php\?.*\bmode=(?!manga)/i,
findImageRegExp : /_(?:s|m|100)(?=\.\w+(?:\?.*)?$)/i,
imageInPageRegExp : /<img src="(http:\/\/i\d+\.pixiv\.net\/img\d+\/img\/[^\/]+\/\d+)_m(\.[^"]+)"/,
replaceString : '$1$2',
fallbackDefName : 'pixiv-manga',
captionXPath : './h1/text()|..//h2//text()',
getExLinksFunction : function(linkData) {
var id = linkData['link'].href.match(/illust_id=(\d+)/)[1];
return [ { href:'/bookmark_add.php?type=illust&illust_id=' + id, text:'Bookmark', title:'Bookmark this illust.' } ];
}
},
{
name : 'pixiv-manga',
includeRegExp : /^http:\/\/www\.pixiv\.net(\/|$)/i,
linkRegExp : /\bmember_illust\.php\?.*\b(illust_id=[^&]*)/i,
linkReplaceString : 'member_illust.php?mode=manga&$1',
imageInPageRegExp : /\.unshift\('(http:\/\/\w+\.pixiv\.net\/img[^']*)'\)/ig,
replaceString : '$1',
captionXPath : './h1/text()|..//h2//text()',
getExLinksFunction : function(linkData) {
var id = linkData['link'].href.match(/illust_id=(\d+)/)[1];
return [ { href:'/bookmark_add.php?type=illust&illust_id=' + id, text:'Bookmark', title:'Bookmark this illust.' } ];
}
},
■ このスレッドは過去ログ倉庫に格納されています