AdsBypasser

Bypass Ads

目前为 2015-11-02 提交的版本,查看 最新版本

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