你现在正在访问的是萌娘百科用于保存和管理图片、音频等媒体文件的子项目萌娘共享,想要回到萌娘百科,请使用浏览器上的返回按钮、或点击这里
“User:D41D8CD98F/common.js”的版本间的差异
D41D8CD98F(讨论 | 贡献) (创建页面,内容为“(function() { $('img[src*="//static.mengniang.org"]').one('error', function() { this.src = this.src.replace('//static.mengniang.org','//img.acg.moe') }); $('img').…”) |
D41D8CD98F(讨论 | 贡献) |
||
第1行: | 第1行: | ||
(function() { | (function() { | ||
− | $('img[src*="//static.mengniang.org"]').one('error', function() { this.src = this.src.replace('//static.mengniang.org','//img.acg.moe') }); | + | $('img[src*="//static.mengniang.org"]').one('error', function() { |
+ | this.src = this.src.replace('//static.mengniang.org','//img.acg.moe'); | ||
+ | $('a').each(function() { this.href = this.href.replace('//static.mengniang.org','//img.acg.moe'}) | ||
+ | }); | ||
$('img').each(function() { this.src = this.src }) | $('img').each(function() { this.src = this.src }) | ||
})(); | })(); |
2018年8月6日 (一) 11:09的版本
(function() { $('img[src*="//static.mengniang.org"]').one('error', function() { this.src = this.src.replace('//static.mengniang.org','//img.acg.moe'); $('a').each(function() { this.href = this.href.replace('//static.mengniang.org','//img.acg.moe'}) }); $('img').each(function() { this.src = this.src }) })();