AdsBypasser

Bypass Ads

目前為 2015-10-11 提交的版本,檢視 最新版本

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