编辑:为什么这不起作用?
@match http://tumblr.com/*
$(document).ready(function() {
$(img).each(function() {
var i = $(this).attr("src");
var n = i.replace("http://", "https://");
$(this).attr("src", function() {
return n;
});
});
});
编辑:需要明确的是,我不拥有该网站。我想在 https://facebook.com/ 等网站上显示图像和 https://tumblr.com/使用 https。
最佳答案
嘿伙计,据我所知,这很简单,你想要的!您想更改所有图像源吗?
$(document).ready( function() {
$("img").each( function() {
var i = $(this).attr("src");
var n = i.replace("http://", "https://");
$(this).attr("src", function() {
return n;
});
});
});
关于javascript - 制作所有图像的来源 https ://using *. user.js,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13804590/