Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wikrie/9dea5156df7de7339e58b59bca004c38 to your computer and use it in GitHub Desktop.
Save wikrie/9dea5156df7de7339e58b59bca004c38 to your computer and use it in GitHub Desktop.
eBay Kleinanzeigen - Anzeige duplizieren
// ==UserScript==
// @namespace https://github.com/J05HI
// @name eBay Kleinanzeigen - Anzeige duplizieren
// @description Bietet eine "Anzeige duplizieren" Funktion beim Bearbeiten einer vorhandenen Anzeige in eBay Kleinanzeigen.
// @icon http://www.google.com/s2/favicons?domain=www.kleinanzeigen.de
// @copyright 2020, J05HI (https://github.com/J05HI)
// @license MIT
// @version 1.0.2
// @match https://www.kleinanzeigen.de/p-anzeige-bearbeiten.html?adId=*
// @grant none
// @require https://code.jquery.com/jquery-3.5.1.min.js
// ==/UserScript==
(function() {
'use strict';
$('#pstad-submit').after('<button id="pstad-duplicate" class="button" type="submit" style="background-color: #86B817;"><span>Anzeige duplizieren</span></button>');
$('#pstad-duplicate').click(function(e) {
e.preventDefault();
$('#postad-id').val('');
$('#adForm').submit();
});
})();
@wikrie
Copy link
Author

wikrie commented Apr 9, 2021

just a Fork very usefull

@wikrie
Copy link
Author

wikrie commented Apr 27, 2021

Update
// @require https://code.jquery.com/jquery-3.5.1.min.js
so now it is working in MACOS Safari

@stackcoder
Copy link

stackcoder commented Jan 4, 2022

@wikrie May check out my vanilla-js version without the jQuerry dependency.

@wikrie
Copy link
Author

wikrie commented Jan 4, 2022

@stackcoder thanks for your work but your version is also not working with Safari under MAcOS, so I still use my old version. if you can find a running version for Safari that would be a major upgrade.

@mastermns
Copy link

I assume you did add the code in "Userscripts" and saved it and it shows as activated?
The button only shows when editing an advertisement.

@wikrie
Copy link
Author

wikrie commented Jan 11, 2022

@mastermns yes of course the general usage and activation of userscript is clear. But the button will not be shown under edit page. In the past the button appears after changing the require link from http to https but nowadays it will not be shown. Don’t know why.

@wikrie
Copy link
Author

wikrie commented Jan 11, 2022

I try it again right now and now the button is there, did not change anything, sounds like a format issue of the script or something like that. thanks for your help @mastermns

@wikrie
Copy link
Author

wikrie commented May 4, 2023

I update the Script from ebay-kleinanzeigen to kleinanzeigne only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment