您好,游客!

您好,新朋友。点击以下按钮加入我们!

New and updated rules compilation

About: Mouseover Popup Image Viewer [Preview]
最后编辑于 August 2016 脚本讨论 Chrome

Replacement for old repo rules:

  • deviantart.com
    {"d":"deviantart.com","r":"deviantart\\.net/.+?/th/","s":"return node.closest('[data-super-full-img]').dataset.superFullImg"}
  • Ex-Google Code (attachments in issues), now bugs.chromium.org
    {"d":"bugs.chromium.org","r":"(attachment.+?)&thumb=1","s":"$1"}
  • myanimelist.net
    {"d":"myanimelist.net", "e":"img,li[style*='cdn.'] a,a.link-image,a[style*='cdn.']", "html":true, "r":"(//cdn.+?/.+?|//myanimelist)(t|_thumb|)(\\.(?:png|jpe?g|net/.*))[\"')?]", "s":"m1=m[1].replace(/\\/r\\/\\d+x\\d+/,''); hasLarge=(m1+m[3]).match('/(anime|manga)/'); return m[2]=='t' || hasLarge && !m[3].match('/') ? [m1+'l'+m[3],m1+m[3]] : (node.src ? (m1+m[2]+m[3]).replace(/_?thumbs?\\/?/g,'') : node.closest('[style*=\"cdn.\"]').style.backgroundImage.replace(/^.+?(\\/{2}.+?)(\\.jpe?g).*$/,hasLarge ? '$1l$2' : '$1$2').replace(/\\/r\\/\\d+x\\d+/,''))"}

New rules:

  • screencast
    {"r":"screencast\\.com/t/\\S+", "q":"img.embeddedObject"}
  • blu-ray.com
    {"d":"blu-ray.com", "r":"(//images.+?/\\d+_\\d+)(\\.jpg)", "s":["$1_1080p$2","$1_large$2"]}
  • imageban.ru
    {"r":"(//.*?\\.imageban\\.ru/)thumbs(/\\d+).(\\d+).(\\d+/.*)", "s":"http:$1out$2/$3/$4"}
  • radikal.ru
    {"r":"(http://s\\d+\\.radikal\\.ru/.+?)x(\\.\\w+)$","s":"$1$2"}
  • cl.ly
    {"r":"//cl\\.ly/[^/]+$", "q":"meta[property='og:image']"}
  • wallhaven.cc
    {"d":"wallhaven.cc", "r":"/wallpaper/\\d+$", "s":"img=node.querySelector('img') || node.parentNode.querySelector('img'); if (!img) return ''; src=img.src.replace('thumb/small/th-','full/wallhaven-'); return [src,src.replace('.jpg','.png')]"}
  • wall.alphacoders.com
    {"d":"wall.alphacoders.com", "r":"(//images.+?/)thumb-\\d+-(.+)", "s":"p=node.closest('.thumb-container'); return !p ? m[1]+m[2] : p.innerHTML.replace(/^[\\s\\S]*data-href.*?(\\/\\/.+?\\/download\\/.*?)\"[\\s\\S]*/, '$1')"}
  • ideas.aha.io
    {"d":"ideas.aha.io", "r":"//.+?/attachments/", "s":"var item=node.closest('.attachment'); return item.closest('.attachments').querySelector('.item[class*=\"' + item.dataset.attachmentId + '\"] img').src"}

@kuehlschrank, ping.

评论

  • Added everything except for imageban and radikal. Those are already built in.
  • @kuehlschrank, wow nice to see you here! The myanimelist rule above is outdated and no longer works. Here's the updated one: {"d":"myanimelist.net", "e":"img,li[style*='cdn-'] a,a.link-image,a[style*='cdn-']", "html":true, "r":"(//[\\w.]+?cdn.+?/.+?|//myanimelist)(t|_thumb|)(\\.(?:png|jpe?g|webp|net/.*))[\"')?]", "s":"m1=m[1].replace(/\\/r\\/\\d+x\\d+/,''); hasLarge=(m1+m[3]).match('/(anime|manga)/'); return m[2]=='t' || hasLarge && !m[3].match('/') ? [m1+'l'+m[3],m1+m[3]] : (node.src ? (m1+m[2]+m[3]).replace(/_?thumbs?\\/?/g,'') : node.closest('[style*=\"cdn\"]').style.backgroundImage.replace(/^.+?(\\/{2}.+?)(\\.(?:jpe?g|webp)).*$/,hasLarge ? '$1l$2' : '$1$2').replace(/\\/r\\/\\d+x\\d+/,''))"}

话题已锁定。