正在从Instagram图片源中删除链接

Removing Link from Instagram image feed

本文关键字:删除 链接 Instagram      更新时间:2023-09-26

我正在使用一些JavaScript来拉入我的Instagram订阅源,但我想删除将它们带到Instagram页面的每个图像的链接。我试过几次,但最终都失败了,有人知道我应该去掉什么吗?

 embedImage = function(photo) {
var a, img;
img = $('<img/>').attr({
  //'src': photo.images.thumbnail.url,
  //'width': photo.images.thumbnail.width,
  //'height': photo.images.thumbnail.height
  'src': photo.images.standard_resolution.url,
  'width': photo.images.standard_resolution.width,
  'height': photo.images.standard_resolution.height
});
a = $('<a />').attr({
  'href': photo.images.standard_resolution.url,
  'target': '_blank',
  'class': 'pull-left'
}).append(img).appendTo(tag_name);
 };
onPhotoLoaded = function(data) {
var photo, _i, _len, _ref, _results;
if (data.meta.code === 200 && data.data) {
  _ref = data.data;
  _results = [];
  for (_i = 0, _len = _ref.length; _i < _len; _i++) {
    photo = _ref[_i];
    _results.push(embedImage(photo));
  }
  return _results;
}
};

删除创建的a标记上除类之外的所有属性。