Guest User

Untitled

a guest
Jan 13th, 2012
80
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name Dimiva
  3. // @namespace https://www.dimiva.com/*
  4. // @description Dimiva advent script
  5. // @include https://www.dimiva.com/*
  6. // ==/UserScript==
  7.  
  8. var items = {
  9. "24ins" : "Застрахователен",
  10. "0_7_wonders" : "Сладкарница",
  11. "0_svobodni_kvartiri" : "жилища под наем",
  12. "folio4cars" : "Затъмняване",
  13. "cube_fitness_club" : "Фитнес",
  14. "0_4by4" : "Off-Road",
  15. "0_qbi_group" : "Застрахователен",
  16. "0_maniq_varna" : "Дрехи втора упореба",
  17. "e4995150fc0a" : "Алмохадон",
  18. "dc17cbadd0e4" : "Зоомагазин",
  19. "64b6ec74b235" : "Онлайн допълнителни",
  20. "328bdf562eb8" : "Социална медия",
  21. "334175739e4f" : "футбол",
  22. "179984d9c1ae" : "Инсталирайте си система",
  23. "d5bafc6a611e" : "Портал за домашни",
  24. "67129c6b7478" : "Туристически сайт",
  25. "fd96d00aaa31" : "Торфозол"
  26. };
  27.  
  28. var images = document.getElementsByTagName('img');
  29.  
  30. for (var i=0; i<images.length; i++){
  31. for(var index in items) {
  32. if (images[i].src.indexOf(index) != -1) {
  33. document.evaluate("//div[contains(@class,'banner-container')]/a/img[contains(@src,'" + index +"')]/../../div/label[contains(text(),'" + items[index] + "')]/input", document, null, 9, null).singleNodeValue.setAttribute('checked', 'checked');
  34. }
  35. }
  36. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×