Zakop everywhere

dodaje możliwośc zakopania znalezisk sponsorowanych i na głównej

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         Zakop everywhere
// @namespace    http://www.wykop.pl/
// @version      1.1.0
// @description  dodaje możliwośc zakopania znalezisk sponsorowanych i na głównej
// @author       MirkoStats
// @match        http://www.wykop.pl/wykopalisko/*
// @match        http://www.wykop.pl/strona/*
// @match        http://www.wykop.pl/domena/*
// @match        http://www.wykop.pl/tag/znaleziska/*
// @match        http://www.wykop.pl/
// @grant        none
// @license      MIT
// ==/UserScript==

var main = function() {
	var hash = wykop.params.hash;
	var location = wykop.params.action;
	var highlightZakop = { color : '#FF6A00!important' };
	$("#itemsStream .diggbox:not(:has(.dropdown-show), .digout, .burried, :contains('+'))").each(function() {
		var $this = $(this);
		var id = $this.parent().data('id');
		$this.append($('<a class="dropdown-show sponsorowane" href="#">zakop&nbsp;</a><div class="dropdown fix-dropdown bodyClosable"><div><ul><li><a href="http://www.wykop.pl/ajax2/links/voteDown/'+ id +'/1/hash/'+ hash +'/" class="ajax">duplikat</a></li><li><a href="http://www.wykop.pl/ajax2/links/voteDown/'+ id +'/2/hash/'+ hash +'/" class="ajax">spam</a></li><li><a href="http://www.wykop.pl/ajax2/links/voteDown/'+ id +'/3/hash/'+ hash +'/" class="ajax">informacja nieprawdziwa</a></li><li><a href="http://www.wykop.pl/ajax2/links/voteDown/'+ id +'/4/hash/'+ hash +'/" class="ajax">treść nieodpowiednia</a></li><li><a href="http://www.wykop.pl/ajax2/links/voteDown/'+ id +'/5/hash/'+ hash +'/" class="ajax">nie nadaje się</a></li></ul></div></div>'));
		(location === 'upcoming' ? $('.sponsorowane').css(highlightZakop).html('zakop&nbsp;(s)') : false);
	});
};

var script = document.createElement('script');
script.type = "text/javascript";
script.textContent = '(' + main.toString() + ')();';
document.body.appendChild(script);