Amazon 自动批量取消 subscribe and save

Amazon Subscribe & Save 没有批量cancel的功能。这里给大家提供一个自动化批量cancel的办法。原理是用Chrome JavaScript Bookmarklet 一键取消所有 Subscribe & Save 商品。

如何在 Chrome 浏览器中创建这个 Bookmarklet:

  1. 右键点击浏览器的书签栏,选择“添加页面(Add page…)“。 将以下代码粘贴进“URL”栏,然后保存。
    SS bulk cancel - Pastebin.com
  • 从页面中提取每个订阅商品的 SubscriptionId
  • 构造对应的取消请求 URL
  • 每个取消链接会自动在新标签页打开,从而取消该商品的订阅
javascript:(function(){let baseUrl="https://www.amazon.com/auto-deliveries/ajax/cancelSubscriptionAction?actionType=cancelSubscription&canceledNextDeliveryDate=1730880000000&subscriptionId=";let spans=document.querySelectorAll('span[data-action="edit-link-subscription-tablet"]');let subscriptionIds=[...spans].map(span=>{let data=span.getAttribute('data-edit-link-subscription-tablet');let match=data.match(/subscriptionId=([&"]+)/);return match?match[1]:null;}).filter(id=>id);console.log(`Found ${subscriptionIds.length} subscription IDs.`);function openNextUrl(index){if(index>=subscriptionIds.length){console.log('All URLs have been opened.');return;}let id=subscriptionIds[index];let url=baseUrl+id;console.log(`Opening URL: ${url}`);let newWindow=window.open(url,'_blank');setTimeout(()=>{openNextUrl(index+1);},1000);}openNextUrl(0);})();
  1. 用Chorme 访问这个网址:
    :backhand_index_pointing_right: https://www.amazon.com/auto-deliveries/subscriptionList?listFilter=active

  2. 连续点击“Show more subscriptions(显示更多订阅)”按钮,直到你可以看到所有正在订阅的商品。

  3. 点击刚刚创建的 bookmarklet(书签工具)。

  4. 每个订阅项都会在一个新标签页中打开并自动取消

17 个赞

Mark一下

感谢前端高手分享!

谢谢分享!

感谢分享! :clap: