AdsBypasser

Bypass Ads

目前为 2015-05-08 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name AdsBypasser
  3. // @namespace AdsBypasser
  4. // @description Bypass Ads
  5. // @copyright 2012+, Wei-Cheng Pan (legnaleurc)
  6. // @version 5.22.1
  7. // @license BSD
  8. // @homepageURL https://adsbypasser.github.io/
  9. // @supportURL https://github.com/adsbypasser/adsbypasser/issues
  10. // @icon https://raw.githubusercontent.com/adsbypasser/adsbypasser/v5.22.1/img/logo.png
  11. // @grant unsafeWindow
  12. // @grant GM_xmlhttpRequest
  13.  
  14. // @grant GM_addStyle
  15. // @grant GM_getResourceText
  16. // @grant GM_getResourceURL
  17.  
  18. // @grant GM_getValue
  19. // @grant GM_openInTab
  20. // @grant GM_registerMenuCommand
  21. // @grant GM_setValue
  22. // @run-at document-start
  23.  
  24. // @resource alignCenter https://raw.githubusercontent.com/adsbypasser/adsbypasser/v5.22.1/css/align_center.css
  25. // @resource scaleImage https://raw.githubusercontent.com/adsbypasser/adsbypasser/v5.22.1/css/scale_image.css
  26. // @resource bgImage https://raw.githubusercontent.com/adsbypasser/adsbypasser/v5.22.1/img/imagedoc-darknoise.png
  27.  
  28. // @include http://*
  29. // @include https://*
  30. // ==/UserScript==
  31.  
  32. (function (context, factory) {
  33. if (typeof module === 'object' && typeof module.exports === 'object') {
  34. var bluebird = require('bluebird');
  35. module.exports = factory(context, bluebird.Promise);
  36. } else {
  37. var P = null;
  38. if (context.unsafeWindow.Future) {
  39. P = function (fn) {
  40. return context.unsafeWindow.Future.call(this, function (fr) {
  41. fn(fr.resolve.bind(fr), fr.reject.bind(fr));
  42. });
  43. };
  44. } else if (context.PromiseResolver) {
  45. P = function (fn) {
  46. return new context.Promise(function (pr) {
  47. fn(pr.resolve.bind(pr), pr.reject.bind(pr));
  48. });
  49. };
  50. } else {
  51. P = context.Promise;
  52. }
  53. factory(context, P);
  54. }
  55. }(this, function (context, Promise) {
  56. 'use strict';
  57. var _ = context._ = {};
  58. function setupStack () {
  59. if (Error.captureStackTrace) {
  60. Error.captureStackTrace(this, this.constructor);
  61. } else if (!this.hasOwnProperty('stack')) {
  62. var stack = (new Error()).stack.split('\n').slice(2);
  63. var e = stack[0].match(/^.*@(.*):(\d*)$/);
  64. this.fileName = e[1];
  65. this.lineNumber = parseInt(e[2], 10);
  66. this.stack = stack.join('\n');
  67. }
  68. }
  69. function AdsBypasserError (message) {
  70. setupStack.call(this);
  71. this.message = message;
  72. }
  73. AdsBypasserError.prototype = Object.create(Error.prototype);
  74. AdsBypasserError.prototype.constructor = AdsBypasserError;
  75. AdsBypasserError.prototype.name = 'AdsBypasserError';
  76. AdsBypasserError.extend = function (protoProps, staticProps) {
  77. var parent = this, child = function () {
  78. setupStack.call(this);
  79. protoProps.constructor.apply(this, arguments);
  80. };
  81. extend(child, parent, staticProps);
  82. child.prototype = Object.create(parent.prototype);
  83. extend(child.prototype, protoProps);
  84. child.prototype.constructor = child;
  85. child.super = parent.prototype;
  86. return child;
  87. };
  88. AdsBypasserError.super = null;
  89. _.AdsBypasserError = AdsBypasserError;
  90. function any (c, fn) {
  91. if (c.some) {
  92. return c.some(fn);
  93. }
  94. if (typeof c.length === 'number') {
  95. return Array.prototype.some.call(c, fn);
  96. }
  97. return Object.keys(c).some(function (k) {
  98. return fn(c[k], k, c);
  99. });
  100. }
  101. function all (c, fn) {
  102. if (c.every) {
  103. return c.every(fn);
  104. }
  105. if (typeof c.length === 'number') {
  106. return Array.prototype.every.call(c, fn);
  107. }
  108. return Object.keys(c).every(function (k) {
  109. return fn(c[k], k, c);
  110. });
  111. }
  112. function each (c, fn) {
  113. if (c.forEach) {
  114. c.forEach(fn);
  115. } else if (typeof c.length === 'number') {
  116. Array.prototype.forEach.call(c, fn);
  117. } else {
  118. Object.keys(c).forEach(function (k) {
  119. fn(c[k], k, c);
  120. });
  121. }
  122. }
  123. function map (c, fn) {
  124. if (c.map) {
  125. return c.map(fn);
  126. }
  127. if (typeof c.length === 'number') {
  128. return Array.prototype.map.call(c, fn);
  129. }
  130. return Object.keys(c).map(function (k) {
  131. return fn(c[k], k, c);
  132. });
  133. }
  134. function extend(c) {
  135. Array.prototype.slice.call(arguments, 1).forEach(function (source) {
  136. if (!source) {
  137. return;
  138. }
  139. _.C(source).each(function (v, k) {
  140. c[k] = v;
  141. });
  142. });
  143. return c;
  144. }
  145. function CollectionProxy (collection) {
  146. this._c = collection;
  147. }
  148. CollectionProxy.prototype.size = function () {
  149. if (typeof this._c.length === 'number') {
  150. return this._c.length;
  151. }
  152. return Object.keys(c).length;
  153. };
  154. CollectionProxy.prototype.at = function (k) {
  155. return this._c[k];
  156. };
  157. CollectionProxy.prototype.each = function (fn) {
  158. each(this._c, fn);
  159. return this;
  160. };
  161. CollectionProxy.prototype.find = function (fn) {
  162. var result;
  163. any(this._c, function (value, index, self) {
  164. var tmp = fn(value, index, self);
  165. if (tmp !== _.none) {
  166. result = {
  167. key: index,
  168. value: value,
  169. payload: tmp,
  170. };
  171. return true;
  172. }
  173. return false;
  174. });
  175. return result;
  176. };
  177. CollectionProxy.prototype.all = function (fn) {
  178. return all(this._c, fn);
  179. };
  180. CollectionProxy.prototype.map = function (fn) {
  181. return map(this._c, fn);
  182. };
  183. _.C = function (collection) {
  184. return new CollectionProxy(collection);
  185. };
  186. _.T = function (s) {
  187. if (typeof s === 'string') {
  188. } else if (s instanceof String) {
  189. s = s.toString();
  190. } else {
  191. throw new AdsBypasserError('template must be a string');
  192. }
  193. var T = {
  194. '{{': '{',
  195. '}}': '}',
  196. };
  197. return function () {
  198. var args = Array.prototype.slice.call(arguments);
  199. var kwargs = args[args.length-1];
  200. return s.replace(/\{\{|\}\}|\{([^\}]+)\}/g, function (m, key) {
  201. if (T.hasOwnProperty(m)) {
  202. return T[m];
  203. }
  204. if (args.hasOwnProperty(key)) {
  205. return args[key];
  206. }
  207. if (kwargs.hasOwnProperty(key)) {
  208. return kwargs[key];
  209. }
  210. return m;
  211. });
  212. };
  213. };
  214. _.P = function (fn) {
  215. if (typeof fn !== 'function') {
  216. throw new _.AdsBypasserError('must give a function');
  217. }
  218. var slice = Array.prototype.slice;
  219. var args = slice.call(arguments, 1);
  220. return function () {
  221. return fn.apply(this, args.concat(slice.call(arguments)));
  222. };
  223. };
  224. _.D = function (fn) {
  225. return new Promise(fn);
  226. };
  227. _.nop = function () {
  228. };
  229. _.none = _.nop;
  230. function log (method, args) {
  231. args = Array.prototype.slice.call(args);
  232. if (typeof args[0] === 'string' || args[0] instanceof String) {
  233. args[0] = 'AdsBypasser: ' + args[0];
  234. } else {
  235. args.unshift('AdsBypasser:');
  236. }
  237. var f = console[method];
  238. if (typeof f === 'function') {
  239. f.apply(console, args);
  240. }
  241. }
  242. _.info = function () {
  243. log('info', arguments);
  244. };
  245. _.warn = function () {
  246. log('warn', arguments);
  247. };
  248. return _;
  249. }));
  250.  
  251. (function (context, factory) {
  252. if (typeof module === 'object' && typeof module.exports === 'object') {
  253. module.exports = function (context) {
  254. var core = require('./core.js');
  255. return factory(context, core);
  256. };
  257. } else {
  258. context.$ = factory(context, context._);
  259. }
  260. }(this, function (context, _) {
  261. 'use strict';
  262. var window = context.window;
  263. var document = window.document;
  264. var DomNotFoundError = _.AdsBypasserError.extend({
  265. name: 'DomNotFoundError',
  266. constructor: function (selector) {
  267. DomNotFoundError.super.constructor.call(this, _.T('`{0}` not found')(selector));
  268. },
  269. });
  270. var $ = function (selector, context) {
  271. if (!context || !context.querySelector) {
  272. context = document;
  273. }
  274. var n = context.querySelector(selector);
  275. if (!n) {
  276. throw new DomNotFoundError(selector);
  277. }
  278. return n;
  279. };
  280. $.$ = function (selector, context) {
  281. try {
  282. return $(selector, context);
  283. } catch (e) {
  284. return null;
  285. }
  286. };
  287. $.$$ = function (selector, context) {
  288. if (!context || !context.querySelectorAll) {
  289. context = document;
  290. }
  291. var ns = context.querySelectorAll(selector);
  292. return _.C(ns);
  293. };
  294. $.toDOM = function(rawHTML) {
  295. try {
  296. var parser = new DOMParser();
  297. var DOMHTML = parser.parseFromString(rawHTML, "text/html");
  298. return DOMHTML;
  299. } catch (e) {
  300. throw new _.AdsBypasserError('could not parse HTML to DOM');
  301. }
  302. };
  303. $.removeNodes = function (selector, context) {
  304. $.$$(selector, context).each(function (e) {
  305. e.parentNode.removeChild(e);
  306. });
  307. };
  308. function searchScriptsByRegExp (pattern, context) {
  309. var m = $.$$('script', context).find(function (s) {
  310. var m = s.innerHTML.match(pattern);
  311. if (!m) {
  312. return _.none;
  313. }
  314. return m;
  315. });
  316. if (!m) {
  317. return null;
  318. }
  319. return m.payload;
  320. }
  321. function searchScriptsByString (pattern, context) {
  322. var m = $.$$('script', context).find(function (s) {
  323. var m = s.innerHTML.indexOf(pattern);
  324. if (m < 0) {
  325. return _.none;
  326. }
  327. return m;
  328. });
  329. if (!m) {
  330. return null;
  331. }
  332. return m.value.innerHTML;
  333. }
  334. $.searchScripts = function (pattern, context) {
  335. if (pattern instanceof RegExp) {
  336. return searchScriptsByRegExp(pattern, context);
  337. } else if (typeof pattern === 'string') {
  338. return searchScriptsByString(pattern, context);
  339. } else {
  340. return null;
  341. }
  342. };
  343. return $;
  344. }));
  345.  
  346. (function (context, factory) {
  347. if (typeof module === 'object' && typeof module.exports === 'object') {
  348. module.exports = function (context, GM) {
  349. var core = require('./core.js');
  350. return factory(context, GM, core);
  351. };
  352. } else {
  353. factory(context, {
  354. xmlhttpRequest: GM_xmlhttpRequest,
  355. }, context._);
  356. }
  357. }(this, function (context, GM, _) {
  358. 'use strict';
  359. var window = context.window;
  360. var document = window.document;
  361. var $ = context.$ || {};
  362. function deepJoin (prefix, object) {
  363. return _.C(object).map(function (v, k) {
  364. var key = _.T('{0}[{1}]')(prefix, k);
  365. if (typeof v === 'object') {
  366. return deepJoin(key, v);
  367. }
  368. return _.T('{0}={1}').apply(this, [key, v].map(encodeURIComponent));
  369. }).join('&');
  370. }
  371. function toQuery (data) {
  372. var type = typeof data;
  373. if (data === null || (type !== 'string' && type !== 'object')) {
  374. return '';
  375. }
  376. if (type === 'string') {
  377. return data;
  378. }
  379. if (data instanceof String) {
  380. return data.toString();
  381. }
  382. return _.C(data).map(function (v, k) {
  383. if (typeof v === 'object') {
  384. return deepJoin(k, v);
  385. }
  386. return _.T('{0}={1}').apply(this, [k, v].map(encodeURIComponent));
  387. }).join('&');
  388. }
  389. function ajax (method, url, data, headers) {
  390. var l = document.createElement('a');
  391. l.href = url;
  392. var reqHost = l.hostname;
  393. var overrideHeaders = {
  394. Host: reqHost || window.location.host,
  395. Origin: window.location.origin,
  396. Referer: window.location.href,
  397. 'X-Requested-With': 'XMLHttpRequest',
  398. };
  399. _.C(overrideHeaders).each(function (v, k, c) {
  400. if (headers[k] === _.none) {
  401. delete headers[k];
  402. } else {
  403. headers[k] = v;
  404. }
  405. });
  406. var xhr = null;
  407. var promise = _.D(function (resolve, reject) {
  408. xhr = GM.xmlhttpRequest({
  409. method: method,
  410. url: url,
  411. data: data,
  412. headers: headers,
  413. onload: function (response) {
  414. response = (typeof response.responseText !== 'undefined') ? response : this;
  415. if (response.status !== 200) {
  416. reject(response.responseText);
  417. } else {
  418. resolve(response.responseText);
  419. }
  420. },
  421. onerror: function (response) {
  422. response = (typeof response.responseText !== 'undefined') ? response : this;
  423. reject(response.responseText);
  424. },
  425. });
  426. });
  427. promise.abort = function () {
  428. xhr.abort();
  429. };
  430. return promise;
  431. }
  432. $.get = function (url, data, headers) {
  433. data = toQuery(data);
  434. data = data ? '?' + data : '';
  435. headers = headers || {};
  436. return ajax('GET', url + data, '', headers);
  437. };
  438. $.post = function (url, data, headers) {
  439. data = toQuery(data);
  440. var h = {
  441. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  442. 'Content-Length': data.length,
  443. };
  444. if (headers) {
  445. _.C(headers).each(function (v, k) {
  446. h[k] = v;
  447. });
  448. }
  449. return ajax('POST', url, data, h);
  450. };
  451. return $;
  452. }));
  453.  
  454. (function (context, factory) {
  455. if (typeof module === 'object' && typeof module.exports === 'object') {
  456. module.exports = function (context) {
  457. var core = require('./core.js');
  458. return factory(context, core);
  459. };
  460. } else {
  461. factory(context, context._);
  462. }
  463. }(this, function (context, _) {
  464. 'use strict';
  465. var window = context.window;
  466. var document = window.document;
  467. var $ = context.$ || {};
  468. $.setCookie = function (key, value) {
  469. var now = new Date();
  470. now.setTime(now.getTime() + 3600 * 1000);
  471. var tpl = _.T('{0}={1};path=/;');
  472. document.cookie = tpl(key, value, now.toUTCString());
  473. };
  474. $.getCookie = function (key) {
  475. var c = _.C(document.cookie.split(';')).find(function (v) {
  476. var k = v.replace(/^\s*(\w+)=.+$/, '$1');
  477. if (k !== key) {
  478. return _.none;
  479. }
  480. });
  481. if (!c) {
  482. return null;
  483. }
  484. c = c.value.replace(/^\s*\w+=([^;]+).+$/, '$1');
  485. if (!c) {
  486. return null;
  487. }
  488. return c;
  489. };
  490. $.resetCookies = function () {
  491. var a = document.domain;
  492. var b = document.domain.replace(/^www\./, '');
  493. var c = document.domain.replace(/^(\w+\.)+?(\w+\.\w+)$/, '$2');
  494. var d = (new Date(1e3)).toUTCString();
  495. _.C(document.cookie.split(';')).each(function (v) {
  496. var k = v.replace(/^\s*(\w+)=.+$/, '$1');
  497. document.cookie = _.T('{0}=;expires={1};')(k, d);
  498. document.cookie = _.T('{0}=;path=/;expires={1};')(k, d);
  499. var e = _.T('{0}=;path=/;domain={1};expires={2};');
  500. document.cookie = e(k, a, d);
  501. document.cookie = e(k, b, d);
  502. document.cookie = e(k, c, d);
  503. });
  504. };
  505. return $;
  506. }));
  507.  
  508. (function (context, factory) {
  509. if (typeof module === 'object' && typeof module.exports === 'object') {
  510. module.exports = function (context) {
  511. var core = require('./core.js');
  512. return factory(context, core);
  513. };
  514. } else {
  515. factory(context, context._);
  516. }
  517. }(this, function (context, _) {
  518. 'use strict';
  519. var window = context.window;
  520. var document = window.document;
  521. var $ = context.$ || {};
  522. var patterns = [];
  523. $.register = function (pattern) {
  524. patterns.push(pattern);
  525. };
  526. function dispatchByObject (rule, url_6) {
  527. var matched = {};
  528. var passed = _.C(rule).all(function (pattern, part) {
  529. if (pattern instanceof RegExp) {
  530. matched[part] = url_6[part].match(pattern);
  531. } else if (pattern instanceof Array) {
  532. var r = _.C(pattern).find(function (p) {
  533. var m = url_6[part].match(p);
  534. return m || _.none;
  535. });
  536. matched[part] = r ? r.payload : null;
  537. }
  538. return !!matched[part];
  539. });
  540. return passed ? matched : null;
  541. }
  542. function dispatchByRegExp (rule, url_1) {
  543. return url_1.match(rule);
  544. }
  545. function dispatchByArray (byLocation, rules, url_1, url_3, url_6) {
  546. var tmp = _.C(rules).find(function (rule) {
  547. var m = dispatch(byLocation, rule, url_1, url_3, url_6);
  548. if (!m) {
  549. return _.none;
  550. }
  551. return m;
  552. });
  553. return tmp ? tmp.payload : null;
  554. }
  555. function dispatchByString (rule, url_3) {
  556. var scheme = /\*|https?|file|ftp|chrome-extension/;
  557. var host = /\*|(\*\.)?([^\/*]+)/;
  558. var path = /\/.*/;
  559. var up = new RegExp(_.T('^({scheme})://({host})?({path})$')({
  560. scheme: scheme.source,
  561. host: host.source,
  562. path: path.source,
  563. }));
  564. var matched = rule.match(up);
  565. if (!matched) {
  566. return null;
  567. }
  568. scheme = matched[1];
  569. host = matched[2];
  570. var wc = matched[3];
  571. var sd = matched[4];
  572. path = matched[5];
  573. if (scheme === '*' && !/https?/.test(url_3.scheme)) {
  574. return null;
  575. } else if (scheme !== url_3.scheme) {
  576. return null;
  577. }
  578. if (scheme !== 'file' && host !== '*') {
  579. if (wc) {
  580. up = url_3.host.indexOf(sd);
  581. if (up < 0 || up + sd.length !== url_3.host.length) {
  582. return null;
  583. }
  584. } else if (host !== url_3.host) {
  585. return null;
  586. }
  587. }
  588. path = new RegExp(_.T('^{0}$')(path.replace(/[*.\[\]?+#]/g, function (c) {
  589. if (c === '*') {
  590. return '.*';
  591. }
  592. return '\\' + c;
  593. })));
  594. if (!path.test(url_3.path)) {
  595. return null;
  596. }
  597. return url_3;
  598. }
  599. function dispatchByFunction (rule, url_1, url_3, url_6) {
  600. return rule(url_1, url_3, url_6);
  601. }
  602. function dispatch (byLocation, rule, url_1, url_3, url_6) {
  603. if (rule instanceof Array) {
  604. return dispatchByArray(byLocation, rule, url_1, url_3, url_6);
  605. }
  606. if (typeof rule === 'function') {
  607. if (byLocation) {
  608. return null;
  609. }
  610. return dispatchByFunction(rule, url_1, url_3, url_6);
  611. }
  612. if (rule instanceof RegExp) {
  613. return dispatchByRegExp(rule, url_1);
  614. }
  615. if (typeof rule === 'string' || rule instanceof String) {
  616. return dispatchByString(rule, url_3);
  617. }
  618. return dispatchByObject(rule, url_6);
  619. }
  620. $._findHandler = function (byLocation) {
  621. var url_1 = window.location.toString();
  622. var url_3 = {
  623. scheme: window.location.protocol.slice(0, -1),
  624. host: window.location.host,
  625. path: window.location.pathname + window.location.search + window.location.hash,
  626. };
  627. var url_6 = {
  628. scheme: window.location.protocol,
  629. host: window.location.hostname,
  630. port: window.location.port,
  631. path: window.location.pathname,
  632. query: window.location.search,
  633. hash: window.location.hash,
  634. };
  635. var pattern = _.C(patterns).find(function (pattern) {
  636. var m = dispatch(byLocation, pattern.rule, url_1, url_3, url_6);
  637. if (!m) {
  638. return _.none;
  639. }
  640. return m;
  641. });
  642. if (!pattern) {
  643. return null;
  644. }
  645. var matched = pattern.payload;
  646. pattern = pattern.value;
  647. if (!pattern.start && !pattern.ready) {
  648. return null;
  649. }
  650. return {
  651. start: pattern.start ? _.P(pattern.start, matched) : _.nop,
  652. ready: pattern.ready ? _.P(pattern.ready, matched) : _.nop,
  653. };
  654. };
  655. return $;
  656. }));
  657.  
  658. (function (context, factory) {
  659. if (typeof module === 'object' && typeof module.exports === 'object') {
  660. module.exports = function (context) {
  661. var core = require('./core.js');
  662. return factory(context, core);
  663. };
  664. } else {
  665. factory(context, context._);
  666. }
  667. }(this, function (context, _) {
  668. 'use strict';
  669. var window = context.window;
  670. var document = window.document;
  671. var $ = context.$ || {};
  672. function go (path, params, method) {
  673. method = method || 'post';
  674. params = params || {};
  675. var form = document.createElement('form');
  676. form.method = method;
  677. form.action = path;
  678. _.C(params).each(function (value, key) {
  679. var input = document.createElement('input');
  680. input.type = 'hidden';
  681. input.name = key;
  682. input.value = value;
  683. form.appendChild(input);
  684. });
  685. document.body.appendChild(form);
  686. form.submit();
  687. }
  688. $.openLinkByPost = function (url, data) {
  689. go(url, data, 'post');
  690. };
  691. $.openLink = function (to) {
  692. if (!to) {
  693. _.warn('false URL');
  694. return;
  695. }
  696. var from = window.location.toString();
  697. _.info(_.T('{0} -> {1}')(from, to));
  698. window.top.location.replace(to);
  699. };
  700. $.openLinkWithReferer = function (to) {
  701. if (!to) {
  702. _.warn('false URL');
  703. return;
  704. }
  705. var from = window.location.toString();
  706. _.info(_.T('{0} -> {1}')(from, to));
  707. var a = document.createElement('a');
  708. a.href = to;
  709. a.style.display = 'none';
  710. document.body.appendChild(a);
  711. a.click();
  712. };
  713. return $;
  714. }));
  715.  
  716. (function (context, factory) {
  717. if (typeof module === 'object' && typeof module.exports === 'object') {
  718. module.exports = function (context) {
  719. var core = require('./core.js');
  720. var ajax = require('./ajax.js');
  721. var $ = ajax(context);
  722. return factory(context, core, $);
  723. };
  724. } else {
  725. factory(context, context._, context.$);
  726. }
  727. }(this, function (context, _, $) {
  728. 'use strict';
  729. var window = context.window;
  730. var unsafeWindow = context.unsafeWindow || (0, eval)('this').window;
  731. var document = window.document;
  732. $.removeAllTimer = function () {
  733. var handle = window.setInterval(_.nop, 10);
  734. while (handle > 0) {
  735. window.clearInterval(handle--);
  736. }
  737. handle = window.setTimeout(_.nop, 10);
  738. while (handle > 0) {
  739. window.clearTimeout(handle--);
  740. }
  741. };
  742. $.captcha = function (imgSrc, cb) {
  743. if (!$.config.externalServerSupport) {
  744. return;
  745. }
  746. var a = document.createElement('canvas');
  747. var b = a.getContext('2d');
  748. var c = new Image();
  749. c.src = imgSrc;
  750. c.onload = function () {
  751. a.width = c.width;
  752. a.height = c.height;
  753. b.drawImage(c, 0, 0);
  754. var d = a.toDataURL();
  755. var e = d.substr(d.indexOf(',') + 1);
  756. $.post('http://www.wcpan.info/cgi-bin/captcha.cgi', {
  757. i: e,
  758. }, cb);
  759. };
  760. };
  761. function clone (safe) {
  762. if (safe === null || !(safe instanceof Object)) {
  763. return safe;
  764. }
  765. if (safe instanceof String) {
  766. return safe.toString();
  767. }
  768. if (safe instanceof Function) {
  769. return exportFunction(safe, unsafeWindow, {
  770. allowCrossOriginArguments: true,
  771. });
  772. }
  773. if (safe instanceof Array) {
  774. var unsafe = new unsafeWindow.Array();
  775. for (var i = 0; i < safe.length; ++i) {
  776. unsafe.push(clone(safe[i]));
  777. }
  778. return unsafe;
  779. }
  780. var unsafe = new unsafeWindow.Object();
  781. _.C(safe).each(function (v, k) {
  782. unsafe[k] = clone(v);
  783. });
  784. return unsafe;
  785. }
  786. var MAGIC_KEY = '__adsbypasser_reverse_proxy__';
  787. $.window = (function () {
  788. var isFirefox = typeof InstallTrigger !== 'undefined';
  789. if (!isFirefox) {
  790. return unsafeWindow;
  791. }
  792. var decorator = {
  793. set: function (target, key, value) {
  794. if (key === MAGIC_KEY) {
  795. return false;
  796. }
  797. if (target === unsafeWindow && key === 'open') {
  798. var d = Object.getOwnPropertyDescriptor(target, key);
  799. d.value = clone(value);
  800. Object.defineProperty(target, key, d);
  801. } else {
  802. target[key] = clone(value);
  803. }
  804. return true;
  805. },
  806. get: function (target, key) {
  807. if (key === MAGIC_KEY) {
  808. return target;
  809. }
  810. var value = target[key];
  811. var type = typeof value;
  812. if (value === null || (type !== 'function' && type !== 'object')) {
  813. return value;
  814. }
  815. return new Proxy(value, decorator);
  816. },
  817. apply: function (target, self, args) {
  818. args = Array.prototype.slice.call(args);
  819. if (target === unsafeWindow.Object.defineProperty) {
  820. args[0] = args[0][MAGIC_KEY];
  821. }
  822. if (target === unsafeWindow.Function.apply) {
  823. self = self[MAGIC_KEY];
  824. args[1] = Array.prototype.slice.call(args[1]);
  825. }
  826. var usargs = clone(args);
  827. return target.apply(self, usargs);
  828. },
  829. construct: function (target, args) {
  830. args = Array.prototype.slice.call(args);
  831. args.unshift(undefined);
  832. var usargs = clone(args);
  833. var bind = unsafeWindow.Function.prototype.bind;
  834. return new (bind.apply(target, usargs));
  835. },
  836. };
  837. return new Proxy(unsafeWindow, decorator);
  838. })();
  839. return $;
  840. }));
  841.  
  842. (function (context, factory) {
  843. if (typeof module === 'object' && typeof module.exports === 'object') {
  844. module.exports = function (context, GM) {
  845. var _ = require('lodash');
  846. var core = require('./core.js');
  847. var misc = require('./misc.js');
  848. var dispatcher = require('./dispatcher.js');
  849. var modules = [misc, dispatcher].map(function (v) {
  850. return v.call(null, context, GM);
  851. });
  852. var $ = _.assign.apply(null, modules);
  853. return factory(context, GM, core, $);
  854. };
  855. } else {
  856. factory(context, {
  857. getValue: GM_getValue,
  858. setValue: GM_setValue,
  859. }, context._, context.$);
  860. }
  861. }(this, function (context, GM, _, $) {
  862. 'use strict';
  863. var window = context.window;
  864. $.config = {
  865. set version (value) {
  866. GM.setValue('version', value);
  867. },
  868. get version () {
  869. return GM.getValue('version', 0);
  870. },
  871. set alignCenter (value) {
  872. GM.setValue('align_center', value);
  873. },
  874. get alignCenter () {
  875. return GM.getValue('align_center');
  876. },
  877. set changeBackground (value) {
  878. GM.setValue('change_background', value);
  879. },
  880. get changeBackground () {
  881. return GM.getValue('change_background');
  882. },
  883. set externalServerSupport (value) {
  884. GM.setValue('external_server_support', value);
  885. },
  886. get externalServerSupport () {
  887. return GM.getValue('external_server_support');
  888. },
  889. set redirectImage (value) {
  890. GM.setValue('redirect_image', value);
  891. },
  892. get redirectImage () {
  893. return GM.getValue('redirect_image');
  894. },
  895. set scaleImage (value) {
  896. GM.setValue('scale_image', value);
  897. },
  898. get scaleImage () {
  899. return GM.getValue('scale_image');
  900. },
  901. };
  902. fixup($.config);
  903. function fixup (c) {
  904. var patches = [
  905. function (c) {
  906. var ac = typeof c.alignCenter !== 'undefined';
  907. if (typeof c.changeBackground === 'undefined') {
  908. c.changeBackground = ac ? c.alignCenter : true;
  909. }
  910. if (typeof c.scaleImage === 'undefined') {
  911. c.scaleImage = ac ? c.alignCenter : true;
  912. }
  913. if (!ac) {
  914. c.alignCenter = true;
  915. }
  916. if (typeof c.redirectImage === 'undefined') {
  917. c.redirectImage = true;
  918. }
  919. },
  920. function (c) {
  921. if (typeof c.externalServerSupport === 'undefined') {
  922. c.externalServerSupport = false;
  923. }
  924. },
  925. ];
  926. while (c.version < patches.length) {
  927. patches[c.version](c);
  928. ++c.version;
  929. }
  930. }
  931. $.register({
  932. rule: {
  933. host: /^adsbypasser\.github\.io$/,
  934. path: /^\/configure\.html$/,
  935. },
  936. ready: function () {
  937. $.window.commit = function (data) {
  938. data.version = $.config.version;
  939. _.C(data).each(function (v, k) {
  940. $.config[k] = v;
  941. });
  942. setTimeout(function () {
  943. save(data);
  944. }, 0);
  945. };
  946. $.window.render({
  947. version: $.config.version,
  948. options: {
  949. alignCenter: {
  950. type: 'checkbox',
  951. value: $.config.alignCenter,
  952. label: 'Align Center',
  953. help: 'Align image to the center if possible. (default: enabled)',
  954. },
  955. changeBackground: {
  956. type: 'checkbox',
  957. value: $.config.changeBackground,
  958. label: 'Change Background',
  959. help: 'Use Firefox-like image background if possible. (default: enabled)',
  960. },
  961. redirectImage: {
  962. type: 'checkbox',
  963. value: $.config.redirectImage,
  964. label: 'Redirect Image',
  965. help: [
  966. 'Directly open image link if possible. (default: enabled)',
  967. 'If disabled, redirection will only works on link shortener sites.',
  968. ].join('<br/>\n'),
  969. },
  970. scaleImage: {
  971. type: 'checkbox',
  972. value: $.config.scaleImage,
  973. label: 'Scale Image',
  974. help: 'When image loaded, scale it to fit window if possible. (default: enabled)',
  975. },
  976. externalServerSupport: {
  977. type: 'checkbox',
  978. value: $.config.externalServerSupport,
  979. label: 'External Server Support',
  980. help: [
  981. 'Send URL information to external server to enhance features (e.g.: captcha resolving). (default: disabled)',
  982. 'Affected sites:',
  983. 'urlz.so (captcha)',
  984. ].join('<br/>\n'),
  985. },
  986. },
  987. });
  988. },
  989. });
  990. return $;
  991. }));
  992.  
  993. (function (context, factory) {
  994. if (typeof module === 'object' && typeof module.exports === 'object') {
  995. module.exports = function (context, GM) {
  996. var _ = require('lodash');
  997. var core = require('./core.js');
  998. var dom = require('./dom.js');
  999. var config = require('./config.js');
  1000. var link = require('./link.js');
  1001. var misc = require('./misc.js');
  1002. var modules = [dom, config, link, misc].map(function (v) {
  1003. return v.call(null, context, GM);
  1004. });
  1005. var $ = _.assign.apply(_, modules);
  1006. return factory(context, GM, core, $);
  1007. };
  1008. } else {
  1009. factory(context, {
  1010. getResourceText: GM_getResourceText,
  1011. addStyle: GM_addStyle,
  1012. getResourceURL: GM_getResourceURL,
  1013. }, context._, context.$);
  1014. }
  1015. }(this, function (context, GM, _, $) {
  1016. 'use strict';
  1017. var window = context.window;
  1018. var document = window.document;
  1019. $.openImage = function (imgSrc) {
  1020. if ($.config.redirectImage) {
  1021. $.openLink(imgSrc);
  1022. }
  1023. };
  1024. function enableScrolling () {
  1025. var o = document.compatMode === 'CSS1Compat' ? document.documentElement : document.body;
  1026. o.style.overflow = '';
  1027. };
  1028. function toggleShrinking () {
  1029. this.classList.toggle('adsbypasser-shrinked');
  1030. }
  1031. function checkScaling () {
  1032. var nw = this.naturalWidth;
  1033. var nh = this.naturalHeight;
  1034. var cw = document.documentElement.clientWidth;
  1035. var ch = document.documentElement.clientHeight;
  1036. if ((nw > cw || nh > ch) && !this.classList.contains('adsbypasser-resizable')) {
  1037. this.classList.add('adsbypasser-resizable');
  1038. this.classList.add('adsbypasser-shrinked');
  1039. this.addEventListener('click', toggleShrinking);
  1040. } else {
  1041. this.removeEventListener('click', toggleShrinking);
  1042. this.classList.remove('adsbypasser-shrinked');
  1043. this.classList.remove('adsbypasser-resizable');
  1044. }
  1045. }
  1046. function scaleImage (i) {
  1047. var style = GM.getResourceText('scaleImage');
  1048. GM.addStyle(style);
  1049. if (i.naturalWidth && i.naturalHeight) {
  1050. checkScaling.call(i);
  1051. } else {
  1052. i.addEventListener('load', checkScaling);
  1053. }
  1054. var h;
  1055. window.addEventListener('resize', function () {
  1056. window.clearTimeout(h);
  1057. h = window.setTimeout(checkScaling.bind(i), 100);
  1058. });
  1059. }
  1060. function changeBackground () {
  1061. var bgImage = GM.getResourceURL('bgImage');
  1062. document.body.style.backgroundColor = '#222222';
  1063. document.body.style.backgroundImage = _.T('url(\'{0}\')')(bgImage);
  1064. }
  1065. function alignCenter () {
  1066. var style = GM.getResourceText('alignCenter');
  1067. GM.addStyle(style);
  1068. }
  1069. function injectStyle (d, i) {
  1070. $.removeNodes('style, link[rel=stylesheet]');
  1071. d.id = 'adsbypasser-wrapper';
  1072. i.id = 'adsbypasser-image';
  1073. }
  1074. $.replace = function (imgSrc) {
  1075. if (!$.config.redirectImage) {
  1076. return;
  1077. }
  1078. if (!imgSrc) {
  1079. _.warn('false url');
  1080. return;
  1081. }
  1082. _.info(_.T('replacing body with `{0}` ...')(imgSrc));
  1083. $.removeAllTimer();
  1084. enableScrolling();
  1085. document.body = document.createElement('body');
  1086. var d = document.createElement('div');
  1087. document.body.appendChild(d);
  1088. var i = document.createElement('img');
  1089. i.src = imgSrc;
  1090. d.appendChild(i);
  1091. if ($.config.alignCenter || $.config.scaleImage) {
  1092. injectStyle(d, i);
  1093. }
  1094. if ($.config.alignCenter) {
  1095. alignCenter();
  1096. }
  1097. if ($.config.changeBackground) {
  1098. changeBackground();
  1099. }
  1100. if ($.config.scaleImage) {
  1101. scaleImage(i);
  1102. }
  1103. };
  1104. return $;
  1105. }));
  1106.  
  1107. $.register({
  1108. rule: {
  1109. host: /^www\.4shared\.com$/,
  1110. path: /^\/(mp3|get|rar|zip|file|android|software|program)\//,
  1111. },
  1112. ready: function () {
  1113. 'use strict';
  1114. $.get('http://www.4server.info/find.php', {
  1115. data: window.location.href,
  1116. }).then(function (data) {
  1117. var d = $.toDOM(data);
  1118. var c = $('meta[http-equiv=refresh]', d);
  1119. var b = c.content.match(/URL=(.+)$/);
  1120. var a = b[1];
  1121. $.openLink(a);
  1122. });
  1123. },
  1124. });
  1125.  
  1126. $.register({
  1127. rule: {
  1128. host: /^(www\.)?arab\.sh$/,
  1129. path: /^\/\w+$/,
  1130. },
  1131. ready: function () {
  1132. 'use strict';
  1133. var f = $('form[name=F1]');
  1134. setTimeout(function() {
  1135. f.submit();
  1136. }, 20000);
  1137. },
  1138. });
  1139.  
  1140. (function() {
  1141. 'use strict';
  1142. $.register({
  1143. rule: {
  1144. host: /^(www\.)?dl-protect\.com$/,
  1145. path: /\/[A-Z0-9]+/,
  1146. },
  1147. ready: function () {
  1148. if ($.$('#captcha')) {
  1149. return;
  1150. }
  1151. var f = $.$('form[name=ccerure]');
  1152. if (f) {
  1153. var observer = new MutationObserver(function (mutations) {
  1154. var iIn = $('input[id=in]');
  1155. for (var i = 0; i < mutations.length; i++) {
  1156. if (mutations[i].target.value && mutations[i].attributeName === 'value') {
  1157. observer.disconnect();
  1158. iIn.value = "Tracking too much hurts users' privacy";
  1159. if (!canFastRedirect()) {
  1160. return;
  1161. }
  1162. setTimeout(function() {
  1163. f.submit();
  1164. }, 600);
  1165. break;
  1166. }
  1167. }
  1168. });
  1169. var iIn = $('input[id=in]');
  1170. if (iIn.value) {
  1171. setTimeout(function() {
  1172. f.submit();
  1173. }, 600);
  1174. } else {
  1175. observer.observe(iIn, {
  1176. attributes: true,
  1177. });
  1178. }
  1179. return;
  1180. }
  1181. var l = $.$$('#slinks > a');
  1182. if (l.size() === 1) {
  1183. $.openLink(l.at(0).href);
  1184. }
  1185. },
  1186. });
  1187. function canFastRedirect () {
  1188. return !$.$('form[name=ccerure]').onsubmit && !$.$('form[name=ccerure] input[name=pwd]');
  1189. }
  1190. })();
  1191.  
  1192. $.register({
  1193. rule: {
  1194. host: /^(www\.)?embedupload\.com$/,
  1195. path: /^\/$/,
  1196. query: /^\?\w{2}=\w+$/
  1197. },
  1198. ready: function () {
  1199. 'use strict';
  1200. var downloadPage = $('.categories a[target=_blank]');
  1201. $.openLink(downloadPage);
  1202. },
  1203. });
  1204.  
  1205. $.register({
  1206. rule: {
  1207. host: /^(www\.)?(firedrive|putlocker)\.com$/,
  1208. path: /^\/file\/[0-9A-F]+$/,
  1209. },
  1210. ready: function () {
  1211. 'use strict';
  1212. var c = $('#confirm_form');
  1213. c.submit();
  1214. },
  1215. });
  1216.  
  1217. $.register({
  1218. rule: {
  1219. host: /^(www\.)?jheberg\.net$/,
  1220. path: /^\/captcha\//,
  1221. },
  1222. ready: function () {
  1223. 'use strict';
  1224. $('.dl-button').click();
  1225. },
  1226. });
  1227. $.register({
  1228. rule: {
  1229. host: /^(www\.)?jheberg\.net$/,
  1230. path: /^\/redirect\//,
  1231. },
  1232. ready: function () {
  1233. 'use strict';
  1234. $.removeAllTimer();
  1235. var matches = $.searchScripts(/'slug':\s*'([^']+)',\s*'hoster':\s*'([^']+)'/);
  1236. var slug = matches[1];
  1237. var hoster = matches[2];
  1238. $.post('/get/link/', {
  1239. 'slug': slug,
  1240. 'hoster': hoster
  1241. }).then(function(response) {
  1242. var respJSON = JSON.parse(response);
  1243. $.openLink(respJSON.url);
  1244. });
  1245. },
  1246. });
  1247.  
  1248. $.register({
  1249. rule: {
  1250. host: /^(www\.)?larashare\.com$/,
  1251. path: /^\/do\.php$/,
  1252. query: /id=\d+/,
  1253. },
  1254. start: function () {
  1255. 'use strict';
  1256. $.openLink(document.location.href.replace('id=','down='));
  1257. },
  1258. });
  1259.  
  1260. $.register({
  1261. rule: {
  1262. host: /^(www\.)?mirrorcreator\.com$/,
  1263. path: /^\/showlink\.php$/,
  1264. },
  1265. ready: function () {
  1266. 'use strict';
  1267. var a = $.$('#redirectlink a');
  1268. if (a) {
  1269. $.openLink(a.href);
  1270. return;
  1271. }
  1272. a = $('#redirectlink > div.redirecturl');
  1273. a = a.innerHTML;
  1274. if (!a.match(/^http/)) {
  1275. throw new _.AdsBypasserError('not a valid URL');
  1276. }
  1277. $.openLink(a);
  1278. },
  1279. });
  1280.  
  1281. $.register({
  1282. rule: {
  1283. host: /^www.mirrorupload.net$/,
  1284. },
  1285. ready: function () {
  1286. 'use strict';
  1287. var accessForm = $('form[name=form_upload]');
  1288. var accessInput = document.createElement('input');
  1289. accessInput.type = 'hidden';
  1290. accessInput.name = 'access';
  1291. accessInput.value = Math.random();
  1292. accessForm.appendChild(accessInput);
  1293. accessForm.submit();
  1294. },
  1295. });
  1296.  
  1297. $.register({
  1298. rule: {
  1299. host: /^mylinkgen\.com$/,
  1300. path: /^\/p\/(.+)$/,
  1301. },
  1302. start: function (m) {
  1303. 'use strict';
  1304. $.openLink('/g/' + m.path[1]);
  1305. },
  1306. });
  1307. $.register({
  1308. rule: {
  1309. host: /^mylinkgen\.com$/,
  1310. path: /^\/g\//,
  1311. },
  1312. ready: function () {
  1313. 'use strict';
  1314. var a = $('#main-content a.btn.btn-default');
  1315. $.openLink(a.href);
  1316. },
  1317. });
  1318.  
  1319. $.register({
  1320. rule: {
  1321. host: /^(www\.)?vidto\.me$/,
  1322. },
  1323. ready: function () {
  1324. 'use strict';
  1325. var f = $('#btn_download').form;
  1326. setTimeout(function() {
  1327. f.submit();
  1328. }, 6000);
  1329. },
  1330. });
  1331.  
  1332. $.register({
  1333. rule: [
  1334. {
  1335. host: /^1dl\.biz$/,
  1336. path: /^\/(\w)\.php$/,
  1337. query: /^\?([\d\/]+)$/,
  1338. },
  1339. {
  1340. host: /^img\.1dl\.biz$/,
  1341. path: /^\/(\w)\.php$/,
  1342. query: /^\?\w\/([\d\/]+)$/,
  1343. },
  1344. ],
  1345. ready: function () {
  1346. 'use strict';
  1347. var a = $('div.tor a, div.i-h a');
  1348. a.removeAttribute('target');
  1349. a.click();
  1350. },
  1351. });
  1352.  
  1353. $.register({
  1354. rule: {
  1355. host: /^1pics\.ru$/,
  1356. },
  1357. ready: function () {
  1358. 'use strict';
  1359. var img = $('img[alt$="1Pics.Ru"]');
  1360. $.openImage(img.src);
  1361. },
  1362. });
  1363.  
  1364. $.register({
  1365. rule: {
  1366. host: /^www\.(2i\.(sk|cz)|2imgs\.com)$/,
  1367. },
  1368. ready: function () {
  1369. 'use strict';
  1370. var img = $('#wrap3 img');
  1371. $.openImage(img.src);
  1372. },
  1373. });
  1374.  
  1375. $.register({
  1376. rule: [
  1377. {
  1378. host: /^a\.pomf\.se$/,
  1379. path: /^\/.+\.htm$/,
  1380. query: /^$/,
  1381. },
  1382. {
  1383. host: /^empireload\.com$/,
  1384. path: /^\/sexy\/.+\.htm$/,
  1385. query: /^$/,
  1386. },
  1387. ],
  1388. ready: function () {
  1389. 'use strict';
  1390. var a = $.$('body > a');
  1391. if (a) {
  1392. $.openImage(a.href);
  1393. return;
  1394. }
  1395. $.removeNodes('#boxes, iframe');
  1396. },
  1397. });
  1398.  
  1399. $.register({
  1400. rule: [
  1401. 'http://*.abload.de/image.php?img=*',
  1402. 'http://www.imageup.ru/*/*/*.html',
  1403. 'http://itmages.ru/image/view/*/*', // different layout same handler
  1404. ],
  1405. ready: function () {
  1406. 'use strict';
  1407. var i = $('#image');
  1408. $.openImage(i.src);
  1409. },
  1410. });
  1411.  
  1412. $.register({
  1413. rule: {
  1414. host: /alabout\.com$/,
  1415. },
  1416. ready: function () {
  1417. 'use strict';
  1418. $.$$('a').each(function (a) {
  1419. if (/http:\/\/(www\.)?alabout\.com\/j\.phtml\?url=/.test(a.href)) {
  1420. a.href = a.textContent;
  1421. }
  1422. });
  1423. },
  1424. });
  1425.  
  1426. $.register({
  1427. rule: {
  1428. host: /^freeimgup\.com$/,
  1429. path: /^\/xxx/,
  1430. query: /^\?v=([^&]+)/,
  1431. },
  1432. start: function (m) {
  1433. 'use strict';
  1434. $.openImage('/xxx/images/' + m.query[1]);
  1435. },
  1436. });
  1437. $.register({
  1438. rule: {
  1439. host: /^(b4he|freeimgup|fullimg)\.com|fastpics\.net|ifap\.co$/,
  1440. query: /^\?v=([^&]+)/,
  1441. },
  1442. start: function (m) {
  1443. 'use strict';
  1444. $.openImage('/images/' + m.query[1]);
  1445. },
  1446. });
  1447.  
  1448. $.register({
  1449. rule: {
  1450. host: /^bayimg\.com$/,
  1451. },
  1452. ready: function () {
  1453. 'use strict';
  1454. var i = $('#mainImage');
  1455. $.openImage(i.src);
  1456. },
  1457. });
  1458.  
  1459. $.register({
  1460. rule: {
  1461. host: /^beeimg\.com$/,
  1462. },
  1463. ready: function () {
  1464. 'use strict';
  1465. var img = $('img.img-responsive');
  1466. $.openImage(img.src);
  1467. },
  1468. });
  1469.  
  1470. $.register({
  1471. rule: 'http://www.bilder-space.de/*.htm',
  1472. ready: function () {
  1473. 'use strict';
  1474. $.removeNodes('iframe');
  1475. var img = $('img.picture');
  1476. $.openImage(img.src);
  1477. },
  1478. });
  1479.  
  1480. $.register({
  1481. rule: 'http://www.bilder-upload.eu/show.php?file=*',
  1482. ready: function () {
  1483. 'use strict';
  1484. var i = $('input[type=image]');
  1485. $.openImage(i.src);
  1486. },
  1487. });
  1488.  
  1489. $.register({
  1490. rule: 'http://blackcatpix.com/v.php?*',
  1491. ready: function () {
  1492. 'use strict';
  1493. var img = $('td center img');
  1494. $.openImage(img.src);
  1495. },
  1496. });
  1497.  
  1498. $.register({
  1499. rule: 'http://www.casimages.com/img.php?*',
  1500. ready: function () {
  1501. 'use strict';
  1502. var img = $('td a img');
  1503. $.openImage(img.src);
  1504. },
  1505. });
  1506.  
  1507. $.register({
  1508. rule: {
  1509. host: /^www\.x45x\.info|(imadul|mypixxx\.lonestarnaughtygirls)\.com|ghanaimages\.co|imgurban\.info|d69\.in$/,
  1510. query: /\?p[mt]=(.+)/,
  1511. },
  1512. start: function (m) {
  1513. 'use strict';
  1514. $.openImage('/?di=' + m.query[1]);
  1515. },
  1516. });
  1517.  
  1518. $.register({
  1519. rule: 'http://javelite.tk/viewer.php?id=*',
  1520. ready: function () {
  1521. 'use strict';
  1522. var i = $('table img');
  1523. $.openImage(i.src);
  1524. },
  1525. });
  1526.  
  1527. $.register({
  1528. rule: {
  1529. host: /^imgchili\.(com|net)|www\.pixhost\.org$/,
  1530. path: /^\/show\//,
  1531. },
  1532. ready: function () {
  1533. 'use strict';
  1534. $.removeNodes('iframe, #ad');
  1535. try {
  1536. $('#all').style.display = '';
  1537. } catch (e) {
  1538. }
  1539. var o = $('#show_image');
  1540. $.openImage(o.src);
  1541. },
  1542. });
  1543.  
  1544. $.register({
  1545. rule: 'http://cubeupload.com/im/*',
  1546. ready: function () {
  1547. 'use strict';
  1548. var img = $('img.galleryBigImg');
  1549. $.openImage(img.src);
  1550. },
  1551. });
  1552.  
  1553. $.register({
  1554. rule: {
  1555. host: /^(depic\.me|(www\.)?picamatic\.com)$/,
  1556. },
  1557. ready: function () {
  1558. 'use strict';
  1559. var i = $('#pic');
  1560. $.openImage(i.src);
  1561. },
  1562. });
  1563.  
  1564. $.register({
  1565. rule: {
  1566. host: /^img(dino|tiger|zap)\.com$/,
  1567. path: /^\/viewer\.php$/,
  1568. query: /^\?file=/,
  1569. },
  1570. ready: function () {
  1571. 'use strict';
  1572. var o = $('#cursor_lupa');
  1573. $.openImage(o.src);
  1574. },
  1575. });
  1576.  
  1577. $.register({
  1578. rule: 'http://*.directupload.net/file/*.htm',
  1579. ready: function () {
  1580. 'use strict';
  1581. var i = $('#ImgFrame');
  1582. $.openImage(i.src);
  1583. },
  1584. });
  1585.  
  1586. $.register({
  1587. rule: {
  1588. host: /^emptypix\.com|overdream\.cz$/,
  1589. path: /^\/image\//,
  1590. },
  1591. ready: function () {
  1592. 'use strict';
  1593. var img = $('#full_image');
  1594. $.openImage(img.src);
  1595. },
  1596. });
  1597.  
  1598. $.register({
  1599. rule: {
  1600. host: /^fastpic\.ru$/,
  1601. path: /^\/view\//,
  1602. },
  1603. ready: function () {
  1604. 'use strict';
  1605. var img = $('#picContainer #image');
  1606. $.openImage(img.src);
  1607. },
  1608. });
  1609.  
  1610. $.register({
  1611. rule: 'http://www.fotolink.su/v.php?id=*',
  1612. ready: function () {
  1613. 'use strict';
  1614. var i = $('#content img');
  1615. $.openImage(i.src);
  1616. },
  1617. });
  1618.  
  1619. (function () {
  1620. 'use strict';
  1621. function run () {
  1622. var i = $('#img_obj');
  1623. $.openImage(i.src);
  1624. }
  1625. $.register({
  1626. rule: 'http://fotoo.pl/show.php?img=*.html',
  1627. ready: run,
  1628. });
  1629. $.register({
  1630. rule: {
  1631. host: /^www\.(fotoszok\.pl|imagestime)\.com$/,
  1632. path: /^\/show\.php\/.*\.html$/,
  1633. },
  1634. ready: run,
  1635. });
  1636. })();
  1637.  
  1638. $.register({
  1639. rule: 'http://www.fotosik.pl/pokaz_obrazek/pelny/*.html',
  1640. ready: function () {
  1641. 'use strict';
  1642. var i = $('a.noborder img');
  1643. $.openImage(i.src);
  1644. },
  1645. });
  1646.  
  1647. $.register({
  1648. rule: {
  1649. host: /^freakimage\.com|www\.hostpic\.org$/,
  1650. path: /^\/view\.php$/,
  1651. query: /^\?filename=([^&]+)/,
  1652. },
  1653. start: function (m) {
  1654. 'use strict';
  1655. $.openImage('/images/' + m.query[1]);
  1656. },
  1657. });
  1658.  
  1659. $.register({
  1660. rule: [
  1661. 'http://funkyimg.com/viewer.php?img=*',
  1662. 'http://funkyimg.com/view/*',
  1663. ],
  1664. ready: function () {
  1665. 'use strict';
  1666. var i = $('#viewer img');
  1667. $.openImage(i.src);
  1668. },
  1669. });
  1670.  
  1671. $.register({
  1672. rule: {
  1673. host: /^(www\.)?gallerynova\.se$/,
  1674. path: /^\/site\/v\//,
  1675. },
  1676. ready: function () {
  1677. 'use strict';
  1678. var i = $('#myUniqueImg').parentNode;
  1679. $.openImage(i.href);
  1680. },
  1681. });
  1682. $.register({
  1683. rule: {
  1684. host: /^(www\.)?gallerynova\.se$/,
  1685. path: /^\/site\/viewImage\/(\w+)/,
  1686. },
  1687. ready: function (m) {
  1688. 'use strict';
  1689. var confirm = $.searchScripts(/\$\("#confirmImage"\).val\("([^"]+)"\)/)[1];
  1690. $.post('/site/viewConfirmCode/' + m.path[1], {
  1691. confirm: confirm
  1692. }).then(function (rawJson) {
  1693. var json = JSON.parse(rawJson);
  1694. var decodedHTML = document.createTextNode(json.content).data;
  1695. var imgURL = decodedHTML.match(/<a href="([^"]+)" target="_blank">/)[1];
  1696. $.openImage(imgURL);
  1697. });
  1698. },
  1699. });
  1700.  
  1701. (function () {
  1702. 'use strict';
  1703. var hostRule = /^goimagehost\.com$/;
  1704. $.register({
  1705. rule: {
  1706. host: hostRule,
  1707. path: /^\/xxx\/images\//,
  1708. },
  1709. });
  1710. $.register({
  1711. rule: {
  1712. host: hostRule,
  1713. path: /^\/xxx\/(.+)/,
  1714. },
  1715. start: function (m) {
  1716. $.openImage('/xxx/images/' + m.path[1]);
  1717. },
  1718. });
  1719. $.register({
  1720. rule: {
  1721. host: hostRule,
  1722. query: /^\?v=(.+)/,
  1723. },
  1724. start: function (m) {
  1725. $.openImage('/xxx/images/' + m.query[1]);
  1726. },
  1727. });
  1728. })();
  1729.  
  1730. $.register({
  1731. rule: {
  1732. host: /www\.(h-animes|adultmove)\.info/,
  1733. path: /^\/.+\/.+\/.+\.html$/,
  1734. },
  1735. ready: function () {
  1736. 'use strict';
  1737. var a = $('.dlbutton2 > a');
  1738. $.openImage(a.href);
  1739. },
  1740. });
  1741.  
  1742. $.register({
  1743. rule: 'http://hentaimg.com/mg/lndex-1.php?img=*',
  1744. ready: function () {
  1745. 'use strict';
  1746. $.openLink('index-1.php' + window.location.search);
  1747. },
  1748. });
  1749. $.register({
  1750. rule: 'http://hentaimg.com/mg/index-1.php?img=*',
  1751. ready: function () {
  1752. 'use strict';
  1753. var i = $('#content img');
  1754. $.openImage(i.src);
  1755. },
  1756. });
  1757.  
  1758. $.register({
  1759. rule: 'http://www.hostingpics.net/viewer.php?id=*',
  1760. ready: function () {
  1761. 'use strict';
  1762. var i = $('#img_viewer');
  1763. $.openImage(i.src);
  1764. },
  1765. });
  1766.  
  1767. $.register({
  1768. rule: {
  1769. host: /^ichan\.org$/,
  1770. path: /^\/image\.php$/,
  1771. query: /path=(.+)$/,
  1772. },
  1773. start: function (m) {
  1774. 'use strict';
  1775. $.openImage('/' + m.query[1]);
  1776. },
  1777. });
  1778. $.register({
  1779. rule: {
  1780. host: /ichan\.org$/,
  1781. },
  1782. ready: function () {
  1783. 'use strict';
  1784. $.$$('a').each(function (a) {
  1785. if (a.href.indexOf('/url/http://') > -1) {
  1786. a.href = a.href.replace(/http:\/\/.+\/url\/(?=http:\/\/)/, '');
  1787. }
  1788. });
  1789. },
  1790. });
  1791.  
  1792. $.register({
  1793. rule: 'http://ifotos.pl/zobacz/*',
  1794. ready: function () {
  1795. 'use strict';
  1796. var m = $('meta[property="og:image"]');
  1797. $.openImage(m.content);
  1798. },
  1799. });
  1800.  
  1801. $.register({
  1802. rule: {
  1803. host: /^ima\.so$/,
  1804. },
  1805. ready: function () {
  1806. 'use strict';
  1807. var a = $('#image_block a');
  1808. $.openImage(a.href);
  1809. },
  1810. });
  1811.  
  1812. $.register({
  1813. rule: [
  1814. 'http://image18.org/show/*',
  1815. 'http://screenlist.ru/details.php?image_id=*',
  1816. 'http://www.imagenetz.de/*/*.html',
  1817. ],
  1818. ready: function () {
  1819. 'use strict';
  1820. var img = $('#picture');
  1821. $.openImage(img.src);
  1822. },
  1823. });
  1824.  
  1825. $.register({
  1826. rule: {
  1827. host: /^image2you\.ru$/,
  1828. path: /^\/\d+\/\d+/,
  1829. },
  1830. ready: function () {
  1831. 'use strict';
  1832. var i = $.$('div.t_tips2 div > img');
  1833. if (!i) {
  1834. $.openLinkByPost('', {
  1835. _confirm: '',
  1836. });
  1837. return;
  1838. }
  1839. $.openImage(i.src);
  1840. },
  1841. });
  1842.  
  1843. $.register({
  1844. rule: 'http://imagearn.com/image.php?id=*',
  1845. ready: function () {
  1846. 'use strict';
  1847. var i = $('#img');
  1848. $.openImage(i.src);
  1849. },
  1850. });
  1851.  
  1852. $.register({
  1853. rule: 'http://www.imagebam.com/image/*',
  1854. ready: function () {
  1855. 'use strict';
  1856. var o = $('#imageContainer img[id]');
  1857. $.replace(o.src);
  1858. },
  1859. });
  1860.  
  1861. $.register({
  1862. rule: {
  1863. host: /^imageban\.(ru|net)$/,
  1864. path: /^\/show\/\d{4}\/\d{2}\/\d{2}\/.+/,
  1865. },
  1866. ready: function () {
  1867. 'use strict';
  1868. var i = $('#img_obj');
  1869. $.openImage(i.src);
  1870. },
  1871. });
  1872.  
  1873. $.register({
  1874. rule: {
  1875. host: /^imageheli\.com|imgtube\.net|pixliv\.com$/,
  1876. path: /^\/img-([a-zA-Z0-9\-]+)\..+$/,
  1877. },
  1878. ready: function () {
  1879. 'use strict';
  1880. var a = $.$('a[rel="lightbox"]');
  1881. if (!a) {
  1882. $.openLinkByPost('', {
  1883. browser_fingerprint: '',
  1884. ads: '0',
  1885. });
  1886. return;
  1887. }
  1888. $.openImage(a.href);
  1889. },
  1890. });
  1891.  
  1892. $.register({
  1893. rule: 'http://www.imagehousing.com/image/*',
  1894. ready: function () {
  1895. 'use strict';
  1896. var i = $('td.text_item img');
  1897. $.openImage(i.src);
  1898. },
  1899. });
  1900.  
  1901. $.register({
  1902. rule: 'http://imageno.com/*.html',
  1903. ready: function () {
  1904. 'use strict';
  1905. var i = $('#image_div img');
  1906. $.openImage(i.src);
  1907. },
  1908. });
  1909.  
  1910. $.register({
  1911. rule: 'http://imagepix.org/image/*.html',
  1912. ready: function () {
  1913. 'use strict';
  1914. var i = $('img[border="0"]');
  1915. $.openImage(i.src);
  1916. },
  1917. });
  1918.  
  1919. (function () {
  1920. 'use strict';
  1921. function run () {
  1922. var o = $('#download_box img[id]');
  1923. $.openImage(o.src);
  1924. }
  1925. $.register({
  1926. rule: {
  1927. host: /^www\.imageporter\.com$/,
  1928. path: /^\/\w{12}\/.*\.html$/,
  1929. },
  1930. ready: run,
  1931. });
  1932. $.register({
  1933. rule: {
  1934. host: /^(www\.)?(image(carry|dunk|porter|switch)|pic(leet|turedip|tureturn)|imgspice)\.com|(piclambo|yankoimages)\.net$/,
  1935. },
  1936. ready: run,
  1937. });
  1938. })();
  1939.  
  1940. $.register({
  1941. rule: {
  1942. host: /^imagescream\.com$/,
  1943. path: /^\/img\/soft\//,
  1944. },
  1945. ready: function () {
  1946. 'use strict';
  1947. var i = $('#shortURL-content img');
  1948. $.openImage(i.src);
  1949. },
  1950. });
  1951. $.register({
  1952. rule: {
  1953. host: /^(imagescream|anonpic|picturevip)\.com|all-poster\.ru$/,
  1954. query: /^\?v=/,
  1955. },
  1956. ready: function () {
  1957. 'use strict';
  1958. var i = $('#imagen img');
  1959. $.openImage(i.src);
  1960. },
  1961. });
  1962.  
  1963. (function () {
  1964. 'use strict';
  1965. var host = /^imageshack\.us$/;
  1966. $.register({
  1967. rule: {
  1968. host: host,
  1969. path: /^\/photo\/.+\/(.+)\/([^\/]+)/,
  1970. },
  1971. start: function (m) {
  1972. $.openImage(_.T('/f/{0}/{1}/')(m.path[1], m.path[2]));
  1973. },
  1974. });
  1975. $.register({
  1976. rule: {
  1977. host: host,
  1978. path: /^\/f\/.+\/[^\/]+/,
  1979. },
  1980. ready: function () {
  1981. var i = $('#fullimg');
  1982. $.openImage(i.src);
  1983. },
  1984. });
  1985. })();
  1986.  
  1987. $.register({
  1988. rule: 'http://imageshost.ru/photo/*/id*.html',
  1989. ready: function () {
  1990. 'use strict';
  1991. var a = $('#bphoto a');
  1992. $.openImage(a.href);
  1993. },
  1994. });
  1995.  
  1996. (function () {
  1997. 'use strict';
  1998. function run () {
  1999. $.window.jQuery.prototype.append = undefined;
  2000. var i = $('img.pic');
  2001. $.replace(i.src);
  2002. }
  2003. $.register({
  2004. rule: {
  2005. host: /^imagenpic\.com$/,
  2006. path: /^\/.*\/.+\.html$/,
  2007. },
  2008. ready: run,
  2009. });
  2010. $.register({
  2011. rule: {
  2012. host: [
  2013. /^image(twist|cherry)\.com$/,
  2014. /^imgtrex\.com$/,
  2015. ],
  2016. },
  2017. ready: run,
  2018. });
  2019. })();
  2020.  
  2021. $.register({
  2022. rule: 'http://imageupper.com/i/?*',
  2023. ready: function () {
  2024. 'use strict';
  2025. var i = $('#img');
  2026. $.openImage(i.src);
  2027. },
  2028. });
  2029.  
  2030. $.register({
  2031. rule: [
  2032. 'http://*.imagevenue.com/img.php?*',
  2033. 'http://hotchyx.com/d/adult-image-hosting-view-08.php?id=*',
  2034. 'http://www.hostingfailov.com/photo/*',
  2035. ],
  2036. ready: function () {
  2037. 'use strict';
  2038. var i = $('#thepic');
  2039. $.openImage(i.src);
  2040. },
  2041. });
  2042.  
  2043. $.register({
  2044. rule: {
  2045. host: /^imagezilla\.net$/,
  2046. path: /^\/show\/(.+)$/,
  2047. },
  2048. start: function (m) {
  2049. 'use strict';
  2050. $.openImage('/images2/' + m.path[1]);
  2051. },
  2052. });
  2053.  
  2054. $.register({
  2055. rule: {
  2056. host: /^imagik\.fr$/,
  2057. path: /^\/view(-rl)?\/(.+)/,
  2058. },
  2059. start: function (m) {
  2060. 'use strict';
  2061. $.openImage('/uploads/' + m.path[2]);
  2062. },
  2063. });
  2064.  
  2065. $.register({
  2066. rule: 'http://img.3ezy.net/*.htm',
  2067. ready: function () {
  2068. 'use strict';
  2069. var l = $('link[rel="image_src"]');
  2070. $.openImage(l.href);
  2071. },
  2072. });
  2073.  
  2074. $.register({
  2075. rule: {
  2076. host: /^img\.acianetmedia\.com$/,
  2077. path: /^\/(image\/)?[^.]+$/,
  2078. },
  2079. ready: function () {
  2080. 'use strict';
  2081. var img = $('#full_image, #shortURL-content img');
  2082. $.openImage(img.src);
  2083. },
  2084. });
  2085.  
  2086. $.register({
  2087. rule: 'http://img1.imagilive.com/*/*',
  2088. ready: function () {
  2089. 'use strict';
  2090. var a = $.$('#page a.button');
  2091. if (a) {
  2092. $.redirect(a.href);
  2093. return;
  2094. }
  2095. var i = $('#page > img:not([id])');
  2096. $.openImage(i.src);
  2097. },
  2098. });
  2099.  
  2100. $.register({
  2101. rule: {
  2102. host: /^img3x\.net$/,
  2103. },
  2104. ready: function () {
  2105. 'use strict';
  2106. var f = $.$('form');
  2107. if (f) {
  2108. f.submit();
  2109. return;
  2110. }
  2111. f = $('#show_image');
  2112. $.openImage(f.src);
  2113. },
  2114. });
  2115.  
  2116. $.register({
  2117. rule: {
  2118. host: /^www\.img(babes|flare)\.com$/,
  2119. },
  2120. ready: function () {
  2121. 'use strict';
  2122. var i = $('#this_image');
  2123. $.openImage(i.src);
  2124. },
  2125. });
  2126.  
  2127. $.register({
  2128. rule: {
  2129. host: /^imgbar\.net$/,
  2130. path: /^\/img_show\.php$/,
  2131. query: /^\?view_id=/,
  2132. },
  2133. ready: function () {
  2134. 'use strict';
  2135. var i = $('center img');
  2136. $.openImage(i.src);
  2137. },
  2138. });
  2139. $.register({
  2140. rule: {
  2141. host: /^imgbar\.net$/,
  2142. },
  2143. ready: function () {
  2144. 'use strict';
  2145. var i = $('div.panel.top form input[name=sid]');
  2146. $.openLink('/img_show.php?view_id=' + i.value);
  2147. },
  2148. });
  2149.  
  2150. $.register({
  2151. rule: {
  2152. host: /^imgbin\.me$/,
  2153. path: /^\/view\/([A-Z]+)$/,
  2154. },
  2155. start: function (m) {
  2156. 'use strict';
  2157. var tpl = _.T('/image/{0}.jpg');
  2158. $.openImage(tpl(m.path[1]));
  2159. },
  2160. });
  2161.  
  2162. $.register({
  2163. rule: {
  2164. host: /^imgbox\.com$/,
  2165. path: /^\/[\d\w]+$/,
  2166. },
  2167. ready: function () {
  2168. 'use strict';
  2169. $.removeNodes('iframe');
  2170. var i = $('#img');
  2171. $.openImage(i.src);
  2172. },
  2173. });
  2174.  
  2175. (function () {
  2176. 'use strict';
  2177. var host = /^(img(fantasy|leech)|imagedomino)\.com$/;
  2178. $.register({
  2179. rule: {
  2180. host: host,
  2181. query: /^\?p=/,
  2182. },
  2183. ready: function () {
  2184. var i = $('#container-home img');
  2185. $.openImage(i.src);
  2186. },
  2187. });
  2188. $.register({
  2189. rule: {
  2190. host: host,
  2191. query: /^\?v=/,
  2192. },
  2193. ready: function () {
  2194. if ($.window.confirmAge) {
  2195. $.window.confirmAge(1);
  2196. return;
  2197. }
  2198. var i = $('#container-home img');
  2199. $.openImage(i.src);
  2200. },
  2201. });
  2202. })();
  2203.  
  2204. $.register({
  2205. rule: {
  2206. host: /^imglocker\.com$/,
  2207. path: [
  2208. /^(\/\w+)\/(.+)\.html$/,
  2209. /^(\/\w+)\/(.+)$/,
  2210. ],
  2211. },
  2212. start: function (m) {
  2213. 'use strict';
  2214. var url = _.T('//img.imglocker.com{0}_{1}');
  2215. $.openImage(url(m.path[1], m.path[2]));
  2216. },
  2217. });
  2218.  
  2219. (function () {
  2220. 'use strict';
  2221. var pathRule = /^\/([0-9a-z]+)(\.|\/|$)/;
  2222. function helper (id, next) {
  2223. var f = $.$('form > input[name="next"]');
  2224. var i = $.$('img.pic');
  2225. if (!(next || f) && !i) {
  2226. _.info('do nothing');
  2227. } else if (next || f) {
  2228. $.openLinkByPost('', {
  2229. op: 'view',
  2230. id: id,
  2231. pre: 1,
  2232. next: next || f.value,
  2233. });
  2234. } else {
  2235. $.openImage(i.src);
  2236. }
  2237. }
  2238. $.register({
  2239. rule: {
  2240. host: [
  2241. /^img(paying|mega|zeus|monkey)\.com$/,
  2242. /^(www\.)?imgsee\.me$/,
  2243. /^imgclick\.net$/,
  2244. /^(uploadrr|imageeer|imzdrop)\.com$/,
  2245. /^chronos\.to$/,
  2246. ],
  2247. path: pathRule,
  2248. },
  2249. ready: function (m) {
  2250. helper(m.path[1]);
  2251. },
  2252. });
  2253. $.register({
  2254. rule: {
  2255. host: /^imgrock\.net$/,
  2256. path: pathRule,
  2257. },
  2258. ready: function (m) {
  2259. var d = $.$('#imageviewir');
  2260. helper(m.path[1], d ? 'Continue to Image...' : null);
  2261. },
  2262. });
  2263. })();
  2264.  
  2265. (function () {
  2266. 'use strict';
  2267. function handler () {
  2268. $.removeNodes('iframe');
  2269. var node = $.$('#continuetoimage > form input');
  2270. if (node) {
  2271. node.click();
  2272. node.click();
  2273. return;
  2274. }
  2275. var o = $('img[alt="image"]');
  2276. $.openImage(o.src);
  2277. }
  2278. $.register({
  2279. rule: {
  2280. host: [
  2281. /^(img(rill|next|savvy|\.spicyzilla|twyti|xyz|devil|seeds|tzar|ban)|image(corn|picsa)|www\.(imagefolks|imgblow)|hosturimage|img-(zone|planet)|08lkk)\.com$/,
  2282. /^(img(candy|master|-view|run)|imagelaser)\.net$/,
  2283. /^imgcloud\.co|pixup\.us$/,
  2284. /^(www\.)?\.imgult\.com$/,
  2285. /^bulkimg\.info$/,
  2286. /^(image\.adlock|imgspot|teenshot)\.org$/,
  2287. /^img\.yt$/,
  2288. /^vava\.in$/,
  2289. /^55888\.eu$/,
  2290. /^pixxx\.me$/,
  2291. ],
  2292. path: /^\/img-.*\.html$/,
  2293. },
  2294. ready: handler,
  2295. });
  2296. $.register({
  2297. rule: {
  2298. host: /^imgking\.co$/,
  2299. path: /^\/img-.*\.htmls$/,
  2300. },
  2301. ready: handler,
  2302. });
  2303. $.register({
  2304. rule: {
  2305. host: /^08lkk\.com$/,
  2306. path: /^\/\d+\/img-.*\.html$/,
  2307. },
  2308. start: function () {
  2309. $.window.setTimeout = _.nop;
  2310. $.get(window.location.toString()).then(function (data) {
  2311. var a = $.toDOM(data);
  2312. var bbcode = $.$('#imagecodes input', a);
  2313. bbcode = bbcode.value.match(/.+\[IMG\]([^\[]+)\[\/IMG\].+/);
  2314. bbcode = bbcode[1];
  2315. bbcode = bbcode.replace('small', 'big');
  2316. $.openImage(bbcode);
  2317. });
  2318. },
  2319. });
  2320. })();
  2321.  
  2322. $.register({
  2323. rule: {
  2324. host: /^(imgsure|picexposed)\.com$/,
  2325. },
  2326. ready: function () {
  2327. 'use strict';
  2328. var i = $('img.pic');
  2329. $.openImage(i.src);
  2330. },
  2331. });
  2332.  
  2333. $.register({
  2334. rule: 'http://imgtheif.com/image/*.html',
  2335. ready: function () {
  2336. 'use strict';
  2337. var a = $('div.content-container a');
  2338. $.openImage(a.href);
  2339. },
  2340. });
  2341.  
  2342. $.register({
  2343. rule: {
  2344. host: /^imgvault\.pw$/,
  2345. path: /^\/view-image\//,
  2346. },
  2347. ready: function () {
  2348. 'use strict';
  2349. var a = $('article div.span7 a[target="_blank"]');
  2350. $.openImage(a.href);
  2351. },
  2352. });
  2353.  
  2354. $.register({
  2355. rule: 'http://ipic.su/?page=img&pic=*',
  2356. ready: function () {
  2357. 'use strict';
  2358. var i = $('#fz');
  2359. $.openImage(i.src);
  2360. },
  2361. });
  2362.  
  2363. $.register({
  2364. rule: {
  2365. host: /keptarolo\.hu$/,
  2366. path: /^(\/[^\/]+\/[^\/]+\.jpg)$/,
  2367. },
  2368. start: function (m) {
  2369. 'use strict';
  2370. $.openImage('http://www.keptarolo.hu/kep' + m.path[1]);
  2371. },
  2372. });
  2373.  
  2374. $.register({
  2375. rule: {
  2376. host: /^lostpic\.net$/,
  2377. query: /^\?photo=\d+$/,
  2378. },
  2379. ready: function () {
  2380. 'use strict';
  2381. var i = $('img.notinline.circle');
  2382. $.openImage(i.src);
  2383. },
  2384. });
  2385.  
  2386. (function () {
  2387. 'use strict';
  2388. function helper (m) {
  2389. $.openImage('/images/' + m.query[1]);
  2390. }
  2391. $.register({
  2392. rule: {
  2393. host: [
  2394. /^(hentai-hosting|miragepics|funextra\.hostzi|imgrex|daily-img)\.com$/,
  2395. /^bilder\.nixhelp\.de$/,
  2396. /^imagecurl\.(com|org)$/,
  2397. /^imagevau\.eu$/,
  2398. /^img\.deli\.sh$/,
  2399. /^image(pong|back)\.info$/,
  2400. /^imgdream\.net$/,
  2401. /^photoup\.biz$/,
  2402. ],
  2403. path: /^\/viewer\.php$/,
  2404. query: /file=([^&]+)/,
  2405. },
  2406. start: helper,
  2407. });
  2408. $.register({
  2409. rule: {
  2410. host: /^(dwimg|imgsin|www\.pictureshoster)\.com$/,
  2411. path: /^\/viewer\.php$/,
  2412. query: /file=([^&]+)/,
  2413. },
  2414. start: function (m) {
  2415. $.openImage('/files/' + m.query[1]);
  2416. },
  2417. });
  2418. $.register({
  2419. rule: {
  2420. host: /imageview\.me|244pix\.com|imgnip\.com|postimg\.net$/,
  2421. path: /^\/viewerr.*\.php$/,
  2422. query: /file=([^&]+)/,
  2423. },
  2424. start: helper,
  2425. });
  2426. $.register({
  2427. rule: [
  2428. 'http://www.overpic.net/viewer.php?file=*',
  2429. ],
  2430. ready: function () {
  2431. var i = $('#main_img');
  2432. $.openImage(i.src);
  2433. },
  2434. });
  2435. $.register({
  2436. rule: {
  2437. host: /(empireload|loadsanook)\.com$/,
  2438. query: /file=([^&]+)/,
  2439. },
  2440. start: function (m) {
  2441. $.openImage('files/' + m.query[1]);
  2442. },
  2443. });
  2444. })();
  2445.  
  2446. $.register({
  2447. rule: {
  2448. host: /^www\.mrjh\.org$/,
  2449. path: /^\/gallery\.php$/,
  2450. query: /^\?entry=(.+)$/,
  2451. },
  2452. ready: function (m) {
  2453. 'use strict';
  2454. var url = m.query[1];
  2455. $.openImage('/' + url);
  2456. },
  2457. });
  2458.  
  2459. $.register({
  2460. rule: {
  2461. host: /^www\.noelshack\.com$/
  2462. },
  2463. ready: function () {
  2464. var i = $('#elt_to_aff');
  2465. $.openImage(i.src);
  2466. },
  2467. });
  2468.  
  2469. $.register({
  2470. rule: 'http://pic-money.ru/*.html',
  2471. ready: function () {
  2472. 'use strict';
  2473. var f = document.forms[0];
  2474. var sig = $('input[name="sig"]', f).value;
  2475. var pic_id = $('input[name="pic_id"]', f).value;
  2476. var referer = $('input[name="referer"]', f).value;
  2477. var url = _.T('/pic.jpeg?pic_id={pic_id}&sig={sig}&referer={referer}');
  2478. $.openImage(url({
  2479. sig: sig,
  2480. pic_id: pic_id,
  2481. referer: referer,
  2482. }));
  2483. },
  2484. });
  2485.  
  2486. $.register({
  2487. rule: 'http://www.pic-upload.de/view-*.html',
  2488. ready: function () {
  2489. 'use strict';
  2490. $.removeNodes('.advert');
  2491. var i = $('img.preview_picture_2b, img.original_picture_2b');
  2492. $.openImage(i.src);
  2493. },
  2494. });
  2495.  
  2496. $.register({
  2497. rule: {
  2498. host: /^pic(2profit|p2)\.com$/,
  2499. },
  2500. ready: function () {
  2501. 'use strict';
  2502. var i = $('form > #d1 ~ input[name=bigimg]');
  2503. $.openImage(i.value);
  2504. },
  2505. });
  2506.  
  2507. $.register({
  2508. rule: {
  2509. host: /^pic(4|5)you.ru$/
  2510. },
  2511. ready: function () {
  2512. if ($.$('#d1 > img') != null) {
  2513. var URLparams = location.href.split("/", 5);
  2514. var next = URLparams[0] + '/' + URLparams[1] + '/' + URLparams[2] + '/' + URLparams[3] + '/' + URLparams[4] + '/1/';
  2515. $.setCookie('p4yclick','1');
  2516. $.openLink(next);
  2517. } else {
  2518. var i = $('#d1 img').src;
  2519. $.openImage(i);
  2520. }
  2521. },
  2522. });
  2523.  
  2524. $.register({
  2525. rule: {
  2526. host: /^(www\.)?piccash\.net$/
  2527. },
  2528. ready: function () {
  2529. var i = $('.container > img');
  2530. var m =i.onclick.toString().match(/mshow\('([^']+)'\);/);
  2531. $.openImage(m[1]);
  2532. },
  2533. });
  2534.  
  2535. $.register({
  2536. rule: [
  2537. 'http://amateurfreak.org/share-*.html',
  2538. 'http://amateurfreak.org/share.php?id=*',
  2539. 'http://images.maxigame.by/share-*.html',
  2540. 'http://picfox.org/*',
  2541. 'http://www.euro-pic.eu/share.php?id=*',
  2542. 'http://www.gratisimage.dk/share-*.html',
  2543. 'http://xxx.freeimage.us/share.php?id=*',
  2544. 'http://npicture.net/share-*.html',
  2545. 'http://www.onlinepic.net/share.php?id=*',
  2546. 'http://www.pixsor.com/share.php?id=*',
  2547. ],
  2548. ready: function () {
  2549. 'use strict';
  2550. var o = $('#iimg');
  2551. $.openImage(o.src);
  2552. },
  2553. });
  2554.  
  2555. $.register({
  2556. rule: 'http://picmoe.net/d.php?id=*',
  2557. ready: function () {
  2558. 'use strict';
  2559. var i = $('img');
  2560. $.openImage(i.src);
  2561. },
  2562. });
  2563.  
  2564. $.register({
  2565. rule: [
  2566. 'http://pics-money.ru/allpicfree/*',
  2567. 'http://www.pics-money.ru/allimage/*',
  2568. ],
  2569. });
  2570. $.register({
  2571. rule: {
  2572. host: /^pics-money\.ru$/,
  2573. path: /^\/v\.php$/,
  2574. },
  2575. ready: function () {
  2576. 'use strict';
  2577. $.removeNodes('iframe');
  2578. var i = $('center img:not([id])');
  2579. $.openImage(i.src);
  2580. },
  2581. });
  2582. $.register({
  2583. rule: {
  2584. host: /^www\.pics-money\.ru$/,
  2585. },
  2586. ready: function () {
  2587. 'use strict';
  2588. $.removeNodes('iframe');
  2589. var i = $('#d1 img');
  2590. i = i.onclick.toString();
  2591. i = i.match(/mshow\('(.+)'\)/);
  2592. i = i[1];
  2593. $.openImage(i);
  2594. },
  2595. });
  2596.  
  2597. $.register({
  2598. rule: 'http://picshare.geenza.com/pics/*',
  2599. ready: function () {
  2600. 'use strict';
  2601. var i = $('#picShare_image_container');
  2602. $.openImage(i.src);
  2603. },
  2604. });
  2605.  
  2606. $.register({
  2607. rule: {
  2608. host: /^pixhub\.eu$/,
  2609. },
  2610. ready: function () {
  2611. 'use strict';
  2612. $.removeNodes('iframe, .adultpage, #FFN_Banner_Holder');
  2613. var i = $('.image-show img');
  2614. $.openImage(i.src);
  2615. },
  2616. });
  2617.  
  2618. $.register({
  2619. rule: {
  2620. host: /^(www\.)?pixroute\.com$/
  2621. },
  2622. ready: function () {
  2623. 'use strict';
  2624. var o = $('body > center > div > center:nth-child(12) > div > a > img');
  2625. $.openImage(o.src);
  2626. },
  2627. });
  2628.  
  2629. $.register({
  2630. rule: {
  2631. host: /^www\.pornimagex\.com$/,
  2632. path: /^\/image\/.*$/,
  2633. },
  2634. ready: function () {
  2635. 'use strict';
  2636. var img = $('#fixed img.border2px');
  2637. $.openImage(img.src);
  2638. },
  2639. });
  2640.  
  2641. $.register({
  2642. rule: {
  2643. host: /^postimg\.org$/,
  2644. },
  2645. ready: function () {
  2646. 'use strict';
  2647. var i = $('body > center > img');
  2648. $.openImage(i.src);
  2649. },
  2650. });
  2651.  
  2652. $.register({
  2653. rule: {
  2654. host: /^prntscr\.com$/
  2655. },
  2656. ready: function () {
  2657. 'use strict';
  2658. var i = $('#screenshot-image');
  2659. $.openImage(i.src);
  2660. },
  2661. });
  2662.  
  2663. $.register({
  2664. rule: {
  2665. host: /^pronpic\.org$/,
  2666. },
  2667. ready: function () {
  2668. 'use strict';
  2669. var img = $('table.new_table2:nth-child(2) img.link');
  2670. var url = img.src.replace('th_', '');
  2671. $.openImage(url);
  2672. },
  2673. });
  2674.  
  2675. $.register({
  2676. rule: {
  2677. host: /^(qrrro|greenpiccs)\.com$/,
  2678. path: /^(\/images\/.+)\.html$/,
  2679. },
  2680. start: function (m) {
  2681. 'use strict';
  2682. $.openImage(m.path[1]);
  2683. },
  2684. });
  2685.  
  2686. (function () {
  2687. 'use strict';
  2688. function ready () {
  2689. var i = $('img[class^=centred]');
  2690. $.openImage(i.src);
  2691. }
  2692. $.register({
  2693. rule: [
  2694. {
  2695. host: [
  2696. /^(image(decode|ontime)|(zonezeed|zelje|croft|myhot|dam|bok)image|picstwist|www\.imglemon|ericsony|imgpu|wpc8|uplimg|goimge)\.com$/,
  2697. /^(img(serve|coin|fap)|gallerycloud)\.net$/,
  2698. /^hotimages\.eu$/,
  2699. /^(imgstudio|dragimage|imageteam)\.org$/,
  2700. /^(i\.)?imgslip\.com$/,
  2701. ],
  2702. path: /^\/img-.*\.html$/,
  2703. },
  2704. {
  2705. host: /^imgrun\.net$/,
  2706. path: /^\/t\/img-.*\.html$/,
  2707. },
  2708. ],
  2709. ready: ready,
  2710. });
  2711. $.register({
  2712. rule: {
  2713. host: /^www.img(adult|taxi).com$/,
  2714. path: /^\/img-.*\.html$/,
  2715. },
  2716. start: function () {
  2717. var c = $.getCookie('user');
  2718. if (c) {
  2719. return;
  2720. }
  2721. $.setCookie('user', 'true');
  2722. window.location.reload();
  2723. },
  2724. ready: ready,
  2725. });
  2726. $.register({
  2727. rule: {
  2728. host: /^08lkk\.com$/,
  2729. path: /^\/Photo\/img-.+\.html$/,
  2730. },
  2731. start: function () {
  2732. $.window.setTimeout = _.nop;
  2733. $.get(window.location.toString()).then(function (data) {
  2734. var a = $.toDOM(data);
  2735. var i = $('img[class^=centred]', a);
  2736. $.openImage(i.src);
  2737. });
  2738. },
  2739. });
  2740. })();
  2741.  
  2742. (function () {
  2743. 'use strict';
  2744. $.register({
  2745. rule: {
  2746. host: /^www\.imagesnake\.com$/,
  2747. path: /^\/index\.php$/,
  2748. query: /^\?/,
  2749. },
  2750. ready: function () {
  2751. var a = $('#tablewraper a:nth-child(2)');
  2752. $.openImage(a.href);
  2753. },
  2754. });
  2755. function run () {
  2756. var i = $('#img_obj');
  2757. $.openImage(i.src);
  2758. }
  2759. $.register({
  2760. rule: {
  2761. host: /^www\.(imagesnake|freebunker|imgcarry)\.com$/,
  2762. path: /^\/show\//,
  2763. },
  2764. ready: run,
  2765. });
  2766. $.register({
  2767. rule: {
  2768. host: /^www\.imagefruit\.com$/,
  2769. path: /^\/(img|show)\/.+/,
  2770. },
  2771. ready: run,
  2772. });
  2773. })();
  2774.  
  2775. $.register({
  2776. rule: 'http://www.subirimagenes.com/*.html',
  2777. ready: function () {
  2778. 'use strict';
  2779. var i = $('#ImagenVisualizada');
  2780. $.openImage(i.src);
  2781. },
  2782. });
  2783.  
  2784. $.register({
  2785. rule: 'http://tinypic.com/view.php?pic=*',
  2786. ready: function () {
  2787. 'use strict';
  2788. var i = $('#imgElement');
  2789. $.openImage(i.src);
  2790. },
  2791. });
  2792.  
  2793. $.register({
  2794. rule: {
  2795. host: /^www\.turboimagehost\.com$/,
  2796. },
  2797. ready: function () {
  2798. 'use strict';
  2799. var i = $('#imageid');
  2800. $.openImage(i.src);
  2801. },
  2802. });
  2803.  
  2804. $.register({
  2805. rule: 'http://vvcap.net/db/*.htp',
  2806. ready: function () {
  2807. 'use strict';
  2808. var i = $('img');
  2809. $.replace(i.src);
  2810. },
  2811. });
  2812.  
  2813. $.register({
  2814. rule: {
  2815. host: /^x\.pixfarm\.net$/,
  2816. path: /^\/sexy\/\d+\/\d+\/.+\.html$/,
  2817. },
  2818. ready: function () {
  2819. 'use strict';
  2820. var i = $('img');
  2821. $.openImage(i.src);
  2822. },
  2823. });
  2824.  
  2825. $.register({
  2826. rule: {
  2827. host: /\.yfrog\.com$/,
  2828. },
  2829. ready: function () {
  2830. 'use strict';
  2831. if (/^\/z/.test(window.location.pathname)) {
  2832. var i = $('#the-image img');
  2833. $.openImage(i.src);
  2834. return;
  2835. }
  2836. var a = $.$('#continue-link a, #main_image');
  2837. if (a) {
  2838. $.openLink('/z' + window.location.pathname);
  2839. return;
  2840. }
  2841. },
  2842. });
  2843.  
  2844. $.register({
  2845. rule: {
  2846. host: /^01\.nl$/,
  2847. },
  2848. ready: function () {
  2849. 'use strict';
  2850. var f = $('iframe#redirectframe');
  2851. $.openLink(f.src);
  2852. },
  2853. });
  2854.  
  2855. $.register({
  2856. rule: {
  2857. host: /^(www\.)?1be\.biz$/,
  2858. path: /^\/s\.php$/,
  2859. query: /^\?(.+)/,
  2860. },
  2861. start: function (m) {
  2862. 'use strict';
  2863. $.openLink(m.query[1]);
  2864. },
  2865. });
  2866.  
  2867. $.register({
  2868. rule: {
  2869. host: /^(www\.)?1tiny\.net$/,
  2870. path: /\/\w+/
  2871. },
  2872. ready: function () {
  2873. 'use strict';
  2874. var directUrl = $.searchScripts(/window\.location='([^']+)';/);
  2875. if (!directUrl) {
  2876. throw new _.AdsBypasserError('script content changed');
  2877. }
  2878. $.openLink(directUrl[1]);
  2879. },
  2880. });
  2881.  
  2882. $.register({
  2883. rule: {
  2884. host: /^2ty\.cc$/,
  2885. path: /^\/.+/,
  2886. },
  2887. ready: function () {
  2888. 'use strict';
  2889. $.removeNodes('iframe');
  2890. var a = $('#close');
  2891. $.openLink(a.href);
  2892. },
  2893. });
  2894.  
  2895. $.register({
  2896. rule: {
  2897. host: /^(www\.)?3ra\.be$/,
  2898. },
  2899. ready: function () {
  2900. 'use strict';
  2901. $.removeNodes('iframe');
  2902. var f = $.window.fc;
  2903. if (!f) {
  2904. throw new _.AdsBypasserError('window.fc is undefined');
  2905. }
  2906. f = f.toString();
  2907. f = f.match(/href="([^"]*)/);
  2908. if (!f) {
  2909. throw new _.AdsBypasserError('url pattern outdated');
  2910. }
  2911. $.openLink(f[1]);
  2912. },
  2913. });
  2914.  
  2915. $.register({
  2916. rule: {
  2917. host: /^(www\.)?4fun\.tw$/,
  2918. },
  2919. ready: function () {
  2920. 'use strict';
  2921. var i = $('#original_url');
  2922. $.openLink(i.value);
  2923. },
  2924. });
  2925.  
  2926. $.register({
  2927. rule: {
  2928. host: /^ad2links\.com$/,
  2929. path: /^\/\w-.+$/,
  2930. },
  2931. ready: function () {
  2932. 'use strict';
  2933. $.removeNodes('iframe');
  2934. $.openLinkByPost(window.location.toString(), {
  2935. image: 'Skip Ad.',
  2936. });
  2937. },
  2938. });
  2939.  
  2940. (function () {
  2941. 'use strict';
  2942. $.register({
  2943. rule: {
  2944. host: /^ad7.biz$/,
  2945. path: /^\/\d+\/(.*)$/,
  2946. },
  2947. start: function (m) {
  2948. $.removeNodes('iframe');
  2949. var redirectLink = m.path[1];
  2950. if (!redirectLink.match(/^https?:\/\//)) {
  2951. redirectLink = "http://" + redirectLink;
  2952. }
  2953. $.openLink(redirectLink);
  2954. },
  2955. });
  2956. $.register({
  2957. rule: {
  2958. host: /^ad7.biz$/,
  2959. path: /^\/\w+$/,
  2960. },
  2961. ready: function () {
  2962. $.removeNodes('iframe');
  2963. var script = $.searchScripts('var r_url');
  2964. var url = script.match(/&url=([^&]+)/);
  2965. url = url[1];
  2966. $.openLink(url);
  2967. },
  2968. });
  2969. })();
  2970.  
  2971. $.register({
  2972. rule: {
  2973. host: /^(www\.)?adb\.ug$/,
  2974. path: /^(?!\/(?:privacy|terms|contact(\/.*)?|#.*)?$).*$/
  2975. },
  2976. ready: function () {
  2977. 'use strict';
  2978. $.removeNodes('iframe');
  2979. var m = $.searchScripts(/top\.location\.href="([^"]+)"/);
  2980. if (m) {
  2981. $.openLink(m[1]);
  2982. return;
  2983. }
  2984. m = $.searchScripts(/\{_args.+\}\}/);
  2985. if (!m) {
  2986. throw new _.AdsBypasserError('script content changed');
  2987. }
  2988. m = eval('(' + m[0] + ')');
  2989. var url = window.location.pathname + '/skip_timer';
  2990. var i = setInterval(function () {
  2991. $.post(url, m).then(function (text) {
  2992. var jj = JSON.parse(text);
  2993. if (!jj.errors && jj.messages) {
  2994. clearInterval(i);
  2995. $.openLink(jj.messages.url);
  2996. }
  2997. });
  2998. }, 1000);
  2999. },
  3000. });
  3001.  
  3002. (function () {
  3003. 'use strict';
  3004. $.register({
  3005. rule: {
  3006. path: /\/locked$/,
  3007. query: /url=([^&]+)/,
  3008. },
  3009. start: function (m) {
  3010. $.resetCookies();
  3011. var url = decodeURIComponent(m.query[1]);
  3012. if (url.match(/^http/)) {
  3013. $.openLink(url);
  3014. } else {
  3015. $.openLink('/' + url);
  3016. }
  3017. },
  3018. });
  3019. $.register({
  3020. rule: function () {
  3021. var h = $.$('html[id="adfly_html"]');
  3022. var b = $.$('body[id="home"]');
  3023. if (h && b) {
  3024. return true;
  3025. } else {
  3026. return null;
  3027. }
  3028. },
  3029. ready: function () {
  3030. var h = $.$('#adfly_html'), b = $.$('#home');
  3031. if (!h || !b || h.nodeName !== 'HTML' || b.nodeName !== 'BODY') {
  3032. return;
  3033. }
  3034. $.removeNodes('iframe');
  3035. $.window.cookieCheck = _.nop;
  3036. h = $.window.eu;
  3037. if (!h) {
  3038. h = $('#adfly_bar');
  3039. $.window.close_bar();
  3040. return;
  3041. }
  3042. var a = h.indexOf('!HiTommy');
  3043. if (a >= 0) {
  3044. h = h.substring(0, a);
  3045. }
  3046. a = '';
  3047. b = '';
  3048. for (var i = 0; i < h.length; ++i) {
  3049. if (i % 2 === 0) {
  3050. a = a + h.charAt(i);
  3051. } else {
  3052. b = h.charAt(i) + b;
  3053. }
  3054. }
  3055. h = atob(a + b);
  3056. h = h.substr(2);
  3057. if (location.hash) {
  3058. h += location.hash;
  3059. }
  3060. $.openLinkWithReferer(h);
  3061. },
  3062. });
  3063. $.register({
  3064. rule: 'http://ad7.biz/*',
  3065. ready: function () {
  3066. $.removeNodes('iframe');
  3067. $.resetCookies();
  3068. var script = $.searchScripts('var r_url');
  3069. var url = script.match(/&url=([^&]+)/);
  3070. url = url[1];
  3071. $.openLinkWithReferer(url);
  3072. },
  3073. });
  3074. })();
  3075.  
  3076. $.register({
  3077. rule: 'http://adfoc.us/*',
  3078. ready: function () {
  3079. 'use strict';
  3080. var root = document.body;
  3081. var observer = new MutationObserver(function (mutations) {
  3082. var o = $.$('#showSkip');
  3083. if (o) {
  3084. observer.disconnect();
  3085. o = o.querySelector('a');
  3086. $.openLink(o.href);
  3087. }
  3088. });
  3089. observer.observe(root, {
  3090. childList: true,
  3091. subtree: true,
  3092. });
  3093. },
  3094. });
  3095.  
  3096. $.register({
  3097. rule: {
  3098. host: /^(www\.)?adjet\.biz$/,
  3099. },
  3100. ready: function () {
  3101. 'use strict';
  3102. var m = $.searchScripts(/href=(\S+)/);
  3103. if (!m) {
  3104. throw new _.AdsBypasserError('site changed');
  3105. }
  3106. $.openLink(m[1]);
  3107. },
  3108. });
  3109.  
  3110. $.register({
  3111. rule: {
  3112. host: /^adlock\.org$/,
  3113. },
  3114. ready: function () {
  3115. 'use strict';
  3116. var a = $.$('#xre a.xxr, #downloadButton1');
  3117. if (a) {
  3118. $.openLink(a.href);
  3119. return;
  3120. }
  3121. a = $.window.fileLocation;
  3122. if (a) {
  3123. $.openLink(a);
  3124. }
  3125. },
  3126. });
  3127.  
  3128. $.register({
  3129. rule: {
  3130. host: /^(www\.)?adlot\.us$/,
  3131. },
  3132. ready: function () {
  3133. 'use strict';
  3134. $.removeNodes('iframe');
  3135. var script = $.searchScripts('form');
  3136. var p = /name='([^']+)' value='([^']+)'/g;
  3137. var opt = {
  3138. image: ' ',
  3139. };
  3140. var tmp = null;
  3141. while (tmp = p.exec(script)) {
  3142. opt[tmp[1]] = tmp[2];
  3143. }
  3144. $.openLinkByPost('', opt);
  3145. },
  3146. });
  3147.  
  3148. $.register({
  3149. rule: {
  3150. host: /^(www\.)?ah-informatique\.com$/,
  3151. path: /^\/ZipUrl/,
  3152. },
  3153. ready: function () {
  3154. 'use strict';
  3155. var a = $('#zip3 a');
  3156. $.openLink(a.href);
  3157. },
  3158. });
  3159.  
  3160. $.register({
  3161. rule: {
  3162. host: /^aka\.gr$/
  3163. },
  3164. ready: function () {
  3165. 'use strict';
  3166. var l = $('iframe#yourls-frame');
  3167. $.openLink(l.src);
  3168. },
  3169. });
  3170.  
  3171. $.register({
  3172. rule: {
  3173. host: /^(www\.)?allkeyshop\.com$/,
  3174. },
  3175. ready: function (m) {
  3176. 'use strict';
  3177. var matches = $.searchScripts(/window\.location\.href = "([^"]+)"/);
  3178. $.openLink(matches[1]);
  3179. $.removeAllTimer();
  3180. },
  3181. });
  3182.  
  3183. $.register({
  3184. rule: {
  3185. host: /^anonymbucks\.com$/,
  3186. },
  3187. ready: function () {
  3188. 'use strict';
  3189. var a = $('#boton-continuar');
  3190. a.click();
  3191. },
  3192. });
  3193.  
  3194. (function () {
  3195. 'use strict';
  3196. $.register({
  3197. rule: {
  3198. host: /^bc\.vc$/,
  3199. path: /^.+(https?:\/\/.+)$/,
  3200. },
  3201. start: function (m) {
  3202. $.openLink(m.path[1] + document.location.search + document.location.hash);
  3203. },
  3204. });
  3205. function decompress (script, unzip) {
  3206. if (!unzip) {
  3207. return script;
  3208. }
  3209. var matches = script.match(/eval(.*)/);
  3210. matches = matches[1];
  3211. script = eval(matches);
  3212. return script;
  3213. }
  3214. function searchScript (unzip) {
  3215. var content = $.searchScripts('make_log');
  3216. if (content) {
  3217. return {
  3218. direct: false,
  3219. script: decompress(content, unzip),
  3220. };
  3221. }
  3222. content = $.searchScripts('click_log');
  3223. if (content) {
  3224. return {
  3225. direct: true,
  3226. script: decompress(content, unzip),
  3227. };
  3228. }
  3229. throw _.AdsBypasserError('script changed');
  3230. }
  3231. function knockServer (script, dirtyFix) {
  3232. var matches = script.match(/\$.post\('([^']*)'[^{]+(\{opt:'make_log'[^}]+\}\}),/i);
  3233. var make_url = matches[1];
  3234. var make_opts = eval('(' + matches[2] + ')');
  3235. var i = setInterval(function () {
  3236. $.post(make_url, make_opts).then(function (text) {
  3237. if (dirtyFix) {
  3238. text = text.match(/\{.+\}/)[0];
  3239. }
  3240. var jj = JSON.parse(text);
  3241. if (jj.message) {
  3242. clearInterval(i);
  3243. $.openLink(jj.message.url);
  3244. }
  3245. });
  3246. }, 1000);
  3247. }
  3248. function knockServer2 (script) {
  3249. var post = $.window.$.post;
  3250. $.window.$.post = function (a, b, c) {
  3251. if (typeof c !== 'function') {
  3252. return;
  3253. }
  3254. setTimeout(function () {
  3255. var data = {
  3256. error: false,
  3257. message: {
  3258. url: '#',
  3259. },
  3260. };
  3261. c(JSON.stringify(data));
  3262. }, 1000);
  3263. };
  3264. var matches = script.match(/\$.post\('([^']*)'[^{]+(\{opt:'make_log'[^}]+\}\}),/i);
  3265. var make_url = matches[1];
  3266. var make_opts = eval('(' + matches[2] + ')');
  3267. function makeLog () {
  3268. make_opts.opt = 'make_log';
  3269. post(make_url, make_opts, function (text) {
  3270. var data = JSON.parse(text);
  3271. _.info('make_log', data);
  3272. if (!data.message) {
  3273. checksLog();
  3274. return;
  3275. }
  3276. $.openLink(data.message.url);
  3277. });
  3278. }
  3279. function checkLog () {
  3280. make_opts.opt = 'check_log';
  3281. post(make_url, make_opts, function (text) {
  3282. var data = JSON.parse(text);
  3283. _.info('check_log', data);
  3284. if (!data.message) {
  3285. checkLog();
  3286. return;
  3287. }
  3288. makeLog();
  3289. });
  3290. }
  3291. function checksLog () {
  3292. make_opts.opt = 'checks_log';
  3293. post(make_url, make_opts, function () {
  3294. _.info('checks_log');
  3295. checkLog();
  3296. });
  3297. }
  3298. checksLog();
  3299. }
  3300. $.register({
  3301. rule: {
  3302. host: /^bc\.vc$/,
  3303. path: /^\/.+/,
  3304. },
  3305. ready: function () {
  3306. $.removeNodes('iframe');
  3307. var result = searchScript(false);
  3308. if (!result.direct) {
  3309. knockServer2(result.script);
  3310. } else {
  3311. result = result.script.match(/top\.location\.href = '([^']+)'/);
  3312. if (!result) {
  3313. throw new _.AdsBypasserError('script changed');
  3314. }
  3315. result = result[1];
  3316. $.openLink(result);
  3317. }
  3318. },
  3319. });
  3320. function run (dirtyFix) {
  3321. $.removeNodes('iframe');
  3322. var result = searchScript(true);
  3323. if (!result.direct) {
  3324. knockServer(result.script,dirtyFix);
  3325. } else {
  3326. result = result.script.match(/top\.location\.href='([^']+)'/);
  3327. if (!result) {
  3328. throw new _.AdsBypasserError('script changed');
  3329. }
  3330. result = result[1];
  3331. $.openLink(result);
  3332. }
  3333. }
  3334. $.register({
  3335. rule: {
  3336. host: /^adcrun\.ch$/,
  3337. path: /^\/\w+$/,
  3338. },
  3339. ready: function () {
  3340. $.removeNodes('.user_content');
  3341. var rSurveyLink = /http\.open\("GET", "api_ajax\.php\?sid=\d*&ip=[^&]*&longurl=([^"]+)" \+ first_time, (?:true|false)\);/;
  3342. var l = $.searchScripts(rSurveyLink);
  3343. if (l) {
  3344. $.openLink(l[1]);
  3345. return;
  3346. }
  3347. run(true);
  3348. },
  3349. });
  3350. $.register({
  3351. rule: {
  3352. host: [
  3353. /^1tk\.us$/,
  3354. /^gx\.si$/,
  3355. /^adwat\.ch$/,
  3356. /^(fly2url|urlwiz|xafox)\.com$/,
  3357. /^(zpoz|ultry)\.net$/,
  3358. /^(wwy|myam)\.me$/,
  3359. /^ssl\.gs$/,
  3360. /^link\.tl$/,
  3361. /^hit\.us$/,
  3362. /^shortit\.in$/,
  3363. /^(adbla|tl7)\.us$/,
  3364. /^www\.adjet\.eu$/,
  3365. /^srk\.gs$/,
  3366. /^cun\.bz$/,
  3367. /^miniurl\.tk$/,
  3368. /^vizzy\.es$/,
  3369. /^kazan\.vc$/,
  3370. ],
  3371. path: /^\/.+/,
  3372. },
  3373. ready: run,
  3374. });
  3375. $.register({
  3376. rule: {
  3377. host: /^adtr\.im|ysear\.ch|xip\.ir$/,
  3378. path: /^\/.+/,
  3379. },
  3380. ready: function () {
  3381. var a = $.$('div.fly_head a.close');
  3382. var f = $.$('iframe.fly_frame');
  3383. if (a && f) {
  3384. $.openLink(f.src);
  3385. } else {
  3386. run();
  3387. }
  3388. },
  3389. });
  3390. $.register({
  3391. rule: {
  3392. host: /^ad5\.eu$/,
  3393. path: /^\/[^.]+$/,
  3394. },
  3395. ready: function() {
  3396. $.removeNodes('iframe');
  3397. var s = searchScript(true);
  3398. var m = s.script.match(/(<form name="form1"method="post".*(?!<\\form>)<\/form>)/);
  3399. if (!m) {return;}
  3400. m = m[1];
  3401. var tz = -(new Date().getTimezoneOffset()/60);
  3402. m = m.replace("'+timezone+'",tz);
  3403. var d = document.createElement('div');
  3404. d.setAttribute('id','AdsBypasserFTW');
  3405. d.setAttribute('style', 'display:none;');
  3406. d.innerHTML = m;
  3407. document.body.appendChild(d);
  3408. $('#AdsBypasserFTW > form[name=form1]').submit();
  3409. },
  3410. });
  3411. $.register({
  3412. rule: {
  3413. host: /^tr5\.in$/,
  3414. path: /^\/.+/,
  3415. },
  3416. ready: function () {
  3417. run(true);
  3418. },
  3419. });
  3420. })();
  3421.  
  3422. $.register({
  3423. rule: {
  3424. host: /^(www\.)?biglistofwebsites\.com$/,
  3425. path: /^\/go\/(\w+\.\w+)$/
  3426. },
  3427. start: function (m) {
  3428. 'use strict';
  3429. $.openLink('http://' + m.path[1]);
  3430. },
  3431. });
  3432.  
  3433. $.register({
  3434. rule: 'http://www.bild.me/bild.php?file=*',
  3435. ready: function () {
  3436. 'use strict';
  3437. var i = $('#Bild');
  3438. $.openLink(i.src);
  3439. },
  3440. });
  3441.  
  3442. $.register({
  3443. rule: 'http://bildr.no/view/*',
  3444. ready: function () {
  3445. 'use strict';
  3446. var i = $('img.bilde');
  3447. $.openLink(i.src);
  3448. },
  3449. });
  3450.  
  3451. $.register({
  3452. rule: {
  3453. host: /^(www\.)?([a-zA-Z0-9]+\.)?binbox\.io$/,
  3454. path: /\/o\/([a-zA-Z0-9]+)/,
  3455. },
  3456. start: function (m) {
  3457. 'use strict';
  3458. var direct_link = window.atob(m.path[1]);
  3459. $.openLink(direct_link);
  3460. },
  3461. });
  3462.  
  3463. $.register({
  3464. rule: {
  3465. host: /^bk-ddl\.net$/,
  3466. path: /^\/\w+$/,
  3467. },
  3468. ready: function (m) {
  3469. 'use strict';
  3470. var l = $('a.btn-block.redirect').href;
  3471. var b64 = l.match(/\?r=(\w+={0,2}?)/);
  3472. $.openLink(atob(b64[1]));
  3473. },
  3474. });
  3475.  
  3476. $.register({
  3477. rule: {
  3478. host: /^(www\.)?(buz|vzt)url\.com$/,
  3479. },
  3480. ready: function () {
  3481. 'use strict';
  3482. var frame = $('frame[scrolling=yes]');
  3483. $.openLink(frame.src);
  3484. },
  3485. });
  3486.  
  3487. $.register({
  3488. rule: {
  3489. host: /^(cf|ex|xt)\d\.(me|co)$/,
  3490. },
  3491. ready: function (m) {
  3492. 'use strict';
  3493. $.removeNodes('iframe');
  3494. var a = $('#skip_button');
  3495. $.openLink(a.href);
  3496. },
  3497. });
  3498.  
  3499. $.register({
  3500. rule: {
  3501. host: /^cf\.ly$/,
  3502. path: /^\/[^\/]+$/,
  3503. },
  3504. start: function (m) {
  3505. 'use strict';
  3506. $.removeNodes('iframe');
  3507. $.openLink('/skip' + m.path[0]);
  3508. },
  3509. });
  3510.  
  3511. $.register({
  3512. rule: {
  3513. host: /^(www\.)?cli\.gs$/,
  3514. },
  3515. ready: function () {
  3516. 'use strict';
  3517. var a = $('a.RedirectLink');
  3518. $.openLink(a.href);
  3519. },
  3520. });
  3521.  
  3522. $.register({
  3523. rule: {
  3524. host: /^(www\.)?clictune\.com$/,
  3525. path: /^\/id=\d+/,
  3526. },
  3527. ready: function () {
  3528. 'use strict';
  3529. $.removeNodes('iframe');
  3530. var matches = $.searchScripts(/<a href="http:\/\/(?:www.)?clictune\.com\/redirect\.php\?url=([^&]+)&/);
  3531. var url = decodeURIComponent(matches[1]);
  3532. $.openLink(url);
  3533. },
  3534. });
  3535.  
  3536. $.register({
  3537. rule: {
  3538. host: /^clk\.im$/,
  3539. },
  3540. ready: function (m) {
  3541. 'use strict';
  3542. $.removeNodes('iframe');
  3543. var matches = $.searchScripts(/\$\("\.countdown"\)\.attr\("href","([^"]+)"\)/);
  3544. $.openLink(matches[1]);
  3545. },
  3546. });
  3547.  
  3548. $.register({
  3549. rule: {
  3550. host: /^(www\.)?(coin-ads\.com|shortin\.tk)$/,
  3551. path: /^\/.+/,
  3552. },
  3553. ready: function () {
  3554. 'use strict';
  3555. var m = $.searchScripts(/window\.location\.replace/);
  3556. if (m) {
  3557. return;
  3558. }
  3559. m = $.searchScripts(/countdownArea\.innerHTML = "([^"]+)"/);
  3560. if (!m) {
  3561. throw new _.AdsBypasserError('pattern changed');
  3562. }
  3563. m = m[1];
  3564. var d = $.$('#area');
  3565. if (d) {
  3566. d.innerHTML = m;
  3567. d = $('.skip', d);
  3568. d.click();
  3569. return;
  3570. }
  3571. d = $('#site');
  3572. $.openLink(d.src);
  3573. },
  3574. });
  3575.  
  3576. $.register({
  3577. rule: {
  3578. host: /^(?:(\w+)\.)?(coinurl\.com|cur\.lv)$/,
  3579. path: /^\/([-\w]+)$/
  3580. },
  3581. ready: function (m) {
  3582. 'use strict';
  3583. $.removeNodes('iframe');
  3584. var host = 'http://cur.lv/redirect_curlv.php';
  3585. var param = m.host[1] === undefined ? {
  3586. code: m.path[1],
  3587. } : {
  3588. zone: m.host[1],
  3589. name: m.path[1],
  3590. };
  3591. $.get(host, param).then(function(mainFrameContent) {
  3592. try {
  3593. var docMainFrame = $.toDOM(mainFrameContent);
  3594. } catch (e) {
  3595. throw new _.AdsBypasserError('main frame changed');
  3596. }
  3597. var rExtractLink = /onclick="open_url\('([^']+)',\s*'go'\)/;
  3598. var innerFrames = $.$$('frameset > frame', docMainFrame).each(function (currFrame) {
  3599. var currFrameAddr = window.location.origin + '/' + currFrame.getAttribute('src');
  3600. $.get(currFrameAddr).then(function(currFrameContent) {
  3601. var aRealLink = rExtractLink.exec(currFrameContent);
  3602. if (aRealLink === undefined || aRealLink[1] === undefined) {
  3603. return;
  3604. }
  3605. var realLink = aRealLink[1];
  3606. $.openLink(realLink);
  3607. });
  3608. });
  3609. });
  3610. },
  3611. });
  3612.  
  3613. $.register({
  3614. rule: {
  3615. host: /^comyonet\.com$/,
  3616. },
  3617. ready: function () {
  3618. 'use strict';
  3619. var input = $('input[name="enter"]');
  3620. input.click();
  3621. },
  3622. });
  3623.  
  3624. $.register({
  3625. rule: {
  3626. host: /^(www\.)?dapat\.in$/,
  3627. },
  3628. ready: function () {
  3629. 'use strict';
  3630. var f = $('iframe[name=pagetext]');
  3631. $.openLink(f.src);
  3632. },
  3633. });
  3634.  
  3635. $.register({
  3636. rule: {
  3637. host: /^(www\.)?dd\.ma$/,
  3638. },
  3639. ready: function (m) {
  3640. 'use strict';
  3641. var i = $.$('#mainframe');
  3642. if (i) {
  3643. $.openLink(i.src);
  3644. return;
  3645. }
  3646. var a = $('#btn_open a');
  3647. $.openLink(a.href);
  3648. },
  3649. });
  3650.  
  3651. $.register({
  3652. rule: {
  3653. host: /^dikit\.in$/,
  3654. },
  3655. ready: function () {
  3656. 'use strict';
  3657. $.removeNodes('iframe');
  3658. var a = $('.disclaimer a');
  3659. $.openLink(a.href);
  3660. },
  3661. });
  3662.  
  3663. $.register({
  3664. rule: 'http://www.dumppix.com/viewer.php?*',
  3665. ready: function () {
  3666. 'use strict';
  3667. var i = $.$('#boring');
  3668. if (i) {
  3669. $.openLink(i.src);
  3670. return;
  3671. }
  3672. i = $('table td:nth-child(1) a');
  3673. $.openLink(i.href);
  3674. },
  3675. });
  3676.  
  3677. $.register({
  3678. rule: {
  3679. host: /^durl\.me$/,
  3680. },
  3681. ready: function () {
  3682. 'use strict';
  3683. var a = $('a[class="proceedBtn"]');
  3684. $.openLink(a.href);
  3685. },
  3686. });
  3687.  
  3688. $.register({
  3689. rule: {
  3690. host: /easyurl\.net|(atu|clickthru|redirects|readthis)\.ca|goshrink\.com$/,
  3691. },
  3692. ready: function () {
  3693. 'use strict';
  3694. var f = $('frame[name=main]');
  3695. $.openLink(f.src);
  3696. },
  3697. });
  3698.  
  3699. $.register({
  3700. rule: {
  3701. host: /empireload\.com$/,
  3702. path: /^\/plugin\.php$/,
  3703. query: /^\?id=linkout&url=([^&]+)$/,
  3704. },
  3705. start: function (m) {
  3706. $.openLink(m.query[1]);
  3707. },
  3708. });
  3709.  
  3710. $.register({
  3711. rule: {
  3712. host: [
  3713. /^ethi\.in$/,
  3714. /^st\.wardhanime\.net$/,
  3715. ],
  3716. path: /^\/i\/\d+$/,
  3717. },
  3718. ready: function () {
  3719. 'use strict';
  3720. var a = $('#wrapper > [class^="tombo"] > a[target="_blank"]');
  3721. $.openLink(a.href);
  3722. },
  3723. });
  3724.  
  3725. $.register({
  3726. rule: {
  3727. host: /^(www\.)?filoops.info$/
  3728. },
  3729. ready: function () {
  3730. 'use strict';
  3731. var a = $('#text > center a, #text > div[align=center] a');
  3732. $.openLink(a.href);
  3733. },
  3734. });
  3735.  
  3736. $.register({
  3737. rule: {
  3738. host: /^fit\.sh$/,
  3739. },
  3740. ready: function () {
  3741. 'use strict';
  3742. $.removeNodes('.container-body');
  3743. var m = $.searchScripts(/token="([^"]+)"/);
  3744. if (!m) {
  3745. throw new _.AdsBypasserError('site changed');
  3746. }
  3747. m = m[1];
  3748. var interLink = '/go/' + m + '?fa=15466&a=' + window.location.hash.substr(1);
  3749. setTimeout(function () {
  3750. $.openLink(interLink);
  3751. }, 6000);
  3752. },
  3753. });
  3754.  
  3755. $.register({
  3756. rule: {
  3757. host: /^www\.free-tv-video-online\.info$/,
  3758. path: /^\/interstitial2\.html$/,
  3759. query: /lnk=([^&]+)/,
  3760. },
  3761. start: function (m) {
  3762. 'use strict';
  3763. var url = decodeURIComponent(m.query[1]);
  3764. $.openLink(url);
  3765. },
  3766. });
  3767.  
  3768. (function () {
  3769. 'use strict';
  3770. $.register({
  3771. rule: {
  3772. host: /^(www\.)?fundurl\.com$/,
  3773. query: /i=([^&]+)/,
  3774. },
  3775. start: function (m) {
  3776. $.openLink(m.query[1]);
  3777. },
  3778. });
  3779. $.register({
  3780. rule: {
  3781. host: /^(www\.)?fundurl\.com$/,
  3782. path: /^\/(go-\w+|load\.php)$/,
  3783. },
  3784. ready: function () {
  3785. var f = $('iframe[name=fpage3]');
  3786. $.openLink(f.src);
  3787. },
  3788. });
  3789. })();
  3790.  
  3791. $.register({
  3792. rule: {
  3793. host: /^gca\.sh|repla\.cr$/,
  3794. },
  3795. ready: function () {
  3796. 'use strict';
  3797. $.removeNodes('iframe');
  3798. var jQuery = $.window.$;
  3799. setTimeout(function () {
  3800. jQuery("#captcha-dialog").dialog("open");
  3801. }, 1000);
  3802. },
  3803. });
  3804.  
  3805. $.register({
  3806. rule: {
  3807. host: /^gkurl\.us$/,
  3808. },
  3809. ready: function () {
  3810. 'use strict';
  3811. var iframe = $('#gkurl-frame');
  3812. $.openLink(iframe.src);
  3813. },
  3814. });
  3815.  
  3816. $.register({
  3817. rule: {
  3818. host: /^u\.go2\.me$/,
  3819. },
  3820. ready: function () {
  3821. 'use strict';
  3822. var iframe = $('iframe');
  3823. $.openLink(iframe.src);
  3824. },
  3825. });
  3826.  
  3827. $.register({
  3828. rule: {
  3829. host: /^hotshorturl\.com$/,
  3830. },
  3831. ready: function () {
  3832. 'use strict';
  3833. var frame = $('frame[scrolling=yes]');
  3834. $.openLink(frame.src);
  3835. },
  3836. });
  3837.  
  3838. $.register({
  3839. rule: {
  3840. host: /^(www\.)?(ilix\.in|priva\.us)$/,
  3841. path: /\/(\w+)/,
  3842. },
  3843. ready: function (m) {
  3844. 'use strict';
  3845. var realHost = 'ilix.in';
  3846. if (m.host[2] !== realHost) {
  3847. var realURL = location.href.replace(m.host[2], realHost);
  3848. $.openLink(realURL);
  3849. return;
  3850. }
  3851. var f = $.$('iframe[name=ifram]');
  3852. if (f) {
  3853. $.openLink(f.src);
  3854. return;
  3855. }
  3856. if (!$.$('img#captcha')) {
  3857. $('form[name=frm]').submit();
  3858. }
  3859. },
  3860. });
  3861.  
  3862. $.register({
  3863. rule: {
  3864. host: /^ity\.im$/,
  3865. },
  3866. ready: function () {
  3867. 'use strict';
  3868. var f = $.$('#main');
  3869. if (f) {
  3870. $.openLink(f.src);
  3871. return;
  3872. }
  3873. f = $.$$('frame').find(function (frame) {
  3874. if (frame.src.indexOf('interheader.php') < 0) {
  3875. return _.none;
  3876. }
  3877. return frame.src;
  3878. });
  3879. if (f) {
  3880. $.openLink(f.payload);
  3881. return;
  3882. }
  3883. f = $.searchScripts(/krypted=([^&]+)/);
  3884. if (!f) {
  3885. throw new _.AdsBypasserError('site changed');
  3886. }
  3887. f = f[1];
  3888. var data = $.window.des('ksnslmtmk0v4Pdviusajqu', $.window.hexToString(f), 0, 0);
  3889. if (data) {
  3890. $.openLink('http://ity.im/1104_21_50846_' + data);
  3891. }
  3892. },
  3893. });
  3894.  
  3895. $.register({
  3896. rule: {
  3897. host: /^(www\.)?kingofshrink\.com$/,
  3898. },
  3899. ready: function () {
  3900. 'use strict';
  3901. var l = $('#textresult > a');
  3902. $.openLink(l.href);
  3903. },
  3904. });
  3905.  
  3906. $.register({
  3907. rule: {
  3908. host: /^(www\.)?leechbd\.tk$/,
  3909. path: /^\/Shortener\/(\w+)$/,
  3910. },
  3911. start: function (m) {
  3912. 'use strict';
  3913. $.get('/Shortener/API/read/get', {id: m.path[1], type: 'json'}).then(function (text) {
  3914. var r = JSON.parse(text);
  3915. if (r.success == true && r.data.full) {
  3916. $.openLink(r.data.full);
  3917. } else {
  3918. _.warn('API Error ' + r.error.code + ' : ' + r.error.msg);
  3919. }
  3920. });
  3921. },
  3922. });
  3923.  
  3924. $.register({
  3925. rule: 'http://www.lienscash.com/l/*',
  3926. ready: function () {
  3927. 'use strict';
  3928. var a = $('#redir_btn');
  3929. $.openLink(a.href);
  3930. },
  3931. });
  3932.  
  3933. $.register({
  3934. rule: {
  3935. host: /^(www\.)?\w+\.link-protector\.com$/,
  3936. },
  3937. ready: function (m) {
  3938. 'use strict';
  3939. var f = $('form[style="font-weight:normal;font-size:12;font-family:Verdana;"]');
  3940. $.openLink(f.action);
  3941. },
  3942. });
  3943.  
  3944. $.register({
  3945. rule: {
  3946. host: /\.link2dollar\.com$/,
  3947. path: /^\/\d+$/,
  3948. },
  3949. ready: function () {
  3950. 'use strict';
  3951. var m = $.searchScripts(/var rlink = '([^']+)';/);
  3952. if (!m) {
  3953. throw new _.AdsBypasserError('site changed');
  3954. }
  3955. m = m[1];
  3956. $.openLink(m);
  3957. },
  3958. });
  3959.  
  3960. $.register({
  3961. rule: {
  3962. host: /^link2you\.ru$/,
  3963. path: /^\/\d+\/(.+)$/,
  3964. },
  3965. start: function (m) {
  3966. 'use strict';
  3967. var url = m.path[1];
  3968. if (!url.match(/^https?:\/\//)) {
  3969. url = '//' + url;
  3970. }
  3971. $.openLink(url);
  3972. },
  3973. });
  3974.  
  3975. (function() {
  3976. function ConvertFromHex (str) {
  3977. var result = [];
  3978. while (str.length >= 2) {
  3979. result.push(String.fromCharCode(parseInt(str.substring(0, 2), 16)));
  3980. str = str.substring(2, str.length);
  3981. }
  3982. return result.join("");
  3983. }
  3984. var Encode = function (str) {
  3985. var s = [], j = 0, x, res = '', k = arguments.callee.toString().replace(/\s+/g, "");
  3986. for (var i = 0; i < 256; i++) {
  3987. s[i] = i;
  3988. }
  3989. for (i = 0; i < 256; i++) {
  3990. j = (j + s[i] + k.charCodeAt(i % k.length)) % 256;
  3991. x = s[i];
  3992. s[i] = s[j];
  3993. s[j] = x;
  3994. }
  3995. i = 0;
  3996. j = 0;
  3997. for (var y = 0; y < str.length; y++) {
  3998. i = (i + 1) % 256;
  3999. j = (j + s[i]) % 256;
  4000. x = s[i];
  4001. s[i] = s[j];
  4002. s[j] = x;
  4003. res += String.fromCharCode(str.charCodeAt(y) ^ s[(s[i] + s[j]) % 256]);
  4004. }
  4005. return res;
  4006. };
  4007. var hostRules = [
  4008. /^(([\w]{8}|www)\.)?(allanalpass|cash4files|drstickyfingers|fapoff|freegaysitepass|(gone|tube)viral|(pic|tna)bucks|whackyvidz)\.com$/,
  4009. /^(([\w]{8}|www)\.)?(a[mn]y|deb|dyo|sexpalace)\.gs$/,
  4010. /^(([\w]{8}|www)\.)?(filesonthe|poontown|seriousdeals|ultrafiles|urlbeat)\.net$/,
  4011. /^(([\w]{8}|www)\.)?freean\.us$/,
  4012. /^(([\w]{8}|www)\.)?galleries\.bz$/,
  4013. /^(([\w]{8}|www)\.)?hornywood\.tv$/,
  4014. /^(([\w]{8}|www)\.)?link(babes|bucks)\.com$/,
  4015. /^(([\w]{8}|www)\.)?(megaline|miniurls|qqc|rqq|tinylinks|yyv|zff)\.co$/,
  4016. /^(([\w]{8}|www)\.)?(these(blog|forum)s)\.com$/,
  4017. /^(([\w]{8}|www)\.)?youfap\.me$/,
  4018. /^warning-this-linkcode-will-cease-working-soon\.www\.linkbucksdns\.com$/,
  4019. ];
  4020. function generateRandomIP () {
  4021. 'use strict';
  4022. return [0,0,0,0].map(function () {
  4023. return Math.floor(Math.random() * 256);
  4024. }).join('.');
  4025. }
  4026. function findToken (context) {
  4027. 'use strict';
  4028. var script = $.searchScripts('window[\'init\' + \'Lb\' + \'js\' + \'\']', context);
  4029. if (!script) {
  4030. _.warn('pattern changed');
  4031. return null;
  4032. }
  4033. var m = script.match(/AdPopUrl\s*:\s*'.+\?ref=([\w\d]+)'/);
  4034. var token = m[1];
  4035. m = script.match(/=\s*(\d+);/);
  4036. var ak = parseInt(m[1], 10);
  4037. var re = /\+\s*(\d+);/g;
  4038. var tmp = null;
  4039. while((m = re.exec(script)) !== null) {
  4040. tmp = m[1];
  4041. }
  4042. ak += parseInt(tmp, 10);
  4043. return {
  4044. t: token,
  4045. aK: ak,
  4046. };
  4047. }
  4048. function sendRequest (token) {
  4049. 'use strict';
  4050. _.info('sending token: %o', token);
  4051. var i = setInterval(function () {
  4052. $.get('/intermission/loadTargetUrl', token).then(function (text) {
  4053. var data = JSON.parse(text);
  4054. _.info('response: %o', data);
  4055. if (!data.Success && data.Errors[0] === 'Invalid token') {
  4056. _.info('got invalid token');
  4057. clearInterval(i);
  4058. retry();
  4059. return;
  4060. }
  4061. if (data.Success && !data.AdBlockSpotted && data.Url) {
  4062. clearInterval(i);
  4063. $.openLinkWithReferer(data.Url);
  4064. return;
  4065. }
  4066. });
  4067. }, 1000);
  4068. }
  4069. function retry () {
  4070. 'use strict';
  4071. $.get(window.location.toString(), {}, {
  4072. 'X-Forwarded-For': generateRandomIP(),
  4073. }).then(function (text) {
  4074. var d = $.toDOM(text);
  4075. var t = findToken(d);
  4076. if (!t) {
  4077. var i = setTimeout(retry, 1000);
  4078. return;
  4079. }
  4080. sendRequest(t);
  4081. });
  4082. }
  4083. $.register({
  4084. rule: {
  4085. host: hostRules,
  4086. path: /^\/\w+\/url\/(.+)$/,
  4087. },
  4088. ready: function(m) {
  4089. 'use strict';
  4090. $.removeAllTimer();
  4091. $.resetCookies();
  4092. $.removeNodes('iframe');
  4093. var url = m.path[1] + window.location.search;
  4094. var match = $.searchScripts(/UrlEncoded: ([^,]+)/);
  4095. if (match && match[1] === 'true') {
  4096. url = Encode(ConvertFromHex(url));
  4097. }
  4098. $.openLinkWithReferer(url);
  4099. }
  4100. });
  4101. $.register({
  4102. rule: {
  4103. host: hostRules,
  4104. },
  4105. ready: function () {
  4106. 'use strict';
  4107. $.removeAllTimer();
  4108. $.resetCookies();
  4109. $.removeNodes('iframe');
  4110. if (window.location.pathname.indexOf('verify') >= 0) {
  4111. var path = window.location.pathname.replace('/verify', '');
  4112. $.openLink(path);
  4113. return;
  4114. }
  4115. var token = findToken(document);
  4116. sendRequest(token);
  4117. },
  4118. });
  4119. $.register({
  4120. rule: {
  4121. query: /^(.*)[?&]_lbGate=\d+$/,
  4122. },
  4123. start: function (m) {
  4124. 'use strict';
  4125. $.setCookie('_lbGatePassed', 'true');
  4126. $.openLink(window.location.pathname + m.query[1]);
  4127. },
  4128. });
  4129. })();
  4130.  
  4131. $.register({
  4132. rule: {
  4133. host: [
  4134. /^www\.linkdecode\.com$/,
  4135. /^www\.fastdecode\.com$/,
  4136. ],
  4137. path: /^\/$/,
  4138. query: /^\?.+$/,
  4139. },
  4140. ready: function (m) {
  4141. 'use strict';
  4142. $.removeNodes('iframe');
  4143. var b = $('#m > .Visit_Link');
  4144. b = b.onclick.toString().match(/\'([^']+)\'/);
  4145. if (!b) {
  4146. throw new _.AdsBypasser('pattern changed');
  4147. }
  4148. $.openLink(b[1]);
  4149. },
  4150. });
  4151.  
  4152. $.register({
  4153. rule: {
  4154. host: /^linkshrink\.net$/,
  4155. path: /^\/[a-zA-Z0-9]+$/,
  4156. },
  4157. ready: function () {
  4158. 'use strict';
  4159. var a = $.searchScripts(/class="bt" href="([^"]+)"/);
  4160. if (!a) {
  4161. _.warn('pattern changed');
  4162. return;
  4163. }
  4164. $.openLinkWithReferer(a[1]);
  4165. },
  4166. });
  4167.  
  4168. $.register({
  4169. rule: 'http://lix.in/-*',
  4170. ready: function () {
  4171. 'use strict';
  4172. var i = $.$('#ibdc');
  4173. if (i) {
  4174. return;
  4175. }
  4176. i = $.$('form');
  4177. if (i) {
  4178. i.submit();
  4179. return;
  4180. }
  4181. i = $('iframe');
  4182. $.openLink(i.src);
  4183. },
  4184. });
  4185.  
  4186. $.register({
  4187. rule: {
  4188. host: /^lnk\.in$/,
  4189. },
  4190. ready: function () {
  4191. 'use strict';
  4192. var a = $('#divRedirectText a');
  4193. $.openLink(a.innerHTML);
  4194. },
  4195. });
  4196.  
  4197. $.register({
  4198. rule: {
  4199. host: /^(rd?)lnk\.co|reducelnk\.com$/,
  4200. path: /^\/[^.]+$/,
  4201. },
  4202. ready: function () {
  4203. 'use strict';
  4204. var f = $.$('iframe#dest');
  4205. if (f) {
  4206. $.openLink(f.src);
  4207. return;
  4208. }
  4209. $.removeNodes('iframe');
  4210. var o = $.$('#urlholder');
  4211. if (o) {
  4212. $.openLink(o.value);
  4213. return;
  4214. }
  4215. o = $.$('#skipBtn');
  4216. if (o) {
  4217. o = o.querySelector('a');
  4218. $.openLink(o.href);
  4219. return;
  4220. }
  4221. o = document.title.replace(/(LNK.co|Linkbee)\s*:\s*/, '');
  4222. $.openLink(o);
  4223. },
  4224. });
  4225.  
  4226. $.register({
  4227. rule: {
  4228. host: /^lnx\.lu|url\.fm|z\.gs$/,
  4229. },
  4230. ready: function () {
  4231. 'use strict';
  4232. var a = $('#clickbtn a');
  4233. $.openLink(a.href);
  4234. },
  4235. });
  4236.  
  4237. $.register({
  4238. rule: {
  4239. host: /^(www\.)?loook\.ga$/,
  4240. path: /^\/\d+$/
  4241. },
  4242. ready: function (m) {
  4243. 'use strict';
  4244. var a = $('#download_link > a.btn');
  4245. $.openLink(a.href);
  4246. },
  4247. });
  4248.  
  4249. $.register({
  4250. rule: {
  4251. host: /^lynk\.my$/,
  4252. },
  4253. ready: function () {
  4254. 'use strict';
  4255. var i = setInterval(function () {
  4256. var a = $.$('#continueButton a', window.frames[0].document);
  4257. if (!a) {
  4258. return;
  4259. }
  4260. clearInterval(i);
  4261. $.openLink(a.href);
  4262. }, 100);
  4263. },
  4264. });
  4265.  
  4266. $.register({
  4267. rule: [
  4268. 'http://madlink.sk/',
  4269. 'http://madlink.sk/*.html',
  4270. ],
  4271. });
  4272. $.register({
  4273. rule: 'http://madlink.sk/*',
  4274. start: function (m) {
  4275. 'use strict';
  4276. $.removeNodes('iframe');
  4277. $.post('/ajax/check_redirect.php', {
  4278. link: m[1],
  4279. }).then(function (text) {
  4280. $.openLink(text);
  4281. });
  4282. },
  4283. });
  4284.  
  4285. $.register({
  4286. rule: {
  4287. host: [
  4288. /^mant[ae][pb]\.in$/,
  4289. /^st\.oploverz\.net$/,
  4290. ],
  4291. },
  4292. ready: function () {
  4293. 'use strict';
  4294. var a = $('a.redirect, a[target=_blank][rel=nofollow]');
  4295. $.openLink(a.href);
  4296. },
  4297. });
  4298.  
  4299. $.register({
  4300. rule: {
  4301. host: /^www\.mije\.net$/,
  4302. path: /^\/\w+\/(.+)$/,
  4303. },
  4304. start: function (m) {
  4305. 'use strict';
  4306. var url = atob(m.path[1]);
  4307. $.openLink(url);
  4308. },
  4309. });
  4310.  
  4311. $.register({
  4312. rule: {
  4313. host: [
  4314. /^moe\.god\.jp$/,
  4315. /^moesubs\.akurapopo\.pro$/,
  4316. /^dl\.nsfk\.in$/,
  4317. ]
  4318. },
  4319. ready: function () {
  4320. 'use strict';
  4321. var a = $('div div center a');
  4322. $.openLink(a.href);
  4323. },
  4324. });
  4325.  
  4326. $.register({
  4327. rule: {
  4328. host: /^mt0\.org$/,
  4329. path: /^\/[^\/]+\/$/,
  4330. },
  4331. ready: function () {
  4332. 'use strict';
  4333. $.removeNodes('frame[name=bottom]');
  4334. var f = $('frame[name=top]');
  4335. var i = setInterval(function () {
  4336. var a = $.$('div a', f.contentDocument);
  4337. if (!a) {
  4338. return;
  4339. }
  4340. clearInterval(i);
  4341. $.openLink(a.href)
  4342. }, 1000);
  4343. },
  4344. });
  4345.  
  4346. $.register({
  4347. rule: 'http://my-link.pro/*',
  4348. ready: function () {
  4349. 'use strict';
  4350. var i = $('iframe[scrolling=auto]');
  4351. if (i) {
  4352. $.openLink(i.src);
  4353. }
  4354. },
  4355. });
  4356.  
  4357. $.register({
  4358. rule: {
  4359. host: /^nsfw\.in$/,
  4360. },
  4361. ready: function () {
  4362. 'use strict';
  4363. var a = $('#long_url a');
  4364. $.openLink(a.href);
  4365. },
  4366. });
  4367.  
  4368. $.register({
  4369. rule: {
  4370. host: /^nutshellurl\.com$/,
  4371. },
  4372. ready: function () {
  4373. 'use strict';
  4374. var iframe = $('iframe');
  4375. $.openLink(iframe.src);
  4376. },
  4377. });
  4378.  
  4379. $.register({
  4380. rule: {
  4381. host: /^www\.oni\.vn$/,
  4382. },
  4383. ready: function () {
  4384. 'use strict';
  4385. $.removeNodes('iframe');
  4386. var url = $.searchScripts(/window\.location='([^']+)'/);
  4387. if (!url) {
  4388. throw new _.AdsBypasserError('pattern changed');
  4389. }
  4390. $.openLink(url[1]);
  4391. },
  4392. });
  4393.  
  4394. $.register({
  4395. rule: {
  4396. host: /^oxyl\.me$/,
  4397. },
  4398. ready: function () {
  4399. 'use strict';
  4400. var l = $.$$('.links-container.result-form > a.result-a');
  4401. if (l.size() > 1) {
  4402. return;
  4403. }
  4404. $.openLink(l.at(0).href);
  4405. },
  4406. });
  4407.  
  4408. $.register({
  4409. rule: {
  4410. host: /^p\.pw$/,
  4411. },
  4412. ready: function () {
  4413. 'use strict';
  4414. $.removeNodes('iframe');
  4415. var m = $.searchScripts(/window\.location = "(.*)";/);
  4416. m = m[1];
  4417. $.openLink(m);
  4418. },
  4419. });
  4420.  
  4421. $.register({
  4422. rule: {
  4423. host: /^(www\.)?\w+\.rapeit\.net$/,
  4424. path: /^\/(go|prepair|request|collect|analyze)\/[a-f0-9]+$/,
  4425. },
  4426. ready: function (m) {
  4427. 'use strict';
  4428. var a = $('a#download_link');
  4429. $.openLink(a.href);
  4430. },
  4431. });
  4432.  
  4433. $.register({
  4434. rule: 'http://reffbux.com/refflinx/view/*',
  4435. ready: function () {
  4436. 'use strict';
  4437. $.removeNodes('iframe');
  4438. var m = $.searchScripts(/skip_this_ad_(\d+)_(\d+)/);
  4439. var id = m[1];
  4440. var share = m[2];
  4441. var location = window.location.toString();
  4442. $.post('http://reffbux.com/refflinx/register', {
  4443. id: id,
  4444. share: share,
  4445. fp: 0,
  4446. location: location,
  4447. referer: '',
  4448. }).then(function (text) {
  4449. var m = text.match(/'([^']+)'/);
  4450. if (!m) {
  4451. throw new _.AdsBypasserError('pattern changed');
  4452. }
  4453. $.openLink(m[1]);
  4454. });
  4455. },
  4456. });
  4457.  
  4458. $.register({
  4459. rule: 'http://richlink.com/app/webscr?cmd=_click&key=*',
  4460. ready: function () {
  4461. 'use strict';
  4462. var f = $('frameset');
  4463. f = f.onload.toString();
  4464. f = f.match(/url=([^&]+)/);
  4465. if (f) {
  4466. f = decodeURIComponent(f[1]);
  4467. } else {
  4468. f = $('frame[name=site]');
  4469. f = f.src;
  4470. }
  4471. $.openLink(f);
  4472. },
  4473. });
  4474.  
  4475. $.register({
  4476. rule: 'http://rijaliti.info/*.php',
  4477. ready: function () {
  4478. 'use strict';
  4479. var a = $('#main td[align="center"] a');
  4480. $.openLink(a.href);
  4481. },
  4482. });
  4483.  
  4484. $.register({
  4485. rule: {
  4486. host: /^riurl\.com$/,
  4487. path: /^\/.+/,
  4488. },
  4489. ready: function () {
  4490. 'use strict';
  4491. var s = $.$('body script');
  4492. if (s) {
  4493. s = s.innerHTML.indexOf('window.location.replace');
  4494. if (s >= 0) {
  4495. return;
  4496. }
  4497. }
  4498. $.openLinkByPost('', {
  4499. hidden: '1',
  4500. image: ' ',
  4501. });
  4502. },
  4503. });
  4504.  
  4505. $.register({
  4506. rule: {
  4507. host: /^preview\.rlu\.ru$/,
  4508. },
  4509. ready: function () {
  4510. 'use strict';
  4511. var a = $('#content > .long_url > a');
  4512. $.openLink(a.href);
  4513. },
  4514. });
  4515.  
  4516. $.register({
  4517. rule: {
  4518. host: /^robo\.us$/,
  4519. },
  4520. ready: function () {
  4521. 'use strict';
  4522. $.removeNodes('iframe');
  4523. var url = atob($.window.fl);
  4524. $.openLink(url);
  4525. },
  4526. });
  4527.  
  4528. $.register({
  4529. rule: {
  4530. host: /^(www\.)?sa\.ae$/,
  4531. path: /^\/\w+\/$/,
  4532. },
  4533. ready: function () {
  4534. 'use strict';
  4535. var m = $.searchScripts(/var real_link = '([^']+)';/);
  4536. $.openLink(m[1]);
  4537. },
  4538. });
  4539.  
  4540. $.register({
  4541. rule: [
  4542. {
  4543. host: /^(www\.)?safelinkconverter2\.com$/,
  4544. path: /^\/decrypt-\d\/$/,
  4545. query: /id=(\w+=+)/,
  4546. },
  4547. {
  4548. host: /^(www\.)?safelinkreview\.com$/,
  4549. query: /id=(\w+=+)/,
  4550. },
  4551. ],
  4552. start: function (m) {
  4553. 'use strict';
  4554. $.get('https://decrypt.safelinkconverter.com/index.php' + window.location.search).then(function (html) {
  4555. var m = html.match(/3;URL=([^"]+)/);
  4556. if (!m) {
  4557. _.warn('pattern changed');
  4558. return;
  4559. }
  4560. $.openLink(m[1]);
  4561. });
  4562. },
  4563. });
  4564.  
  4565. $.register({
  4566. rule: {
  4567. host: /^(www\.)?safeurl\.eu$/,
  4568. path: /\/\w+/,
  4569. },
  4570. ready: function () {
  4571. 'use strict';
  4572. var directUrl = $.searchScripts(/window\.open\("([^"]+)"\);/);
  4573. if (!directUrl) {
  4574. throw new _.AdsBypasserError('script content changed');
  4575. }
  4576. directUrl = directUrl[1];
  4577. $.openLink(directUrl);
  4578. },
  4579. });
  4580.  
  4581. $.register({
  4582. rule: {
  4583. host: [
  4584. /^segmentnext\.com$/,
  4585. /^(www\.)?videogamesblogger.com$/,
  4586. ],
  4587. path: /^\/interstitial\.html$/,
  4588. query: /return_url=([^&]+)/,
  4589. },
  4590. start: function (m) {
  4591. 'use strict';
  4592. $.openLink(decodeURIComponent(m.query[1]));
  4593. },
  4594. });
  4595.  
  4596. $.register({
  4597. rule: {
  4598. host: /^(www\.)?(apploadz\.ru|seomafia\.net)$/
  4599. },
  4600. ready: function () {
  4601. 'use strict';
  4602. $.removeNodes('iframe');
  4603. var a = $('table a');
  4604. $.openLink(a.href);
  4605. },
  4606. });
  4607.  
  4608. $.register({
  4609. rule: /http:\/\/setlinks\.us\/(p|t|d).*/,
  4610. ready: function () {
  4611. 'use strict';
  4612. var k = $.searchScripts(/window\.location='([^']+)'/);
  4613. if (k) {
  4614. $.openLink(k[1]);
  4615. return;
  4616. }
  4617. var aLinks = $.$$('div.links-container.result-form:not(.p-links-container) > span.dlinks > a');
  4618. if (aLinks.size() === 1) {
  4619. $.openLink(aLinks.at(0).href);
  4620. return;
  4621. }
  4622. k = $('img[alt=captcha]');
  4623. $.captcha(k.src, function (a) {
  4624. var b = $('#captcha');
  4625. var c = $('input[name=Submit]');
  4626. b.value = a;
  4627. c.click();
  4628. });
  4629. },
  4630. });
  4631.  
  4632. (function () {
  4633. 'use strict';
  4634. function afterGotSessionId (sessionId) {
  4635. var X_NewRelic_ID = $.searchScripts(/xpid:"([^"]+)"/);
  4636. var Fingerprint = $.window.Fingerprint;
  4637. var browserToken = null;
  4638. if (Fingerprint) {
  4639. browserToken = (new Fingerprint({canvas: !0})).get();
  4640. } else {
  4641. browserToken = Math.round((new Date()).getTime() / 1000);
  4642. }
  4643. var data = "sessionId=" + sessionId + "&browserToken=" + browserToken;
  4644. var header = {
  4645. Accept: 'application/json, text/javascript',
  4646. };
  4647. if (X_NewRelic_ID) {
  4648. header['X-NewRelic-ID'] = X_NewRelic_ID;
  4649. }
  4650. var i = setInterval(function () {
  4651. $.get('/adSession/callback', data, header).then(function (text) {
  4652. var r = JSON.parse(text);
  4653. if (r.status == "ok" && r.destinationUrl) {
  4654. clearInterval(i);
  4655. $.removeAllTimer();
  4656. $.openLinkWithReferer(r.destinationUrl);
  4657. }
  4658. });
  4659. }, 1000);
  4660. }
  4661. $.register({
  4662. rule: {
  4663. host: /^sh\.st|(dh10thbvu|u2ks|jnw0)\.com$/,
  4664. path: /^\/[\d\w]+/,
  4665. },
  4666. ready: function () {
  4667. $.removeNodes('iframe');
  4668. var m = $.searchScripts(/sessionId: "([\d\w]+)",/);
  4669. if (m) {
  4670. afterGotSessionId(m[1]);
  4671. return;
  4672. }
  4673. var o = new MutationObserver(function (mutations) {
  4674. mutations.forEach(function (mutation) {
  4675. var m = $.searchScripts(/sessionId: "([\d\w]+)",/);
  4676. if (m) {
  4677. o.disconnect();
  4678. afterGotSessionId(m[1]);
  4679. }
  4680. });
  4681. });
  4682. o.observe(document.body, {
  4683. childList: true,
  4684. });
  4685. },
  4686. });
  4687. })();
  4688.  
  4689. $.register({
  4690. rule: {
  4691. host: [
  4692. /^(www\.)?shortenurl\.tk$/,
  4693. /^(www\.)?pengaman\.link$/,
  4694. ],
  4695. path: /^\/\w+$/,
  4696. },
  4697. ready: function (m) {
  4698. 'use strict';
  4699. var l = $('a.btn-block.redirect');
  4700. $.openLink(l.href);
  4701. },
  4702. });
  4703.  
  4704. $.register({
  4705. rule: {
  4706. host: /^(www\.)?similarsites\.com$/,
  4707. path: /^\/goto\/([^?]+)/
  4708. },
  4709. start: function (m) {
  4710. 'use strict';
  4711. var l = m.path[1];
  4712. if (!/^https?:\/\//.test(l)) {
  4713. l = 'http://' + l;
  4714. }
  4715. $.openLink(l);
  4716. },
  4717. });
  4718.  
  4719. $.register({
  4720. rule: {
  4721. host: /^(www\.)?safelinkair\.com$/,
  4722. path: /^\/code$/,
  4723. query: /(?:\?|&)link=([a-zA-Z0-9=]+)(?:$|&)/,
  4724. },
  4725. start: function (m) {
  4726. 'use strict';
  4727. var l = atob(m.query[1])
  4728. $.openLink(l);
  4729. },
  4730. });
  4731.  
  4732. $.register({
  4733. rule: {
  4734. host: /^stash-coins\.com$/,
  4735. },
  4736. start: function () {
  4737. 'use strict';
  4738. var url = window.location.toString();
  4739. var i = url.lastIndexOf('http');
  4740. url = url.substr(i);
  4741. $.openLink(url);
  4742. },
  4743. });
  4744.  
  4745. $.register({
  4746. rule: {
  4747. host: /^steamcommunity\.com$/,
  4748. path: /^\/linkfilter\/(.+)?$/,
  4749. query: /^(?:\?url=(.+))?$/,
  4750. },
  4751. start: function (m) {
  4752. 'use strict';
  4753. var target = m.path[1]? m.path[1]+document.location.search : m.query[1];
  4754. $.openLink(target);
  4755. },
  4756. });
  4757.  
  4758. $.register({
  4759. rule: {
  4760. host: /^(www\.)?supercheats\.com$/,
  4761. path: /^\/interstitial\.html$/,
  4762. query: /(?:\?|&)oldurl=([^&]+)(?:$|&)/,
  4763. },
  4764. start: function (m) {
  4765. 'use strict';
  4766. $.openLink(m.query[1]);
  4767. },
  4768. });
  4769.  
  4770. $.register({
  4771. rule: [
  4772. {
  4773. host: /^(www\.)?sylnk\.net$/,
  4774. query: /link=([^&]+)/,
  4775. },
  4776. {
  4777. host: /^(www\.)?compul\.in$/,
  4778. path: /^\/n\.php$/,
  4779. query: /v=([^&]+)/,
  4780. },
  4781. ],
  4782. start: function (m) {
  4783. 'use strict';
  4784. var rawLink = atob(m.query[1]);
  4785. $.openLink(rawLink);
  4786. },
  4787. });
  4788.  
  4789. $.register({
  4790. rule: {
  4791. host: /^thinfi\.com$/,
  4792. },
  4793. ready: function () {
  4794. 'use strict';
  4795. var a = $('div p a');
  4796. $.openLink(a.href);
  4797. },
  4798. });
  4799.  
  4800. $.register({
  4801. rule: {
  4802. host: /^tinyarrows\.com$/,
  4803. path: /^\/preview\.php$/,
  4804. query: /^\?page=([^&]+)/,
  4805. },
  4806. start: function (m) {
  4807. 'use strict';
  4808. $.openLink(decodeURIComponent(m.query[1]));
  4809. },
  4810. });
  4811.  
  4812. $.register({
  4813. rule: {
  4814. host: /^(www\.)?typ\.me$/,
  4815. },
  4816. ready: function (m) {
  4817. 'use strict';
  4818. var a = $('#skipAdBtn');
  4819. $.openLink(a.href);
  4820. },
  4821. });
  4822.  
  4823. $.register({
  4824. rule: {
  4825. host: /^(www\.)?ultshare\.com$/,
  4826. path: /^\/(?:(?:\d-)?(\d+)|index\.php)$/,
  4827. query: /^(?:\?a=\d&c=(\d+))?$/
  4828. },
  4829. start: function (m) {
  4830. 'use strict';
  4831. var linkId = m.path[1]?m.path[1]:m.query[1];
  4832. var directLink = '/3-' + linkId;
  4833. $.openLink(directLink);
  4834. },
  4835. });
  4836.  
  4837. $.register({
  4838. rule: {
  4839. host: /^unfake\.it$/,
  4840. },
  4841. ready: function () {
  4842. 'use strict';
  4843. var frame = $('frame');
  4844. var i = frame.src.lastIndexOf('http://');
  4845. $.openLink(frame.src.substr(i));
  4846. },
  4847. });
  4848.  
  4849. $.register({
  4850. rule: {
  4851. host: /^(www\.)?(upan|gxp)\.so$/,
  4852. path: /^\/\w+$/,
  4853. },
  4854. ready: function () {
  4855. 'use strict';
  4856. var a = $('table.td_line a[onclick="down_process_s();"]');
  4857. $.openLink(a.href);
  4858. },
  4859. });
  4860.  
  4861. $.register({
  4862. rule: {
  4863. host: /^url\.ie$/,
  4864. },
  4865. ready: function () {
  4866. 'use strict';
  4867. var a = $('a[title="Link to original URL"]');
  4868. $.openLink(a.href);
  4869. },
  4870. });
  4871.  
  4872. $.register({
  4873. rule: {
  4874. host: /urlcash\.(com|net|org)|(bat5|detonating|celebclk|eightteen|smilinglinks|peekatmygirlfriend|pornyhost|clb1|urlgalleries)\.com|looble\.net|xxxs\.org$/,
  4875. },
  4876. ready: function () {
  4877. 'use strict';
  4878. if ($.window && $.window.linkDestUrl) {
  4879. $.openLink($.window.linkDestUrl);
  4880. return;
  4881. }
  4882. var matches = document.body.innerHTML.match(/linkDestUrl = '(.+)'/);
  4883. if (matches) {
  4884. $.openLink(matches[1]);
  4885. return;
  4886. }
  4887. },
  4888. });
  4889.  
  4890. $.register({
  4891. rule: {
  4892. host: /^(www\.)?(urlcow|miniurl)\.com$/,
  4893. },
  4894. ready: function () {
  4895. 'use strict';
  4896. var m = $.searchScripts(/window\.location = "([^"]+)"/);
  4897. if (!m) {
  4898. throw new _.AdsBypasserError('site changed');
  4899. }
  4900. $.openLink(m[1]);
  4901. },
  4902. });
  4903.  
  4904. $.register({
  4905. rule: {
  4906. host: /^urlinn\.com$/,
  4907. },
  4908. ready: function () {
  4909. 'use strict';
  4910. var m = $('META[HTTP-EQUIV=refresh]').getAttribute('CONTENT').match(/url='([^']+)'/);
  4911. if (m) {
  4912. $.openLink(m[1]);
  4913. }
  4914. },
  4915. });
  4916.  
  4917. $.register({
  4918. rule: {
  4919. host: /^urlms\.com$/,
  4920. },
  4921. ready: function () {
  4922. 'use strict';
  4923. var iframe = $('#content');
  4924. $.openLink(iframe.src);
  4925. },
  4926. });
  4927.  
  4928. $.register({
  4929. rule: {
  4930. host: /^(www\.)?urlv2\.com$/,
  4931. },
  4932. ready: function (m) {
  4933. 'use strict';
  4934. if (window.location.pathname.indexOf('locked') >= 0) {
  4935. var path = window.location.pathname.replace('/locked', '');
  4936. $.openLink(path);
  4937. return;
  4938. }
  4939. var m = $.searchScripts(/jeton=([\w]+)/);
  4940. var l = 'http://urlv2.com/algo.php?action=passer&px=0&so=1&jeton=' + m[1];
  4941. window.setTimeout(function() {$.openLink(l)}, 5000);
  4942. },
  4943. });
  4944.  
  4945. $.register({
  4946. rule: 'http://urlz.so/l/*',
  4947. ready: function () {
  4948. 'use strict';
  4949. var i = $.$('td > a');
  4950. if (i) {
  4951. i = i.href;
  4952. var m = i.match(/javascript:declocation\('(.+)'\);/);
  4953. if (m) {
  4954. i = atob(m[1]);
  4955. }
  4956. $.openLink(i);
  4957. return;
  4958. }
  4959. i = $('img');
  4960. $.captcha(i.src, function (a) {
  4961. var b = $('input[name=captcha]');
  4962. var c = $('input[name=submit]');
  4963. b.value = a;
  4964. c.click();
  4965. });
  4966. },
  4967. });
  4968.  
  4969. $.register({
  4970. rule: {
  4971. host: /^www\.viidii\.info$/,
  4972. },
  4973. ready: function () {
  4974. 'use strict';
  4975. var o = $('#directlink');
  4976. $.openLink(o.href);
  4977. },
  4978. });
  4979.  
  4980. $.register({
  4981. rule: {
  4982. host: /^(www\.)?vir\.al$/,
  4983. },
  4984. ready: function () {
  4985. 'use strict';
  4986. var m = $.searchScripts(/var target_url = '([^']+)';/);
  4987. if (!m) {
  4988. throw new _.AdsBypasserError('site changed');
  4989. }
  4990. $.openLink(m[1]);
  4991. },
  4992. });
  4993.  
  4994. $.register({
  4995. rule: {
  4996. host: /^(www\.)?wzzq\.me$/,
  4997. },
  4998. ready: function () {
  4999. 'use strict';
  5000. try {
  5001. var l = $('#img_loading_table2 div.wz_img_hit a[target=_blank]').href;
  5002. $.openLink(l);
  5003. } catch (e) {
  5004. }
  5005. },
  5006. });
  5007.  
  5008. $.register({
  5009. rule: {
  5010. host: /^xlink.me$/
  5011. },
  5012. ready: function () {
  5013. 'use strict';
  5014. var a = $('#main_form > center > a');
  5015. if (!a) {return;}
  5016. $.openLink(a.href);
  5017. },
  5018. });
  5019.  
  5020. $.register({
  5021. rule: 'http://yep.it/preview.php?p=*',
  5022. ready: function () {
  5023. 'use strict';
  5024. var link = $('font[color="grey"]').innerHTML;
  5025. $.openLink(link);
  5026. },
  5027. });
  5028.  
  5029. $.register({
  5030. rule: 'http://www.yooclick.com/l/*',
  5031. ready: function () {
  5032. 'use strict';
  5033. $.removeNodes('iframe');
  5034. var uniq = $.window.uniq || $.window.uniqi;
  5035. if (!uniq) {return;}
  5036. var path = window.location.pathname;
  5037. var url = _.T('{0}?ajax=true&adblock=false&old=false&framed=false&uniq={1}')(path, uniq);
  5038. var getURL = function() {
  5039. $.get(url).then(function (text) {
  5040. var goodURL = /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(text);
  5041. if (goodURL) {
  5042. $.openLink(text);
  5043. } else {
  5044. setTimeout(getURL, 500);
  5045. }
  5046. });
  5047. }
  5048. getURL();
  5049. },
  5050. });
  5051.  
  5052. $.register({
  5053. rule: 'http://zo.mu/redirector/process?link=*',
  5054. ready: function () {
  5055. 'use strict';
  5056. $.removeNodes('iframe');
  5057. window.location.reload();
  5058. },
  5059. });
  5060.  
  5061. $.register({
  5062. rule: {
  5063. host: /^zzz\.gl$/,
  5064. },
  5065. ready: function () {
  5066. 'use strict';
  5067. var m = $.searchScripts(/var domainurl = '([^']+)';/);
  5068. if (!m) {
  5069. throw new _.AdsBypasserError('site changed');
  5070. }
  5071. $.openLink(m[1]);
  5072. },
  5073. });
  5074.  
  5075. (function () {
  5076. 'use strict';
  5077. var sUrl = '(\\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])';
  5078. function isLink (text) {
  5079. var rUrl = new RegExp(_.T('^{0}$')(sUrl), 'i');
  5080. return rUrl.test(text);
  5081. }
  5082. function linkify (text) {
  5083. var rUrl = new RegExp(sUrl, 'ig');
  5084. return text.replace(rUrl, function(match) {
  5085. return _.T("<a href='{0}'>{0}</a>")(match);
  5086. });
  5087. }
  5088. $.register({
  5089. rule: {
  5090. host: /^(www\.)?([a-zA-Z0-9]+\.)?binbox\.io$/,
  5091. path: /\/([a-zA-Z0-9]+)/,
  5092. hash: /#([a-zA-Z0-9]+)/,
  5093. },
  5094. ready: function (m) {
  5095. var sjcl = $.window.sjcl;
  5096. var paste_id = m.path[1];
  5097. var paste_salt = m.hash[1];
  5098. var API_URL = _.T('https://binbox.io/{0}.json')(paste_id);
  5099. $.get(API_URL, false, {
  5100. Origin: _.none,
  5101. Referer: _.none,
  5102. 'X-Requested-With': _.none,
  5103. }).then(function (pasteInfo) {
  5104. pasteInfo = JSON.parse(pasteInfo);
  5105. if (!pasteInfo.ok) {
  5106. throw new _.AdsBypasserError("error when getting paste information");
  5107. }
  5108. var raw_paste = sjcl.decrypt(paste_salt, pasteInfo.paste.text);
  5109. if (isLink(raw_paste)) {
  5110. $.openLink(raw_paste);
  5111. return;
  5112. }
  5113. var elm = document.createElement('pre');
  5114. elm.id = 'paste-text';
  5115. elm.innerHTML = linkify(raw_paste);
  5116. var frame = $('#paste-frame, #captcha-page');
  5117. frame.parentNode.replaceChild(elm, frame);
  5118. });
  5119. },
  5120. });
  5121. })();
  5122.  
  5123. (function (context, factory) {
  5124. if (typeof module === 'object' && typeof module.exports === 'object') {
  5125. module.exports = function (context, GM) {
  5126. var _ = require('lodash');
  5127. var core = require('./core.js');
  5128. var misc = require('./misc.js');
  5129. var dispatcher = require('./dispatcher.js');
  5130. var modules = [misc, dispatcher].map(function (v) {
  5131. return v.call(null, context, GM);
  5132. });
  5133. var $ = _.assign.apply(_, modules);
  5134. return factory(context, GM, core, $);
  5135. };
  5136. } else {
  5137. factory(context, {
  5138. openInTab: GM_openInTab,
  5139. registerMenuCommand: GM_registerMenuCommand,
  5140. }, context._, context.$);
  5141. }
  5142. }(this, function (context, GM, _, $) {
  5143. 'use strict';
  5144. var window = context.window;
  5145. var document = window.document;
  5146. var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;
  5147. function disableWindowOpen () {
  5148. $.window.open = _.nop;
  5149. }
  5150. function disableLeavePrompt () {
  5151. var seal = {
  5152. set: function () {
  5153. _.info('blocked onbeforeunload');
  5154. },
  5155. };
  5156. _.C([$.window, $.window.document.body]).each(function (o) {
  5157. if (!o) {
  5158. return;
  5159. }
  5160. o.onbeforeunload = undefined;
  5161. if (isSafari) {
  5162. o.__defineSetter__('onbeforeunload', seal.set);
  5163. } else {
  5164. $.window.Object.defineProperty(o, 'onbeforeunload', {
  5165. configurable: false,
  5166. enumerable: false,
  5167. get: undefined,
  5168. set: seal.set,
  5169. });
  5170. }
  5171. var oael = o.addEventListener;
  5172. var nael = function (type) {
  5173. if (type === 'beforeunload') {
  5174. _.info('blocked addEventListener onbeforeunload');
  5175. return;
  5176. }
  5177. return oael.apply(this, arguments);
  5178. };
  5179. o.addEventListener = nael;
  5180. });
  5181. }
  5182. function changeTitle () {
  5183. document.title += ' - AdsBypasser';
  5184. }
  5185. function beforeDOMReady (handler) {
  5186. _.info('working on\n%s \nwith\n%o', window.location.toString(), $.config);
  5187. disableWindowOpen();
  5188. handler.start();
  5189. }
  5190. function afterDOMReady (handler) {
  5191. disableLeavePrompt();
  5192. changeTitle();
  5193. handler.ready();
  5194. }
  5195. function waitDOM () {
  5196. return _.D(function (resolve, reject) {
  5197. if (document.readyState !== 'loading') {
  5198. resolve();
  5199. return;
  5200. }
  5201. document.addEventListener('DOMContentLoaded', function () {
  5202. resolve();
  5203. });
  5204. });
  5205. }
  5206. $._main = function () {
  5207. var findHandler = $._findHandler;
  5208. delete $._main;
  5209. delete $._findHandler;
  5210. if (window.top !== window.self) {
  5211. return;
  5212. }
  5213. GM.registerMenuCommand('AdsBypasser - Configure', function () {
  5214. GM.openInTab('https://adsbypasser.github.io/configure.html');
  5215. });
  5216. var handler = findHandler(true);
  5217. if (handler) {
  5218. beforeDOMReady(handler);
  5219. waitDOM().then(function () {
  5220. afterDOMReady(handler);
  5221. });
  5222. return;
  5223. }
  5224. _.info('does not match location on `%s`, will try HTML content', window.location.toString());
  5225. waitDOM().then(function () {
  5226. handler = findHandler(false);
  5227. if (!handler) {
  5228. _.info('does not match HTML content on `%s`', window.location.toString());
  5229. return;
  5230. }
  5231. beforeDOMReady(handler);
  5232. afterDOMReady(handler);
  5233. });
  5234. };
  5235. return $;
  5236. }));
  5237. $._main();