epcdata to uniqom

Adds link to uniqom search for epcdata.ru catalogs

  1. // ==UserScript==
  2. // @name epcdata to uniqom
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1.1
  5. // @description Adds link to uniqom search for epcdata.ru catalogs
  6. // @author You
  7. // @match http://*.epcdata.ru/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. jQuery('.parts-in-stock-widget_part-oem').each(function(key, val) {
  15. var $link;
  16. $link = jQuery('<a />', {'href': 'http://uniqom.ru/search?term=' + jQuery(val).text(), 'style': 'display: block;', 'target': '_blank'}).html('Найти в Uniqom').insertAfter(jQuery(val));
  17. });
  18. })();