Skip to content

Instantly share code, notes, and snippets.

@Lanchon
Last active February 2, 2025 00:03
Show Gist options
  • Save Lanchon/a89282be17dde6f46725a5325abd8dee to your computer and use it in GitHub Desktop.
Save Lanchon/a89282be17dde6f46725a5325abd8dee to your computer and use it in GitHub Desktop.
UserScript for sorting items by price including shipping on AliExpress
// ==UserScript==
// @name AliExpress Sort by Shipped Price
// @namespace https://github.com/Lanchon/aliexpress-show-shipped-price
// @version 4
// @description Sort items by price including shipping on AliExpress
// @author Maxim Mazurok, Lanchon
// @match *://*.aliexpress.tld/*
// @grant none
// @downloadURL https://gist.github.com/Lanchon/a89282be17dde6f46725a5325abd8dee/raw/aliexpress-show-shipped-price.user.js
// ==/UserScript==
const footer = document.createElement('div');
footer.style.position = 'relative';
footer.style.padding = '15px 20px';
footer.style.width = '100%';
footer.style.backgroundColor = '#007bff';
footer.style.backgroundColor = 'gray';
const button = document.createElement('button');
button.innerText = 'Sort items by price including shipping';
button.style.padding = '5px 50px';
button.style.backgroundColor = '#fd384f';
button.style.color = 'white';
button.style.border = 'none';
button.style.borderRadius = '15px';
button.style.fontSize = '15px';
button.style.fontWeight = '700';
button.style.cursor = 'pointer';
footer.appendChild(button);
button.addEventListener('click', function() {
fetch('https://raw.githubusercontent.com/Maxim-Mazurok/aliexpress-show-shipped-price/refs/heads/main/index.js')
.then(response => response.text())
.then(code => eval(code))
.catch(err => alert(err));
});
document.body.appendChild(footer);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment