您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Installiert bei jedem Inserat Schnellzugriffsknöpfe, um Artikel wie im Inserat bei Amazon und eBay zu suchen
当前为
// ==UserScript== // @name Kleinanzeigen Schnellbuttons // @namespace softwarecanoe.de // @description Installiert bei jedem Inserat Schnellzugriffsknöpfe, um Artikel wie im Inserat bei Amazon und eBay zu suchen // @include http://kleinanzeigen.ebay.de/* // @version 1 // @copyright Eugen Kremer // @grant GM_xmlhttpRequest // ==/UserScript== (function(){ var searchUrls = [ {name:"Amazon", url:"http://www.amazon.de/s?tag=wwwsoftwareca-21&field-keywords=", icon:"http://www.amazon.de/favicon.ico"}, {name:"eBay.de", url:"http://www.ebay.de/sch/i.html?_nkw=", icon:"http://www.ebay.de/favicon.ico"} ]; function GetAdvertsHeaders(){ var list = document.querySelectorAll(".ad-listitem-main h2"); if (!list || list.length == 0) return null; return list; } function InstallButton(h){ var parent = h.parentNode; var buttonsEl = document.createElement("div"); for(var i=0; i<searchUrls.length; i++){ var buttonEl = document.createElement("a"); buttonEl.style = " margin:3px; float:left; height:16px; width:16px; background: url("+searchUrls[i].icon+")"; buttonEl.target = "_blank"; buttonEl.href = searchUrls[i].url + h.textContent; buttonEl.alt = searchUrls[i].name; buttonsEl.appendChild(buttonEl); } parent.appendChild(buttonsEl); } function InstallButtons(){ var headers = GetAdvertsHeaders(); if (!headers) return; for(var i=0; i<headers.length; i++){ InstallButton(headers[i]); } } window.addEventListener('load', function() { try{ InstallButtons(); }catch(e){ if (typeof(console)!='undefined') console.log(e); } }, true ); })();