Advertisement
Guest User

AdsFighter!! Script

a guest
May 7th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.23 KB | None | 0 0
  1. (function () {
  2. // ==UserScript==
  3. // @name AdsFight!
  4. // @namespace http://blog.thrsh.net
  5. // @author daYOda (THRSH)
  6. // @description Fight Naughty Ads, Go Fight For Your Right!
  7. // @version 6.9
  8. // @updateURL https://userscripts.org/scripts/source/89322.meta.js
  9.  
  10. // ===========================================================
  11. // rest : image host :
  12. // ===========================================================
  13. // @match http://*.xlocker.net/*
  14. // @match http://*.imgchili.com/show/*
  15. // @match http://*.imgchili.net/show/*
  16. // @match http://*.imagearn.com/image.php?id=*
  17. // @match http://*.imagebam.com/image/*
  18. // @match http://*.imageswitch.com/*/*
  19. // @match http://*.imageporter.com/*/*
  20. // @match http://*.imagetwist.com/*/*
  21. // @match http://*.cocoimage.com/img.php?*
  22. // @match http://*.imagehaven.net/img.php?*
  23. // @match http://*.imagevenue.com/img.php?*
  24. // @match http://*.turboimagehost.com/p/*
  25. // @match http://*.pixhost.org/show/*
  26. // @match http://*.hotimg.com/image/*
  27. // @match http://*.imagecherry.com/*
  28. // @match http://*.imagebunk.com/*
  29. // @match http://*.imgonion.com/*
  30. // @match http://*.imgbar.net/*
  31. // @match http://*.pimpandhost.com/*
  32. // @match http://*.imgdino.com/*
  33. // @match http://*.imgnip.com/*
  34. // @match http://*.imgtiger.com/*
  35. // @match http://*.imgpony.com/*
  36. // @match http://*.image2you.ru/*/*
  37. // @match http://*.sexyimg.com/*/*
  38. // @match http://*.yankoimages.net/*
  39. // @match http://*.qrrro.com/*
  40. // @match http://*.comicalpic.net/img-*
  41. // @match http://*.imgserve.net/img-*
  42. // @match http://*.imgcloud.co/img-*
  43. // @match http://*.imgtube.net/img-*
  44. // @match http://*.imgpay.me/img-*
  45. // @match http://*.imgboo.me/img-*
  46. // @match http://*.imgcorn.com/img-*
  47. // @match http://*.imagecorn.com/img-*
  48. // @match http://*.imgsavvy.com/img-*
  49. // @match http://*.imgnext.com/img-*
  50. // @match http://*.imgrill.com/img-*
  51. // @match http://*.imgmoney.com/img-*
  52. // @match http://*.imagedecode.com/img-*
  53. // @match http://*.imagepicsa.com/img-*
  54. // @match http://*.imgshawt.com/img-*
  55. // @match http://*.imagegoofy.com/img-*
  56. // @match http://*.imgcandy.net/img-*
  57. // @match http://*.imgplate.com/img-*
  58. // @match http://*.imageshare.ro/img-*
  59. // @match http://*.imgnow.org/img-*
  60. // @match http://*.myhotimage.com/img-*
  61. // @match http://*.pixup.us/img-*
  62. // @match http://*.zeljeimage.com/img-*
  63. // @match http://*.fastpic.ru/view/*
  64. // @match http://*.imgtab.net/i/view/*
  65. // @match http://*.imgmade.com/images/*
  66.  
  67. // ===========================================================
  68. // adcou_ch :
  69. // ===========================================================
  70. // @match http://*.adcou.ch/*
  71.  
  72. // ===========================================================
  73. // adcraft :
  74. // ===========================================================
  75. // @match https://*.ad.cx/*
  76. // @match https://*.adcraft.co/*
  77.  
  78. // ===========================================================
  79. // adfly :
  80. // ===========================================================
  81. // @match http://*.adf.ly/*
  82. // @match http://*.9.bb/*
  83. // @match http://*.u.bb/*
  84. // @match http://*.j.gs/*
  85. // @match http://*.q.gs/*
  86. // @match http://*.ay.gy/*
  87.  
  88. // @match https://*.adf.ly/*
  89. // @match https://*.9.bb/*
  90. // @match https://*.u.bb/*
  91. // @match https://*.j.gs/*
  92. // @match https://*.q.gs/*
  93. // @match https://*.ay.gy/*
  94.  
  95. // ===========================================================
  96. // custom adfly
  97. // ===========================================================
  98.  
  99. // @match http://*.ad7.biz/*
  100. // @match http://*.acb.im/*
  101. // @match http://*.adflytutor.com/*
  102. // @match http://*.apkmania.co/*
  103. // @match http://*.apkpro.net/*
  104. // @match http://*.clacsoft.com/*
  105. // @match http://*.d0wn.us/*
  106. // @match http://*.deskanime.net/*
  107. // @match http://*.evozi.com/*
  108. // @match http://*.extremefile.com/*
  109. // @match http://*.facedasgostosas.com/*
  110. // @match http://*.freealbumdownload.net/*
  111. // @match http://*.freepremiumnow.com/*
  112. // @match http://*.gamecopyworld.com/*
  113. // @match http://*.hamdi.web.id/*
  114. // @match http://*.idws.im/*
  115. // @match http://*.isoforest.net/*
  116. // @match http://*.itsrinaldo.net/*
  117. // @match http://*.ksn.mx/*
  118. // @match http://*.marvelavengersfreegifts.com/*
  119. // @match http://*.marvelavengersrewards.com/*
  120. // @match http://*.mediasharingcenter.net/*
  121. // @match http://*.melonescomputer.com/*
  122. // @match http://*.nggablog.com/*
  123. // @match http://*.paxii.de/*
  124. // @match http://*.phpnulledscripts.com/*
  125. // @match http://*.sazlina.com/*
  126.  
  127. // ===========================================================
  128. // adfocus :
  129. // ===========================================================
  130. // @match http://*.adfoc.us/*
  131.  
  132. // ===========================================================
  133. // awsclic :
  134. // ===========================================================
  135. // @match http://*.awsclic.com/l/*
  136.  
  137. // ===========================================================
  138. // bybme :
  139. // ===========================================================
  140. // @match http://*.byb.me/*
  141.  
  142. // ===========================================================
  143. // cfly :
  144. // ===========================================================
  145. // @match http://*.cf.ly/*
  146.  
  147. // ===========================================================
  148. // embedupload :
  149. // ===========================================================
  150. // @match http://*.embedupload.com/?*
  151.  
  152. // ===========================================================
  153. // gen_winloc :
  154. // ===========================================================
  155. // @match http://*.1tiny.net/*
  156. // @match http://*.feedsportal.com/*
  157. // @match http://*.redir.su/*
  158. // @match http://*.zpag.es/*
  159. // @match http://*.p.pw/*
  160.  
  161. // ===========================================================
  162. // gen_url :
  163. // ===========================================================
  164. // @match http://*.anonym.to/*
  165.  
  166. // ===========================================================
  167. // ityim :
  168. // ===========================================================
  169. // @match http://*.ity.im/*
  170.  
  171. // ===========================================================
  172. // lienscash :
  173. // ===========================================================
  174. // @match http://*.lienscash.com/l/*
  175.  
  176. // ===========================================================
  177. // linkbucks :
  178. // ===========================================================
  179. // @match http://*.allanalpass.com/*
  180. // @match http://*.amateurteensexblog.com/*
  181. // @match http://*.amy.gs/*
  182. // @match http://*.any.gs/*
  183. // @match http://*.baberepublic.com/*
  184. // @match http://*.deb.gs/*
  185. // @match http://*.drstickyfingers.com/*
  186. // @match http://*.dyo.gs/*
  187. // @match http://*.fapoff.com/*
  188. // @match http://*.filesonthe.net/*
  189. // @match http://*.freean.us/*
  190. // @match http://*.freegaysitepass.com/*
  191. // @match http://*.galleries.bz/*
  192. // @match http://*.goneviral.com/*
  193. // @match http://*.hornywood.tv/*
  194. // @match http://*.linkbabes.com/*
  195. // @match http://*.linkbucks.com/*
  196. // @match http://*.linkgalleries.net/*
  197. // @match http://*.linkseer.net/*
  198. // @match http://*.megaline.co/*
  199. // @match http://*.miniurls.co/*
  200. // @match http://*.picbucks.com/*
  201. // @match http://*.picturesetc.net/*
  202. // @match http://*.placepictures.com/*
  203. // @match http://*.poontown.net/*
  204. // @match http://*.qqc.co/*
  205. // @match http://*.qvvo.com/*
  206. // @match http://*.realfiles.net/*
  207. // @match http://*.rqq.co/*
  208. // @match http://*.seriousdeals.net/*
  209. // @match http://*.seriousfiles.com/*
  210. // @match http://*.seriousurls.com/*
  211. // @match http://*.sexpalace.gs/*
  212. // @match http://*.seriousfiles.com/*
  213. // @match http://*.theseblogs.com/*
  214. // @match http://*.thesefiles.com/*
  215. // @match http://*.theseforums.com/*
  216. // @match http://*.thosegalleries.com/*
  217. // @match http://*.tinybucks.net/*
  218. // @match http://*.tinylinks.co/*
  219. // @match http://*.tnabucks.com/*
  220. // @match http://*.tubeviral.com/*
  221. // @match http://*.uberpicz.com/*
  222. // @match http://*.ubervidz.com/*
  223. // @match http://*.ubucks.net/*
  224. // @match http://*.ugalleries.net/*
  225. // @match http://*.ultrafiles.net/*
  226. // @match http://*.urlbeat.net/*
  227. // @match http://*.urlpulse.net/*
  228. // @match http://*.whackyvidz.com/*
  229. // @match http://*.youfap.me/*
  230. // @match http://*.yyv.co/*
  231. // @match http://*.zxxo.net/*
  232. // @match http://*.zff.co/*
  233.  
  234. // ===========================================================
  235. // lix_in :
  236. // ===========================================================
  237. // @match http://*.lix.in/-*
  238.  
  239. // ===========================================================
  240. // lnk :
  241. // ===========================================================
  242. // @match http://*.lnk.co/*
  243. // @match http://*.linkbee.com/*
  244.  
  245. // ===========================================================
  246. // lnx_lu :
  247. // ===========================================================
  248. // @match http://*.lnx.lu/*
  249.  
  250. // ===========================================================
  251. // mirrorcreator :
  252. // ===========================================================
  253. // @match http://*.mirrorcreator.com/*
  254. // @match http://*.upmirror.info/*/*
  255. // @match http://*.maxmirror.com/*/*
  256.  
  257.  
  258. // ===========================================================
  259. // rdlnk :
  260. // ===========================================================
  261. // @match http://*.rdlnk.co/*
  262.  
  263. // ===========================================================
  264. // refso :
  265. // ===========================================================
  266. // @match http://*.ref.so/*
  267.  
  268. // ===========================================================
  269. // seomafia :
  270. // ===========================================================
  271. // @match http://*.seomafia.net/*
  272.  
  273. // ===========================================================
  274. // shst :
  275. // ===========================================================
  276. // @match http://*.sh.st/*
  277.  
  278. // ===========================================================
  279. // shr77 :
  280. // ===========================================================
  281. // @match http://*.shr77.com/*
  282.  
  283.  
  284. // ===========================================================
  285. // urlcash :
  286. // ===========================================================
  287. // @match http://*.bat5.com/*
  288. // @match http://*.celebclk.com/*
  289. // @match http://*.eightteen.com/*
  290. // @match http://*.looble.net/*
  291. // @match http://*.peekatmygirlfriend.com/*
  292. // @match http://*.pornyhost.com/*
  293. // @match http://*.smilinglinks.com/*
  294. // @match http://*.urlcash.net/*
  295. // @match http://*.urlcash.org/*
  296. // @match http://*.xxxs.org/*
  297.  
  298. // ===========================================================
  299. // _1to4_me :
  300. // ===========================================================
  301. // @match http://*.1to4.me/*
  302.  
  303. // @run-at document-start
  304. // ==/UserScript==
  305.  
  306. /*
  307.  
  308. This is renamed, re bundled versions of our :
  309.  
  310. - Fly-Ads-Fly (adf.ly / 9.bb / u.bb) auto Redirect (http://userscripts.org/89322)
  311. - ity.im auto Redirect (http://userscripts.org/107588)
  312. - linkbucks auto Redirect (http://userscripts.org/98037)
  313. - adfoc.us auto Redirect (http://userscripts.org/116354)
  314.  
  315. Most influenced by :
  316. - iHatePaidLinks (http://userscripts.org/105301)
  317. - RedirectionHelper (http://userscripts.org/69797)
  318.  
  319. */
  320.  
  321. function g(id){if(id && typeof id==='string'){id=document.getElementById(id);}return id||null;}
  322. function cleanUrl(s){s = s||""; return s.trim().replace(/[\u0080-\uFFFF]+/g, "").replace(/&/ig, "&");}
  323. function urldecode(str){return unescape(decodeURIComponent(escape(cleanUrl(str))));}
  324. function isUrl(s){return /^(ftp|https?):\/\/((([0-9]{1,3}\.){3,}\d+)|([0-9a-z\.\-]+)\.([a-z]{2,4}))\/?/ig.test(s.trim());}
  325. function regexx(s,rg){var rs;if(rs=s.match(rg)){return rs[1]?rs[1]:rs[0]||rs;}}
  326. function c1(q,root){return document.evaluate(q,root?root:document,null,9,null).singleNodeValue;}
  327.  
  328. const yodUpdate = {
  329. script_id : 89322,
  330. script_version : '6.9',
  331. script_pipeId : '7015d15962d94b26823e801048aae95d',
  332. script_name : 'AdsFight!',
  333. }
  334.  
  335. function setValue(key, value) {
  336. localStorage.setItem(key, value);
  337. return false;
  338. }
  339.  
  340. function getValue(key) {
  341. var val = localStorage.getItem(key);
  342. return val;
  343. }
  344.  
  345. function usoUpdate(el) {
  346. const s_CheckUpdate = 'YodCheckUpdate' + yodUpdate.script_id;
  347. const s_Redir = true;
  348. el = el ? el : document.body;
  349. if (el) {
  350. if (!document.getElementById(s_CheckUpdate)) {
  351. var s_gm = document.createElement('script'); s_gm.id = s_CheckUpdate; s_gm.type = 'text/javascript';
  352. s_gm.src = '//usoupdater.herokuapp.com/?id=' + yodUpdate.script_id + '&ver=' + yodUpdate.script_version;
  353. if (s_Redir) s_gm.src += '&redir=yes';
  354. el.appendChild(s_gm);
  355. }
  356. }
  357. }
  358.  
  359. function appendJS(tag, str, id, head, link) {
  360. var doctype, tag = tag.toLowerCase().trim();
  361. var isJS = false;
  362. switch(tag) {
  363. case 'script':
  364. doctype = 'text/javascript';
  365. isJS = true;
  366. break;
  367. case 'style':
  368. doctype = 'text/css';
  369. head = true;
  370. break;
  371. default:
  372. return;
  373. }
  374.  
  375. var target, s_gm = document.createElement(tag);
  376. if (id) {
  377. if (document.getElementById(id)) return;
  378. else s_gm.id = id;
  379. }
  380.  
  381. s_gm.type = doctype;
  382.  
  383. if (link) s_gm.src = str;
  384. else s_gm.textContent = str;
  385.  
  386. if (head) target = document.getElementsByTagName('head')[0];
  387. else if (document.body) target = document.body;
  388.  
  389. if (target) target.appendChild(s_gm);
  390. return s_gm;
  391. }
  392.  
  393. function xhr(url, opt) {
  394. var o = {
  395. method: opt.method,
  396. url: url,
  397. data: opt.data || "",
  398. onload: function(r) {
  399. opt.callback(r.responseText);
  400. }
  401. };
  402.  
  403. if (opt.method.match(/post/i)) {
  404. o.headers = {
  405. "Content-Type": "application/x-www-form-urlencoded",
  406. "X-Requested-With": "XMLHttpRequest"
  407. }
  408. }
  409.  
  410. GM_xmlhttpRequest(o);
  411. }
  412.  
  413. var rgx, par, el, str;
  414. var Extra = {
  415. init : function () {
  416. Extra.unload();
  417.  
  418. Extra.doc = document.top || document;
  419. Extra.win = window.top || window;
  420. Extra.host = Extra.doc.location ? Extra.doc.location.hostname : '';
  421. Extra.pathname = Extra.doc.location ? Extra.doc.location.pathname : '';
  422. Extra.protocol = Extra.doc.location ? Extra.doc.location.protocol : '';
  423. Extra.href = Extra.doc.location ? urldecode(Extra.doc.location.href) : '';
  424. Extra.head = Extra.doc.head ? urldecode(Extra.doc.head.outerHTML).replace(/\\/g, '') : '';
  425. Extra.body = Extra.doc.body ? urldecode(Extra.doc.body.outerHTML).replace(/\\/g, '') : '';
  426. Extra.cdwn = 0;
  427. Extra.inval = 0;
  428. Extra.passed = 0;
  429. Extra.service = null;
  430. Extra.whitelist = "";
  431.  
  432. /*
  433.  
  434. for (var i in YOD.$W) {
  435. try {
  436. var ydoc = YOD.$W[i];
  437. var jsType = typeof ydoc;
  438. switch (jsType.toUpperCase()) {
  439. case "FUNCTION":
  440. var sydoc = ydoc.toString();
  441. //Extra.log(sydoc);
  442. if (sydoc.match(/(open|showModelessDialog)/i))
  443. YOD.$W[i] = function(){return true;};
  444. else if (sydoc.match(/(unload)/i)) {
  445. //Extra.unload();
  446. }
  447. }
  448. }
  449. catch(err){}
  450. }
  451.  
  452. for (var i in Extra.doc) {
  453. try {
  454. var ydoc = Extra.doc[i];
  455. var jsType = typeof ydoc;
  456. switch (jsType.toUpperCase()) {
  457. case "FUNCTION":
  458. var sydoc = ydoc.toString();
  459. //Extra.log(sydoc);
  460. if (sydoc.match(/(open|write|close)/i))
  461. Extra.doc[i] = function(){return "";};
  462. break;
  463. }
  464. }
  465. catch(err){}
  466. }*/
  467. },
  468.  
  469. unload : function() {
  470. try {
  471. YOD.$W.onunload = null;
  472. YOD.$W.onbeforeunload = null;
  473. if (YOD.$W.jQuery) {
  474. YOD.$W.jQuery(window).unbind("beforeunload");
  475. YOD.$W.jQuery(document).unbind("beforeunload");
  476. }
  477. }
  478. catch(err){}
  479. },
  480.  
  481. log : function(str) {
  482. console.log("Adsfight!: " + str);
  483. },
  484.  
  485. killvars : function(str) {
  486. str = str.split('|');
  487. for (var i in str) {
  488. var v = str[i].trim();
  489. YOD.$W[v] = null;
  490. }
  491. },
  492.  
  493. stamp : function() {
  494. var s = Extra.service.js ? " (Please enable Javascript for this domain)" : "";
  495. Extra.doc.title = "AdsFight! " + s;
  496. },
  497.  
  498. countDown : function() {
  499. var title = "AdsFight!";
  500. Extra.cdwn -= 1000;
  501. if (Extra.cdwn >= 1000) title += " Wait " + (Extra.cdwn / 1000) + "\"";
  502. else { Extra.win.clearInterval(Extra.inval);/* Extra.win.stop();*/ }
  503. Extra.doc.title = title;
  504. },
  505.  
  506. efall : function (str, o) {
  507. if (!o) {
  508. if (s = c1(".//script[contains(text(),'"+str+"')]")) {
  509. o = s.innerHTML;
  510. }
  511. }
  512. if (o) {
  513. eval(o);
  514. return Extra.go(eval(str));
  515. }
  516. },
  517.  
  518. go : function (url, noredir) {
  519. url = urldecode(regexx(url, /((http|ftp)[^'"]+)/i));
  520. if (!regexx(url, /^https?/)) {
  521. url = Extra.protocol + "//" + Extra.host + "/" + url.replace(/^\//, "");
  522. }
  523.  
  524. if (!(isUrl(url))) return;
  525. Extra.stamp();
  526.  
  527. if (url.match(/^(https?:\/\/)?(www\.)?mediafire\.com\//)) url = "http://nullrefer.com/?" + url;
  528. if (!noredir) {
  529. var delay = (Extra.cdwn && parseInt(Extra.cdwn)) ? Extra.cdwn : 1;
  530. if (Extra.cdwn >= 1000) Extra.inval = Extra.win.setInterval(Extra.countDown, 1000);
  531. if (Extra.cdwn <= 1) {
  532. Extra.win.location.href = url;
  533. } else {
  534. setTimeout(function() {
  535. Extra.win.location.href = url;
  536. }, delay);
  537. }
  538.  
  539. return;
  540. }
  541. },
  542.  
  543. hook : function (c) {
  544. var t = Extra.doc.head || Extra.doc.body;
  545. var s = document.createElement('script');
  546. s.innerHTML = c;
  547. t.appendChild(s);
  548. },
  549.  
  550. /*
  551. supposed to be generic: monitor skip button, auto redirect
  552. */
  553. terror_btn : function (el, par, callback) {
  554. var e = par || el;
  555. e.addEventListener("DOMSubtreeModified",
  556. function () {
  557. setTimeout(function() {
  558. if (isUrl(el.href)) {
  559. if (callback) return callback.apply(null, [el, par]);
  560. patt = new RegExp("^(.*\\.)?(" + el.host + "+)$", "i");
  561. if (!regexx(Extra.host, patt)) return Extra.go(el.href);
  562. }
  563. }, 1000);
  564. }, false);
  565. },
  566.  
  567.  
  568. /*
  569. supposed to be generic: iframe replacement
  570. */
  571. terror_iframe : function (p) {
  572. if (el = c1(".//iframe")) {
  573. p = p || "";
  574. el.src = "http://userscripts.org/scripts/show/" + yodUpdate.script_id + p;
  575. }
  576. },
  577.  
  578. setCookies : function (c) {
  579. var a, b, cooks = c.split(";");
  580. for (a in cooks) {
  581. c = cooks[a];
  582. if (c = c.trim()) Extra.doc.cookie = c + ";";
  583. }
  584. },
  585.  
  586. doRemove : function (ev) {
  587. var el = ev.target;
  588. if (el.tagName) {
  589. var pattern = new RegExp("(" + Extra.whitelist + ")", "i");
  590. if (regexx(el.tagName, pattern)) return;
  591. }
  592. ev.preventDefault();
  593. el.parentNode.removeChild(el);
  594. return false;
  595. },
  596.  
  597. bodyRemover : function () {
  598. Extra.doc.body.addEventListener("DOMNodeInserted", Extra.doRemove, false);
  599. },
  600.  
  601. services : {
  602. rest : {
  603. cookie : "entercook=1;",
  604. hosts : "",
  605. css : "\
  606. html, body {padding: 0 !important; margin: 0 !important;width: auto !important; height: auto !important;}\
  607. #interContainer, #interVeil, #blanket, #popUpDiv1 {display: none !important;}\
  608. #yod_p_center {text-align: center !important;z-index: 999 !important;}\
  609. ",
  610. fn : function () {
  611. if ((par = c1(".//div[contains(@id,'continuetoimage')]/form")) && (a = c1(".//input[@type='submit']", par.parentNode))) {
  612. a.click();
  613. }
  614. else if (par = c1(".//form/*[contains(@id,'clickto2')]")) {
  615. return par.parentNode.submit();
  616. }
  617. else if (Extra.host.match(/imgbar/i)) {
  618. if (a = c1(".//a[contains(@onclick,'pop_click')]")) a.click();
  619. par = c1(".//center/img[contains(@src,'view/')]");
  620. }
  621. else if (Extra.host.match(/pimpandhost/i)) {
  622. par = c1(".//div[contains(@class,'image')]/img[contains(@src,'pics/')]");
  623. }
  624. else if (c1(".//form/input[contains(@name,'abuse')]") && (par = c1(".//img[contains(@src,'allimages/')]"))) {
  625. par.src = par.src.replace(/\/2_/g, '/');
  626. }
  627.  
  628. else if (par =
  629. c1(".//form/*[contains(@class,'buttonPro')]")
  630. || c1(".//form/*[contains(@id,'sub_img')]")
  631. ) {
  632. return par.parentNode.submit();
  633. }
  634.  
  635. if (par || (par =
  636. c1(".//img[contains(@onload,'scale')]")
  637. || c1(".//*[contains(@onclick,'scale')]")
  638. || c1(".//img[contains(@src,'imageporter.com/i/')]")
  639. || c1(".//img[contains(@src,'img.imagearn.com/imags/')][@id='img']")
  640. || c1(".//*[contains(@onload,'ImgFitWin')]")
  641. || c1(".//*[contains(@onclick,'adjustImage')]")
  642. || c1(".//img[contains(@class,'centred')]")
  643. || c1(".//div[contains(@id,'imageviewer')]/div[contains(@class,'image_wrapper')]/img[contains(@id,'main_image')]")
  644. || c1(".//a[contains(@href,'bookilsfx')]/img")
  645. || c1(".//img[contains(@class,'bigimg')]")
  646. || c1(".//img[contains(@style,'lupa.cur')]")
  647. || c1(".//a[contains(@class,'colorbox')]/img")
  648. || c1(".//*[@id='picContainer']/a[contains(@href,'/big/')]")
  649. )) {
  650. var p, el = document.createElement('img');
  651. par = c1(".//img", par) || par;
  652. el.src = par.src;
  653. Extra.doc.body.innerHTML = "";
  654. p = document.createElement('p'); p.id = "yod_p_center";
  655. p.appendChild(el);
  656. Extra.doc.body.appendChild(p);
  657. Extra.bodyRemover();
  658. return Extra.go(par.src, 1);
  659. }
  660. if (par = c1(".//div/a[@class='subButton']")) {
  661. return Extra.go(par.href);
  662. }
  663. }
  664. },
  665.  
  666. gen_url : {
  667. hosts : "anonym.to",
  668. fn : function () {
  669. if (rgx = regexx(Extra.href, /\/\?(.+)$/i)) {
  670. return Extra.go(rgx);
  671. }
  672. }
  673. },
  674.  
  675. _1to4_me : {
  676. hosts : "1to4.me",
  677. fn : function () {
  678. if (a = c1(".//p[contains(@class,'continue')]/a")) {
  679. return Extra.go(a.href);
  680. }
  681. }
  682. },
  683.  
  684. adcraft : {
  685. hosts : "ad.cx | adcraft.co",
  686. fn : function () {
  687. if (rgx = regexx(Extra.body, /(https\:\/\/adcraft\.co\/go\/[^"]+)/i)) {
  688. return Extra.go(rgx);
  689. }
  690. }
  691. },
  692.  
  693. adcou_ch : {
  694. hosts : "adcou.ch",
  695. fn : function () {
  696. if (a = c1(".//div[contains(@id,'SkipAd')]/a")) {
  697. return Extra.go(a.href);
  698. }
  699. }
  700. },
  701.  
  702. adfly : {
  703. cookie : "PHPSESSID=;adf1=;adf2=;adf3=;adf4=;",
  704. hosts : "adf.ly | 9.bb | u.bb | j.gs | q.gs | ay.gy | ad7.biz | acb.im | adflytutor.com | apkmania.co | apkpro.net | clacsoft.com | d0wn.us | deskanime.net | evozi.com | extremefile.com | facedasgostosas.com | freealbumdownload.net | freepremiumnow.com | gamecopyworld.com | hamdi.web.id | idws.im | isoforest.net | itsrinaldo.net | ksn.mx | marvelavengersfreegifts.com | marvelavengersrewards.com | mediasharingcenter.net | melonescomputer.com | nggablog.com | paxii.de | phpnulledscripts.com | sazlina.com",
  705. addon : true,
  706. vars : "jQuery",
  707.  
  708. fn : function () {
  709. var a, s, c = 0;
  710.  
  711. if (
  712. (rgx = regexx(Extra.href, /int\/.*?(http.*?)$/i)) ||
  713. (rgx = regexx(Extra.href, /\d+\/((https?\:\/\/)?[0-9a-z\-].+)$/i))
  714. ) {
  715. if (!regexx(rgx, /^https?/)) rgx = "http://" + rgx;
  716. if (isUrl(rgx)) {
  717. return Extra.go(rgx);
  718. }
  719. }
  720.  
  721. if (rgx = regexx(Extra.href, /(\/ad)?\/locked(\/|\?)/i)) {
  722. if (a = c1(".//a", g('continue'))) {
  723. Extra.cdwn = 5000;
  724. return Extra.go(a.href);
  725. }
  726. }
  727. }
  728. },
  729.  
  730. adfocus : {
  731. hosts : "adfoc.us",
  732. fn : function () {
  733. if (rgx = regexx(Extra.body, /(\/serve\.?\/?interstitial.*)"/i)) {
  734. return xhr("http://adfoc.us" + rgx, {
  735. method: "GET",
  736. callback: function(r) {
  737. if (rgx = regexx(urldecode(r), /showSkip.*<a.*href="([^"]+)/i)) {
  738. return Extra.go(rgx);
  739. }
  740. }
  741. });
  742. } /*else if (rgx = regexx(Extra.body, /(http\:\/\/adfoc\.us\/serve\/click\/.[^'"]+)/i)) {
  743. return Extra.go(rgx);
  744. }*/ else {
  745. return Extra.efall('click_url');
  746. }
  747. }
  748. },
  749.  
  750. awsclic : {
  751. hosts : "awsclic.com",
  752. fn : function () {
  753. if (rgx = regexx(Extra.body, /acceder\.png.*?alt="([^"]+)/i)) {
  754. return Extra.go(rgx);
  755. }
  756. }
  757. },
  758.  
  759. bybme : {
  760. hosts : "byb.me",
  761. fn : function () {
  762. if (rgx = regexx(Extra.head, /#skip_button.*?href".*?,.*?"([^"]+)/i)) {
  763. return Extra.go(rgx);
  764. }
  765. }
  766. },
  767.  
  768. cfly : {
  769. hosts : "cf.ly",
  770. fn : function () {
  771. if (a = c1(".//div[contains(@id,'skipme')]/a")) {
  772. return Extra.go(a.href);
  773. }
  774. }
  775. },
  776.  
  777. embedupload : {
  778. hosts : "embedupload.com",
  779. fn : function () {
  780. if (a = c1(".//div[contains(@class,'categories')]/span/b/a[@target='_blank']")) {
  781. return Extra.go(a.href);
  782. }
  783. }
  784. },
  785.  
  786. gen_winloc : {
  787. hosts : "1tiny.net | feedsportal.com | redir.su | redir.su | zpag.es",
  788. fn : function () {
  789. if (
  790. (rgx = regexx(Extra.head, /window\.location\s?=\s?"([^"]+)/i))
  791. || (rgx = regexx(Extra.body, /location(?:\.href|)\s?=\s?\\?'?"?([^\\"']+)/i))
  792. //|| (rgx = regexx(Extra.body, /var\slink\s?=\s?'([^']+)/i))
  793. || (rgx = regexx(Extra.body, /href="([^"]+).*redirected/i))
  794. ) {
  795. return Extra.go(rgx);
  796. }
  797. }
  798. },
  799.  
  800. ityim : {
  801. hosts : "ity.im",
  802. fn : function () {
  803. if(typeof YOD.$W.redirect==='function'){if(YOD.$W.parent)return YOD.$W.redirect();}
  804. if (par = c1(".//frameset[contains(@id,'topandbottom')]")) {
  805. if (el = c1(".//frame[contains(@id,'main')]", par) || c1(".//frame[contains(@src,'interheader.php')]")) {
  806. return Extra.go(el.src);
  807. }
  808. }
  809. //return Extra.hook('if(typeof redirect===\'function\'){if(parent)redirect();}');
  810. }
  811. },
  812.  
  813. lienscash : {
  814. hosts : "lienscash.com",
  815. fn : function () {
  816. if (el = c1(".//span/a[@class='redirect']")) {
  817. return Extra.go(el.href);
  818. }
  819. }
  820. },
  821.  
  822. linkbucks : {
  823. js : 1,
  824. hosts : "allanalpass.com | amateurteensexblog.com | amy.gs | any.gs | baberepublic.com | deb.gs | drstickyfingers.com | dyo.gs | fapoff.com | filesonthe.net | freean.us | freegaysitepass.com| galleries.bz | goneviral.com | hornywood.tv | linkbabes.com | linkbucks.com | linkgalleries.net | linkseer.net | megaline.co| miniurls.co | picbucks.com | picturesetc.net | placepictures.com | poontown.net | qqc.co | qvvo.com | realfiles.net | rqq.co | seriousdeals.net | seriousfiles.com | seriousurls.com | sexpalace.gs | theseblogs.com | thesefiles.com | theseforums.com | thosegalleries.com | tinybucks.net | tinylinks.co | tnabucks.com | tubeviral.com | uberpicz.com | ubervidz.com | ubucks.net | ugalleries.net | ultrafiles.net | urlbeat.net | urlpulse.net | whackyvidz.com | youfap.me | yyv.co | zxxo.net | zff.co",
  825. fn : function () {
  826.  
  827. if (rgx = regexx(Extra.pathname, /^\/url\/(.+)$/i)) {
  828. return Extra.go(rgx);
  829. }
  830. else if (rgx = regexx(Extra.href, /(\/(locked|verify)+)$/i)) {
  831. return Extra.go(Extra.href.replace(rgx, ''));
  832. }
  833. else if (rgx = regexx(Extra.body, /\/director\/\?t=([^'"]+)/)) {
  834. //Extra.terror_iframe("/?t=" + rgx);
  835. }
  836.  
  837. // fallback
  838. if (el = c1(".//a[contains(@id,'skiplink')]")) {
  839. Extra.terror_btn(el, false, function(el, par) {
  840. el.onclick({which: true});
  841. //el.onclick.apply(this, [{which: true}]);
  842. });
  843. }
  844. }
  845. },
  846.  
  847. lix_in : {
  848. hosts : "lix.in",
  849. fn : function () {
  850. if ((par = c1(".//form/input[@name='tiny']")) && !c1(".//input[@name='capt']", par.parentNode) && (a = c1(".//input[@type='submit']", par.parentNode))) {
  851. a.click();
  852. } else if (a = c1(".//iframe[@name='ifram']")) {
  853. return Extra.go(a.src);
  854. }
  855. }
  856. },
  857.  
  858. lnk : {
  859. hosts : "linkbee.com | lnk.co",
  860. fn : function () {
  861. if (
  862. (rgx = regexx(Extra.body, /id="urlholder"\svalue="([^"]+)/i)) ||
  863. (rgx = regexx(Extra.body, /id="dest"\ssrc="([^"]+)/i))
  864. ) {
  865. return Extra.go(rgx);
  866. }
  867. }
  868. },
  869.  
  870. lnx_lu : {
  871. hosts : "lnx.lu",
  872. fn : function () {
  873. if (el = c1(".//a/img[contains(@src,'skipadbtn')]")) {
  874. return Extra.go(el.parentNode.href);
  875. }
  876. }
  877. },
  878.  
  879. mirrorcreator : {
  880. hosts : "mirrorcreator.com | upmirror.info | maxmirror.com",
  881. fn : function () {
  882. if (
  883. (a = c1(".//div[@id='redirectlink']//a"))
  884. || (a = c1(".//div[contains(@id,'download_url')]//a"))
  885. ) {
  886. return Extra.go(a.href);
  887. }
  888. }
  889. },
  890.  
  891. ppw : {
  892. hosts : "p.pw",
  893. fn : function () {
  894. if (rgx = regexx(Extra.body, /location(?:\.href|)\s?=\s?\\?'?"?([^\\"']+)/ig)) {
  895. return Extra.go(rgx);
  896. }
  897. }
  898. },
  899.  
  900. rdlnk : {
  901. hosts : "rdlnk.co",
  902. fn : function () {
  903. if (a = c1(".//input[@id='urlholder']")) {
  904. return Extra.go(a.value);
  905. }
  906. }
  907. },
  908.  
  909. refso : {
  910. hosts : "ref.so",
  911. fn : function () {
  912. if (a = c1(".//div[@id='btn_open']")) {
  913. if (a = c1(".//a[contains(@class,'link2')]", a)) {
  914. return Extra.go(a.href);
  915. }
  916. }
  917. }
  918. },
  919.  
  920. seomafia : {
  921. hosts : "seomafia.net",
  922. fn : function () {
  923. if (a = c1(".//a[contains(@title,'Click to proceed')]")) {
  924. return Extra.go(a.href);
  925. }
  926. }
  927. },
  928.  
  929. shst : {
  930. hosts : "sh.st",
  931. fn : function () {
  932. setTimeout(function() {
  933. return xhr(YOD.$W.app.options.adSessionNotifier.callbackUrl, {
  934. method: "POST",
  935. data: "sessionId=" + YOD.$W.app.options.adSessionNotifier.sessionId + "&browserToken=" + Math.round(new Date().getTime() / 1000),
  936. callback: function(r) {
  937. r = JSON.parse(r);
  938. if (r.status == "ok" && r.destinationUrl) {
  939. return Extra.go(r.destinationUrl);
  940. }
  941. }
  942. });
  943. }, 6000);
  944.  
  945. Extra.terror_iframe();
  946.  
  947. // fallback
  948. if ((el = c1(".//a[@id='skip_button']")) && (par = c1(".//div[@class='skip-add-container']"))) {
  949. Extra.terror_btn(el, par);
  950. }
  951. }
  952. },
  953.  
  954. shr77 : {
  955. hosts : "shr77.com",
  956. fn : function () {
  957. this.terror_iframe();
  958.  
  959. if (rgx = regexx(Extra.head, /#loading.*?href.*?,.*?"([^"]+)/i)) {
  960. return Extra.go(rgx);
  961. }
  962.  
  963. if (a = c1(".//a[@id='loading']")) {
  964. Extra.terror_btn(a);
  965. return this.go(a.href);
  966. }
  967. }
  968. },
  969.  
  970. urlcash : {
  971. hosts : "bat5.com | celebclk.com | eightteen.com | looble.net | peekatmygirlfriend.com | pornyhost.com | smilinglinks.com | urlcash.net | urlcash.org | xxxs.org",
  972. fn : function () {
  973. if (rgx = regexx(Extra.body, /linkDestUrl\s?=\s?'([^']+)/i)) {
  974. return Extra.go(rgx);
  975. }
  976. }
  977. },
  978. }
  979. }
  980.  
  981. function doStuff(init) {
  982. var fn, css;
  983.  
  984. if (init) {
  985. usoUpdate();
  986. Extra.init();
  987. }
  988.  
  989. for (i in Extra.services) {
  990. var doc, service = Extra.services[i], hosts = service.hosts.replace(/\s/g, "") || "";
  991. if (init && !hosts) continue;
  992. if (hosts) {
  993. var pattern = new RegExp("^(.*\\.)?(" + hosts + "+)$", "i");
  994. doc = regexx(Extra.host, pattern);
  995. }
  996.  
  997. if (!init || doc) {
  998. Extra.service = service;
  999. Extra.stamp();
  1000. if (css = service.css) appendJS("style", css, "adsfight_css");
  1001. if (cookie = service.cookie) Extra.setCookies(cookie);
  1002. if (vars = service.vars) Extra.killvars(vars);
  1003. if (service.addon) {
  1004. // get
  1005. var key = "IUhpVG9tbXk=";
  1006. var func = 'if(s=YOD.$W.eu){z=f="";s=s.toString();P=s.indexOf(atob("'+key+'"));if(P!=-1){s=s.substr(0,P);}for(l=0;l<s.length;l++){if((l%2)==0){f+=s.charAt(l);}else{z=s.charAt(l)+z;}}s=f+z;s=atob(s);s=s.substring(2,s.length);if(isUrl(s)){return Extra.go(s);}}';
  1007. var yVoid = new Function("YOD", "Extra", "isUrl", func);
  1008. yVoid(YOD,Extra,isUrl);
  1009. }
  1010.  
  1011. if (fn = service.fn) return fn.apply(Extra);
  1012. }
  1013. }
  1014.  
  1015. doStuff();
  1016. }
  1017.  
  1018. function doExec() {
  1019. try {
  1020. if (window.chrome && (unsafeWindow == window)) {
  1021. YOD.$W = (function() {
  1022. var el = document.createElement('a');
  1023. el.setAttribute('onclick', 'return window;');
  1024. return el.onclick();
  1025. }());
  1026. } else {
  1027. YOD.$W = unsafeWindow;
  1028. }
  1029.  
  1030. if (typeof YOD.$W === 'undefined') {
  1031. setTimeout(doExec, 200);
  1032. } else {
  1033. if (window.self !== window.top) return;
  1034. document.addEventListener("DOMContentLoaded", doStuff);
  1035. }
  1036. } catch(e) {
  1037. //setTimeout(doExec, 1000);
  1038. }
  1039. }
  1040.  
  1041. var YOD = {};
  1042. //YOD.$Opera = window.opera || null;
  1043. doExec();
  1044. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement