Дополнения для браузера Firefox
Войти
Предпросмотр AliExpress Bundle Redirect

AliExpress Bundle Redirect от Nox

Redirects AliExpress Bundle Deal links to their respective item page.

0 (0 отзывов)0 (0 отзывов)
Скачать Firefox
Скачать файл

Метаданные расширения

Об этом расширении
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.
Комментарии разработчика
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"
]
}
}
}
}
Оценено 0 рецензентами на 0
Войдите, чтобы оценить это расширение
Оценок пока нет

Рейтинг сохранён

5
0
4
0
3
0
2
0
1
0
Пока отзывов нет
Разрешения и данные

Опциональные разрешения:

  • Получать доступ к вашим данных на сайтах в aliexpress.com домене
  • Получать доступ к вашим данных на сайтах в aliexpress.ru домене
  • Получать доступ к вашим данных на сайтах в aliexpress.us домене

Сбор данных:

  • Разработчик сообщает, что это расширение не требует сбора данных.
Подробнее
Больше сведений
Версия
1.0
Размер
9,45 КБ
Последнее обновление
3 дня назад (15 мар. 2026 г.)
Связанные категории
  • Инструменты поиска
  • Шоппинг
Лицензия
Лицензия MIT
История версий
  • Просмотреть все версии
Метки
  • ad blocker
  • content blocker
  • search
  • shopping
Добавить в подборку
Пожаловаться на это дополнение
Перейти на домашнюю страницу Mozilla

Дополнения

  • О сайте
  • Блог дополнений для Firefox
  • Мастерская расширений
  • Центр разработчика
  • Политики разработчика
  • Блог Сообщества
  • Форум
  • Сообщить об ошибке
  • Руководство по написанию отзывов

Браузеры

  • Desktop
  • Mobile
  • Enterprise

Продукты

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Приватность
  • Куки
  • Юридическая информация

За исключением случаев, описанных здесь, содержимое этого сайта лицензировано на условиях лицензии Creative Commons «Атрибуция — На тех же условиях» версии 3.0 или любой более поздней версии.