Firefox Browser Add-ons
Log in
Preview of AliExpress Bundle Redirect

AliExpress Bundle Redirect by Nox

Redirects AliExpress Bundle Deal links to their respective item page.

0 (0 reviews)0 (0 reviews)
Download Firefox
Download file

Extension Metadata

About this extension
All this does is check clicked URLs from any of the aliexpress domains if they contain the string "bundle", and if so, extracts the product ID and directly links to the product. The addon icon displays the activation state, left click to toggle on or off. This addon collects no data, and stores no information except your choice of toggling it on or off.

AliExpress may change their URL composition at some point in the future. I may or may not come around to respond to that change by updating this.
Developer comments
For those who want to build this themselves, here's the source code:

background.js:

let isEnabled = true;

browser.storage.local.get("isEnabled").then((res) => {
if (res.isEnabled !== undefined) {
isEnabled = res.isEnabled;
}
updateIcon();
});

function updateIcon() {
const path = isEnabled ? "icons/icon-on.svg" : "icons/icon-off.svg";
browser.action.setIcon({ path: path });
browser.action.setTitle({ title: isEnabled ? "AliExpress Redirect: ON" : "AliExpress Redirect: OFF" });
}

browser.action.onClicked.addListener(() => {
isEnabled = !isEnabled;
browser.storage.local.set({ isEnabled: isEnabled });
updateIcon();
});

browser.webRequest.onBeforeRequest.addListener(
(details) => {
if (!isEnabled) return {};
try {
const url = new URL(details.url);
const pathLower = url.pathname.toLowerCase();
if (pathLower.includes("bundledeal") || pathLower.includes("bundle")) {
const productIds = url.searchParams.get("productIds");
if (productIds) {
const mainId = productIds.split(":")[0];
if (mainId && /^\d+$/.test(mainId)) {
const newUrl = `https://${url.hostname}/item/${mainId}.html`;
console.log(`Redirecting ${details.url} -> ${newUrl}`);
return { redirectUrl: newUrl };
}
}
}
} catch (e) {
console.error("Error processing URL", e);
}

return {};
},
{
urls: [
"*://*.aliexpress.com/*",
"*://*.aliexpress.ru/*",
"*://*.aliexpress.us/*"
],
types: ["main_frame"]
},
["blocking"]
);


manifest.json:

{
"manifest_version": 3,
"name": "AliExpress Bundle Redirect",
"version": "1.0",
"description": "Redirects AliExpress Bundle Deal links to their respective item page.",
"permissions": [
"webRequest",
"webRequestBlocking",
"storage"
],
"host_permissions": [
"*://*.aliexpress.com/*",
"*://*.aliexpress.ru/*",
"*://*.aliexpress.us/*"
],
"background": {
"scripts": [
"background.js"
]
},
"action": {
"default_title": "AliExpress Redirect: ON",
"default_icon": "icons/icon-on.svg"
},
"browser_specific_settings": {
"gecko": {
"id": "alibundle-redirect@nox.local",
"strict_min_version": "109.0",
"data_collection_permissions": {
"required": [
"none"
]
}
}
}
}
Rated 0 by 0 reviewers
Log in to rate this extension
There are no ratings yet

Star rating saved

5
0
4
0
3
0
2
0
1
0
No reviews yet
Permissions and data

Optional permissions:

  • Access your data for sites in the aliexpress.com domain
  • Access your data for sites in the aliexpress.ru domain
  • Access your data for sites in the aliexpress.us domain

Data collection:

  • The developer says this extension doesn't require data collection.
Learn more
More information
Version
1.0
Size
9.45 KB
Last updated
3 days ago (Mar 15, 2026)
Related Categories
  • Search Tools
  • Shopping
License
MIT License
Version History
  • See all versions
Tags
  • ad blocker
  • content blocker
  • search
  • shopping
Add to collection
Report this add-on
Go to Mozilla's homepage

Add-ons

  • About
  • Firefox Add-ons Blog
  • Extension Workshop
  • Developer Hub
  • Developer Policies
  • Community Blog
  • Forum
  • Report a bug
  • Review Guide

Browsers

  • Desktop
  • Mobile
  • Enterprise

Products

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Privacy
  • Cookies
  • Legal

Except where otherwise noted, content on this site is licensed under the Creative Commons Attribution Share-Alike License v3.0 or any later version.