简单解决v2新浪图床显示问题

try to take over the world!

目前為 2019-12-09 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name 简单解决v2新浪图床显示问题
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author huanchena
  7. // @match *://*.v2ex.com/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. // Your code here...
  15. $(function(){
  16.  
  17. var imgs=$("img");
  18. for(var i=0;i<imgs.length;i++){
  19. //https://wx1.sinaimg.cn/mw1024/5e5fbf46ly1fwki3soufvj21900xr7wi.jpg
  20. if (imgs[i].src.indexOf("sinaimg.cn/")) {
  21. $(imgs[i]).attr("referrerpolicy","no-referrer").attr("src",imgs[i].src.replace("https://","http://"));
  22. }
  23. }
  24. });
  25.  
  26.  
  27. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址