// ==UserScript==
// @name f*ck Aliexpress bundles!
// @namespace http://tampermonkey.net/
// @version 2025-01-15
// @description f*ck Aliexpress bundles!
// @author rAthus
// @match https://*.aliexpress.com/w/*
// @match https://*.aliexpress.com/gcp/*
// @match https://*.aliexpress.com/*/BundleDeals*
// @icon https://www.google.com/s2/favicons?sz=64&domain=aliexpress.com
// @grant none
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js
// ==/UserScript==
(function() {
'use strict';
setInterval(function() {
// search results page
jQuery('a.search-card-item[href*="BundleDeals"]:not(.unbundled)').each(function(){
var href = jQuery(this).attr('href');
var id = href.split('productIds=')[1].split(':')[0];
var newHref = '/item/'+id+'.html';
jQuery(this).attr('href',newHref).on('click',function(e) {
e.preventDefault();
location.href = $(this).attr('href');
return false;
});
jQuery(this).append('<center style="background:#E3E829;padding:10px;">unbundled!</center>').addClass('unbundled');
});
// bundle listing page
jQuery('.productContainer[id]:not(.unbundled)').each(function(){
var id = jQuery(this).attr('id');
var newHref = '/item/'+id+'.html';
jQuery(this).attr('href',newHref).on('click',function(e) {
e.preventDefault();
location.href = $(this).attr('href');
return false;
});;
jQuery(this).append('<center style="background:#E3E829;padding:10px;">unbundled!</center>').addClass('unbundled');
});
},250);
})();
Comments