AdsBypasser

Bypass Ads

目前為 2015-08-19 提交的版本,檢視 最新版本

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