Skip to content

Instantly share code, notes, and snippets.

@AxDSan
Created June 14, 2018 21:18
Show Gist options
  • Save AxDSan/d066d5ec0a46c680d615b41aca47412c to your computer and use it in GitHub Desktop.
Save AxDSan/d066d5ec0a46c680d615b41aca47412c to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name eBay: [For Parts Only] Enhancer
// @namespace http://tampermonkey.net/
// @version 0.1
// @description This simple script tries to enhance what eBay did not do, what I think it was supposed to be done from the beginning.
// @author 0x90
// @match http*://*.ebay.com/sch/*
// @grant none
// @require https://code.jquery.com/jquery-3.3.1.min.js
// ==/UserScript==
(function() {
'use strict';
var SecondaryText = $('.SECONDARY_INFO')
var i;
for (i = 0; i < SecondaryText.length; i++) {
if(SecondaryText[i].innerText == "Parts Only")
{
SecondaryText[i].innerHTML = '<img src="http://icons.iconarchive.com/icons/emey87/trainee/16/Signal-attention-icon.png"/> <big style="color:red;"><b>FOR PARTS ONLY!/ NOT WORKING!</b> <img src="http://icons.iconarchive.com/icons/emey87/trainee/16/Signal-attention-icon.png"/></big>';
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment