AdsBypasser

Bypass Ads

当前为 2015-08-30 提交的版本,查看 最新版本

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