AdsBypasser

Bypass Ads

当前为 2015-11-15 提交的版本,查看 最新版本

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