AdsBypasser

Bypass Ads

当前为 2017-04-23 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name AdsBypasser
  3. // @namespace AdsBypasser
  4. // @description Bypass Ads
  5. // @copyright 2012+, Wei-Cheng Pan (legnaleurc)
  6. // @version 5.68.0
  7. // @license BSD
  8. // @homepageURL https://adsbypasser.github.io/
  9. // @supportURL https://github.com/adsbypasser/adsbypasser/issues
  10. // @icon https://raw.githubusercontent.com/adsbypasser/adsbypasser/v5.68.0/img/logo.png
  11. // @grant unsafeWindow
  12. // @grant GM_xmlhttpRequest
  13. // @grant GM_addStyle
  14. // @grant GM_getResourceText
  15. // @grant GM_getResourceURL
  16. // @grant GM_getValue
  17. // @grant GM_openInTab
  18. // @grant GM_registerMenuCommand
  19. // @grant GM_setValue
  20. // @run-at document-start
  21. // @resource alignCenter https://raw.githubusercontent.com/adsbypasser/adsbypasser/v5.68.0/css/align_center.css
  22. // @resource scaleImage https://raw.githubusercontent.com/adsbypasser/adsbypasser/v5.68.0/css/scale_image.css
  23. // @resource bgImage https://raw.githubusercontent.com/adsbypasser/adsbypasser/v5.68.0/img/imagedoc-darknoise.png
  24. // @include http://*
  25. // @include https://*
  26. // @connect *
  27. // ==/UserScript==
  28. (function (context, factory) {
  29. if (typeof module === 'object' && typeof module.exports === 'object') {
  30. module.exports = factory(context, Promise);
  31. } else {
  32. var P = null;
  33. if (context.unsafeWindow.Future) {
  34. P = function (fn) {
  35. return context.unsafeWindow.Future.call(this, function (fr) {
  36. fn(fr.resolve.bind(fr), fr.reject.bind(fr));
  37. });
  38. };
  39. } else if (context.PromiseResolver) {
  40. P = function (fn) {
  41. return new context.Promise(function (pr) {
  42. fn(pr.resolve.bind(pr), pr.reject.bind(pr));
  43. });
  44. };
  45. } else {
  46. P = context.Promise;
  47. }
  48. factory(context, P);
  49. }
  50. }(this, function (context, Promise) {
  51. 'use strict';
  52. var _ = context._ = {};
  53. function setupStack () {
  54. if (Error.captureStackTrace) {
  55. Error.captureStackTrace(this, this.constructor);
  56. } else if (!this.hasOwnProperty('stack')) {
  57. var stack = (new Error()).stack.split('\n').slice(2);
  58. var e = stack[0].match(/^.*@(.*):(\d*)$/);
  59. this.fileName = e[1];
  60. this.lineNumber = parseInt(e[2], 10);
  61. this.stack = stack.join('\n');
  62. }
  63. }
  64. function AdsBypasserError (message) {
  65. setupStack.call(this);
  66. this.message = message;
  67. }
  68. AdsBypasserError.prototype = Object.create(Error.prototype);
  69. AdsBypasserError.prototype.constructor = AdsBypasserError;
  70. AdsBypasserError.prototype.name = 'AdsBypasserError';
  71. AdsBypasserError.extend = function (protoProps, staticProps) {
  72. var parent = this, child = function () {
  73. setupStack.call(this);
  74. protoProps.constructor.apply(this, arguments);
  75. };
  76. extend(child, parent, staticProps);
  77. child.prototype = Object.create(parent.prototype);
  78. extend(child.prototype, protoProps);
  79. child.prototype.constructor = child;
  80. child.super = parent.prototype;
  81. return child;
  82. };
  83. AdsBypasserError.super = null;
  84. _.AdsBypasserError = AdsBypasserError;
  85. function any (c, fn) {
  86. if (c.some) {
  87. return c.some(fn);
  88. }
  89. if (typeof c.length === 'number') {
  90. return Array.prototype.some.call(c, fn);
  91. }
  92. return Object.keys(c).some(function (k) {
  93. return fn(c[k], k, c);
  94. });
  95. }
  96. function all (c, fn) {
  97. if (c.every) {
  98. return c.every(fn);
  99. }
  100. if (typeof c.length === 'number') {
  101. return Array.prototype.every.call(c, fn);
  102. }
  103. return Object.keys(c).every(function (k) {
  104. return fn(c[k], k, c);
  105. });
  106. }
  107. function each (c, fn) {
  108. if (c.forEach) {
  109. c.forEach(fn);
  110. } else if (typeof c.length === 'number') {
  111. Array.prototype.forEach.call(c, fn);
  112. } else {
  113. Object.keys(c).forEach(function (k) {
  114. fn(c[k], k, c);
  115. });
  116. }
  117. }
  118. function map (c, fn) {
  119. if (c.map) {
  120. return c.map(fn);
  121. }
  122. if (typeof c.length === 'number') {
  123. return Array.prototype.map.call(c, fn);
  124. }
  125. return Object.keys(c).map(function (k) {
  126. return fn(c[k], k, c);
  127. });
  128. }
  129. function extend(c) {
  130. Array.prototype.slice.call(arguments, 1).forEach(function (source) {
  131. if (!source) {
  132. return;
  133. }
  134. _.C(source).each(function (v, k) {
  135. c[k] = v;
  136. });
  137. });
  138. return c;
  139. }
  140. function CollectionProxy (collection) {
  141. this._c = collection;
  142. }
  143. CollectionProxy.prototype.size = function () {
  144. if (typeof this._c.length === 'number') {
  145. return this._c.length;
  146. }
  147. return Object.keys(c).length;
  148. };
  149. CollectionProxy.prototype.at = function (k) {
  150. return this._c[k];
  151. };
  152. CollectionProxy.prototype.each = function (fn) {
  153. each(this._c, fn);
  154. return this;
  155. };
  156. CollectionProxy.prototype.find = function (fn) {
  157. var result;
  158. any(this._c, function (value, index, self) {
  159. var tmp = fn(value, index, self);
  160. if (tmp !== _.none) {
  161. result = {
  162. key: index,
  163. value: value,
  164. payload: tmp,
  165. };
  166. return true;
  167. }
  168. return false;
  169. });
  170. return result;
  171. };
  172. CollectionProxy.prototype.all = function (fn) {
  173. return all(this._c, fn);
  174. };
  175. CollectionProxy.prototype.map = function (fn) {
  176. return map(this._c, fn);
  177. };
  178. _.C = function (collection) {
  179. return new CollectionProxy(collection);
  180. };
  181. _.T = function (s) {
  182. if (typeof s === 'string') {
  183. } else if (s instanceof String) {
  184. s = s.toString();
  185. } else {
  186. throw new AdsBypasserError('template must be a string');
  187. }
  188. var T = {
  189. '{{': '{',
  190. '}}': '}',
  191. };
  192. return function () {
  193. var args = Array.prototype.slice.call(arguments);
  194. var kwargs = args[args.length-1];
  195. return s.replace(/\{\{|\}\}|\{([^\}]+)\}/g, function (m, key) {
  196. if (T.hasOwnProperty(m)) {
  197. return T[m];
  198. }
  199. if (args.hasOwnProperty(key)) {
  200. return args[key];
  201. }
  202. if (kwargs.hasOwnProperty(key)) {
  203. return kwargs[key];
  204. }
  205. return m;
  206. });
  207. };
  208. };
  209. _.P = function (fn) {
  210. if (typeof fn !== 'function') {
  211. throw new _.AdsBypasserError('must give a function');
  212. }
  213. var slice = Array.prototype.slice;
  214. var args = slice.call(arguments, 1);
  215. return function () {
  216. return fn.apply(this, args.concat(slice.call(arguments)));
  217. };
  218. };
  219. _.D = function (fn) {
  220. return new Promise(fn);
  221. };
  222. _.parseJSON = function (json) {
  223. try {
  224. return JSON.parse(json);
  225. } catch (e) {
  226. _.warn(e, json);
  227. }
  228. return _.none;
  229. };
  230. _.isString = function (value) {
  231. return (typeof value === 'string') || (value instanceof String);
  232. };
  233. _.nop = function () {
  234. };
  235. _.none = _.nop;
  236. _.wait = function (msDelay) {
  237. return _.D(function (resolve, reject) {
  238. setTimeout(resolve, msDelay);
  239. });
  240. };
  241. _.try = function (msInterval, fn) {
  242. return _.D(function (resolve, reject) {
  243. var handle = setInterval(function () {
  244. var result = fn();
  245. if (result !== _.none) {
  246. clearInterval(handle);
  247. resolve(result);
  248. }
  249. }, msInterval);
  250. });
  251. };
  252. function log (method, args) {
  253. if (_._quiet) {
  254. return;
  255. }
  256. args = Array.prototype.slice.call(args);
  257. if (_.isString(args[0])) {
  258. args[0] = 'AdsBypasser: ' + args[0];
  259. } else {
  260. args.unshift('AdsBypasser:');
  261. }
  262. var f = console[method];
  263. if (typeof f === 'function') {
  264. f.apply(console, args);
  265. }
  266. }
  267. _._quiet = false;
  268. _.info = function () {
  269. log('info', arguments);
  270. };
  271. _.warn = function () {
  272. log('warn', arguments);
  273. };
  274. return _;
  275. }));
  276. (function (context, factory) {
  277. if (typeof module === 'object' && typeof module.exports === 'object') {
  278. module.exports = function (context) {
  279. var core = require('./core.js');
  280. return factory(context, core);
  281. };
  282. } else {
  283. context.$ = factory(context, context._);
  284. }
  285. }(this, function (context, _) {
  286. 'use strict';
  287. var window = context.window;
  288. var document = window.document;
  289. var DomNotFoundError = _.AdsBypasserError.extend({
  290. name: 'DomNotFoundError',
  291. constructor: function (selector) {
  292. DomNotFoundError.super.constructor.call(this, _.T('`{0}` not found')(selector));
  293. },
  294. });
  295. var $ = function (selector, context) {
  296. if (!context || !context.querySelector) {
  297. context = document;
  298. }
  299. var n = context.querySelector(selector);
  300. if (!n) {
  301. throw new DomNotFoundError(selector);
  302. }
  303. return n;
  304. };
  305. $.$ = function (selector, context) {
  306. try {
  307. return $(selector, context);
  308. } catch (e) {
  309. return null;
  310. }
  311. };
  312. $.$$ = function (selector, context) {
  313. if (!context || !context.querySelectorAll) {
  314. context = document;
  315. }
  316. var ns = context.querySelectorAll(selector);
  317. return _.C(ns);
  318. };
  319. $.toDOM = function(rawHTML) {
  320. try {
  321. var parser = new DOMParser();
  322. var DOMHTML = parser.parseFromString(rawHTML, "text/html");
  323. return DOMHTML;
  324. } catch (e) {
  325. throw new _.AdsBypasserError('could not parse HTML to DOM');
  326. }
  327. };
  328. $.removeNodes = function (selector, context) {
  329. $.$$(selector, context).each(function (e) {
  330. e.parentNode.removeChild(e);
  331. });
  332. };
  333. function searchScriptsByRegExp (pattern, context) {
  334. var m = $.$$('script', context).find(function (s) {
  335. var m = s.innerHTML.match(pattern);
  336. if (!m) {
  337. return _.none;
  338. }
  339. return m;
  340. });
  341. if (!m) {
  342. return null;
  343. }
  344. return m.payload;
  345. }
  346. function searchScriptsByString (pattern, context) {
  347. var m = $.$$('script', context).find(function (s) {
  348. var m = s.innerHTML.indexOf(pattern);
  349. if (m < 0) {
  350. return _.none;
  351. }
  352. return m;
  353. });
  354. if (!m) {
  355. return null;
  356. }
  357. return m.value.innerHTML;
  358. }
  359. $.searchScripts = function (pattern, context) {
  360. if (pattern instanceof RegExp) {
  361. return searchScriptsByRegExp(pattern, context);
  362. } else if (_.isString(pattern)) {
  363. return searchScriptsByString(pattern, context);
  364. } else {
  365. return null;
  366. }
  367. };
  368. return $;
  369. }));
  370. (function (context, factory) {
  371. if (typeof module === 'object' && typeof module.exports === 'object') {
  372. module.exports = function (context, GM) {
  373. var core = require('./core.js');
  374. return factory(context, GM, core);
  375. };
  376. } else {
  377. factory(context, {
  378. xmlhttpRequest: GM_xmlhttpRequest,
  379. }, context._);
  380. }
  381. }(this, function (context, GM, _) {
  382. 'use strict';
  383. var window = context.window;
  384. var document = window.document;
  385. var $ = context.$ || {};
  386. function deepJoin (prefix, object) {
  387. return _.C(object).map(function (v, k) {
  388. var key = _.T('{0}[{1}]')(prefix, k);
  389. if (typeof v === 'object') {
  390. return deepJoin(key, v);
  391. }
  392. return _.T('{0}={1}').apply(this, [key, v].map(encodeURIComponent));
  393. }).join('&');
  394. }
  395. function toQuery (data) {
  396. var type = typeof data;
  397. if (data === null || (type !== 'string' && type !== 'object')) {
  398. return '';
  399. }
  400. if (type === 'string') {
  401. return data;
  402. }
  403. if (data instanceof String) {
  404. return data.toString();
  405. }
  406. return _.C(data).map(function (v, k) {
  407. if (typeof v === 'object') {
  408. return deepJoin(k, v);
  409. }
  410. return _.T('{0}={1}').apply(this, [k, v].map(encodeURIComponent));
  411. }).join('&');
  412. }
  413. function ajax (method, url, data, headers) {
  414. var l = document.createElement('a');
  415. l.href = url;
  416. var reqHost = l.hostname;
  417. var overrideHeaders = {
  418. Host: reqHost || window.location.host,
  419. Origin: window.location.origin,
  420. Referer: window.location.href,
  421. 'X-Requested-With': 'XMLHttpRequest',
  422. };
  423. _.C(overrideHeaders).each(function (v, k, c) {
  424. if (headers[k] === _.none) {
  425. delete headers[k];
  426. } else {
  427. headers[k] = v;
  428. }
  429. });
  430. if (data) {
  431. if (headers['Content-Type'].indexOf('json') >= 0) {
  432. data = JSON.stringify(data);
  433. } else {
  434. data = toQuery(data);
  435. }
  436. headers['Content-Length'] = data.length;
  437. }
  438. var xhr = null;
  439. var promise = _.D(function (resolve, reject) {
  440. xhr = GM.xmlhttpRequest({
  441. method: method,
  442. url: url,
  443. data: data,
  444. headers: headers,
  445. onload: function (response) {
  446. response = (typeof response.responseText !== 'undefined') ? response : this;
  447. if (response.status !== 200) {
  448. reject(response.responseText);
  449. } else {
  450. resolve(response.responseText);
  451. }
  452. },
  453. onerror: function (response) {
  454. response = (typeof response.responseText !== 'undefined') ? response : this;
  455. reject(response.responseText);
  456. },
  457. });
  458. });
  459. promise.abort = function () {
  460. xhr.abort();
  461. };
  462. return promise;
  463. }
  464. $.get = function (url, data, headers) {
  465. data = toQuery(data);
  466. data = data ? '?' + data : '';
  467. headers = headers || {};
  468. return ajax('GET', url + data, '', headers);
  469. };
  470. $.post = function (url, data, headers) {
  471. var h = {
  472. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  473. };
  474. if (headers) {
  475. _.C(headers).each(function (v, k) {
  476. h[k] = v;
  477. });
  478. }
  479. return ajax('POST', url, data, h);
  480. };
  481. return $;
  482. }));
  483. (function (context, factory) {
  484. if (typeof module === 'object' && typeof module.exports === 'object') {
  485. module.exports = function (context) {
  486. var core = require('./core.js');
  487. return factory(context, core);
  488. };
  489. } else {
  490. factory(context, context._);
  491. }
  492. }(this, function (context, _) {
  493. 'use strict';
  494. var window = context.window;
  495. var document = window.document;
  496. var $ = context.$ || {};
  497. $.setCookie = function (key, value) {
  498. var now = new Date();
  499. now.setTime(now.getTime() + 3600 * 1000);
  500. var tpl = _.T('{0}={1};path={2};');
  501. document.cookie = tpl(key, value, window.location.pathname, now.toUTCString());
  502. };
  503. $.getCookie = function (key) {
  504. var c = _.C(document.cookie.split(';')).find(function (v) {
  505. var k = v.replace(/^\s*([a-zA-Z0-9-_]+)=.+$/, '$1');
  506. if (k !== key) {
  507. return _.none;
  508. }
  509. });
  510. if (!c) {
  511. return null;
  512. }
  513. c = c.value.replace(/^\s*[a-zA-Z0-9-_]+=([^;]+).?$/, '$1');
  514. if (!c) {
  515. return null;
  516. }
  517. return c;
  518. };
  519. $.resetCookies = function () {
  520. var a = document.domain;
  521. var b = document.domain.replace(/^www\./, '');
  522. var c = document.domain.replace(/^(\w+\.)+?(\w+\.\w+)$/, '$2');
  523. var d = (new Date(1e3)).toUTCString();
  524. _.C(document.cookie.split(';')).each(function (v) {
  525. var k = v.replace(/^\s*(\w+)=.+$/, '$1');
  526. document.cookie = _.T('{0}=;expires={1};')(k, d);
  527. document.cookie = _.T('{0}=;path=/;expires={1};')(k, d);
  528. var e = _.T('{0}=;path=/;domain={1};expires={2};');
  529. document.cookie = e(k, a, d);
  530. document.cookie = e(k, b, d);
  531. document.cookie = e(k, c, d);
  532. });
  533. };
  534. return $;
  535. }));
  536. (function (context, factory) {
  537. if (typeof module === 'object' && typeof module.exports === 'object') {
  538. module.exports = function (context) {
  539. var core = require('./core.js');
  540. return factory(context, core);
  541. };
  542. } else {
  543. factory(context, context._);
  544. }
  545. }(this, function (context, _) {
  546. 'use strict';
  547. var window = context.window;
  548. var document = window.document;
  549. var $ = context.$ || {};
  550. var patterns = [];
  551. $.register = function (pattern) {
  552. patterns.push(pattern);
  553. };
  554. function dispatchByObject (rule, url_6) {
  555. var matched = {};
  556. var passed = _.C(rule).all(function (pattern, part) {
  557. if (pattern instanceof RegExp) {
  558. matched[part] = url_6[part].match(pattern);
  559. } else if (pattern instanceof Array) {
  560. var r = _.C(pattern).find(function (p) {
  561. var m = url_6[part].match(p);
  562. return m || _.none;
  563. });
  564. matched[part] = r ? r.payload : null;
  565. }
  566. return !!matched[part];
  567. });
  568. return passed ? matched : null;
  569. }
  570. function dispatchByRegExp (rule, url_1) {
  571. return url_1.match(rule);
  572. }
  573. function dispatchByArray (byLocation, rules, url_1, url_3, url_6) {
  574. var tmp = _.C(rules).find(function (rule) {
  575. var m = dispatch(byLocation, rule, url_1, url_3, url_6);
  576. if (!m) {
  577. return _.none;
  578. }
  579. return m;
  580. });
  581. return tmp ? tmp.payload : null;
  582. }
  583. function dispatchByString (rule, url_3) {
  584. var scheme = /\*|https?|file|ftp|chrome-extension/;
  585. var host = /\*|(\*\.)?([^\/*]+)/;
  586. var path = /\/.*/;
  587. var up = new RegExp(_.T('^({scheme})://({host})?({path})$')({
  588. scheme: scheme.source,
  589. host: host.source,
  590. path: path.source,
  591. }));
  592. var matched = rule.match(up);
  593. if (!matched) {
  594. return null;
  595. }
  596. scheme = matched[1];
  597. host = matched[2];
  598. var wc = matched[3];
  599. var sd = matched[4];
  600. path = matched[5];
  601. if (scheme === '*' && !/https?/.test(url_3.scheme)) {
  602. return null;
  603. } else if (scheme !== url_3.scheme) {
  604. return null;
  605. }
  606. if (scheme !== 'file' && host !== '*') {
  607. if (wc) {
  608. up = url_3.host.indexOf(sd);
  609. if (up < 0 || up + sd.length !== url_3.host.length) {
  610. return null;
  611. }
  612. } else if (host !== url_3.host) {
  613. return null;
  614. }
  615. }
  616. path = new RegExp(_.T('^{0}$')(path.replace(/[*.\[\]?+#]/g, function (c) {
  617. if (c === '*') {
  618. return '.*';
  619. }
  620. return '\\' + c;
  621. })));
  622. if (!path.test(url_3.path)) {
  623. return null;
  624. }
  625. return url_3;
  626. }
  627. function dispatchByFunction (rule, url_1, url_3, url_6) {
  628. return rule(url_1, url_3, url_6);
  629. }
  630. function dispatch (byLocation, rule, url_1, url_3, url_6) {
  631. if (rule instanceof Array) {
  632. return dispatchByArray(byLocation, rule, url_1, url_3, url_6);
  633. }
  634. if (typeof rule === 'function') {
  635. if (byLocation) {
  636. return null;
  637. }
  638. return dispatchByFunction(rule, url_1, url_3, url_6);
  639. }
  640. if (rule instanceof RegExp) {
  641. return dispatchByRegExp(rule, url_1);
  642. }
  643. if (_.isString(rule)) {
  644. return dispatchByString(rule, url_3);
  645. }
  646. return dispatchByObject(rule, url_6);
  647. }
  648. $._findHandler = function (byLocation) {
  649. var url_1 = window.location.toString();
  650. var url_3 = {
  651. scheme: window.location.protocol.slice(0, -1),
  652. host: window.location.host,
  653. path: window.location.pathname + window.location.search + window.location.hash,
  654. };
  655. var url_6 = {
  656. scheme: window.location.protocol,
  657. host: window.location.hostname,
  658. port: window.location.port,
  659. path: window.location.pathname,
  660. query: window.location.search,
  661. hash: window.location.hash,
  662. };
  663. var pattern = _.C(patterns).find(function (pattern) {
  664. var m = dispatch(byLocation, pattern.rule, url_1, url_3, url_6);
  665. if (!m) {
  666. return _.none;
  667. }
  668. return m;
  669. });
  670. if (!pattern) {
  671. return null;
  672. }
  673. var matched = pattern.payload;
  674. pattern = pattern.value;
  675. if (!pattern.start && !pattern.ready) {
  676. return null;
  677. }
  678. return {
  679. start: pattern.start ? _.P(pattern.start, matched) : _.nop,
  680. ready: pattern.ready ? _.P(pattern.ready, matched) : _.nop,
  681. };
  682. };
  683. return $;
  684. }));
  685. (function (context, factory) {
  686. if (typeof module === 'object' && typeof module.exports === 'object') {
  687. module.exports = function (context) {
  688. var core = require('./core.js');
  689. return factory(context, core);
  690. };
  691. } else {
  692. factory(context, context._);
  693. }
  694. }(this, function (context, _) {
  695. 'use strict';
  696. var window = context.window;
  697. var document = window.document;
  698. var $ = context.$ || {};
  699. function prepare (e) {
  700. if (!document.body) {
  701. document.body = document.createElement('body');
  702. }
  703. document.body.appendChild(e);
  704. return _.wait(0);
  705. }
  706. function get (url) {
  707. var a = document.createElement('a');
  708. a.href = url;
  709. var clicked = false;
  710. a.addEventListener('click', function (event) {
  711. event.stopPropagation();
  712. clicked = true;
  713. });
  714. prepare(a).then(() => {
  715. a.click();
  716. var tick = setInterval(function () {
  717. if (clicked) {
  718. _.info('already clicked');
  719. clearInterval(tick);
  720. return;
  721. }
  722. _.info('try again');
  723. a.click();
  724. }, 50);
  725. });
  726. }
  727. function post (path, params) {
  728. params = params || {};
  729. var form = document.createElement('form');
  730. form.method = 'post';
  731. form.action = path;
  732. _.C(params).each(function (value, key) {
  733. var input = document.createElement('input');
  734. input.type = 'hidden';
  735. input.name = key;
  736. input.value = value;
  737. form.appendChild(input);
  738. });
  739. prepare(form);
  740. form.submit();
  741. }
  742. $.openLink = function (to, options) {
  743. if (!_.isString(to) && !to) {
  744. _.warn('false URL');
  745. return;
  746. }
  747. options = options || {};
  748. var withReferer = typeof options.referer === 'undefined' ? true : options.referer;
  749. var postData = options.post;
  750. var from = window.location.toString();
  751. _.info(_.T('{0} -> {1}')(from, to));
  752. if (postData) {
  753. post(to, postData);
  754. return;
  755. }
  756. if (withReferer) {
  757. get(to);
  758. return;
  759. }
  760. window.top.location.replace(to);
  761. };
  762. return $;
  763. }));
  764. (function (context, factory) {
  765. if (typeof module === 'object' && typeof module.exports === 'object') {
  766. module.exports = function (context) {
  767. var core = require('./core.js');
  768. var ajax = require('./ajax.js');
  769. var $ = ajax(context);
  770. return factory(context, core, $);
  771. };
  772. } else {
  773. factory(context, context._, context.$);
  774. }
  775. }(this, function (context, _, $) {
  776. 'use strict';
  777. var window = context.window;
  778. var unsafeWindow = context.unsafeWindow || (0, eval)('this').window;
  779. var document = window.document;
  780. $.removeAllTimer = function () {
  781. var handle = window.setInterval(_.nop, 10);
  782. while (handle > 0) {
  783. window.clearInterval(handle--);
  784. }
  785. handle = window.setTimeout(_.nop, 10);
  786. while (handle > 0) {
  787. window.clearTimeout(handle--);
  788. }
  789. };
  790. $.nuke = function (url) {
  791. try {
  792. $.window.document.write('nuked by AdsBypasser, leading to ...<br/>');
  793. } catch (e) {
  794. _.warn('nuke failed', e);
  795. }
  796. var a = document.createElement('a');
  797. a.href = url;
  798. a.textContent = url;
  799. document.body.appendChild(a);
  800. };
  801. $.generateRandomIP = function () {
  802. return [0,0,0,0].map(function () {
  803. return Math.floor(Math.random() * 256);
  804. }).join('.');
  805. };
  806. $.captcha = function (imgSrc, cb) {
  807. if (!$.config.externalServerSupport) {
  808. return;
  809. }
  810. var a = document.createElement('canvas');
  811. var b = a.getContext('2d');
  812. var c = new Image();
  813. c.src = imgSrc;
  814. c.onload = function () {
  815. a.width = c.width;
  816. a.height = c.height;
  817. b.drawImage(c, 0, 0);
  818. var d = a.toDataURL();
  819. var e = d.substr(d.indexOf(',') + 1);
  820. $.post('http://www.wcpan.info/cgi-bin/captcha.cgi', {
  821. i: e,
  822. }, cb);
  823. };
  824. };
  825. function clone (safe) {
  826. if (safe === null || !(safe instanceof Object)) {
  827. return safe;
  828. }
  829. if (safe instanceof String) {
  830. return safe.toString();
  831. }
  832. if (safe instanceof Function) {
  833. return exportFunction(safe, unsafeWindow, {
  834. allowCrossOriginArguments: true,
  835. });
  836. }
  837. if (safe instanceof Array) {
  838. var unsafe = new unsafeWindow.Array();
  839. for (var i = 0; i < safe.length; ++i) {
  840. unsafe.push(clone(safe[i]));
  841. }
  842. return unsafe;
  843. }
  844. var unsafe = new unsafeWindow.Object();
  845. _.C(safe).each(function (v, k) {
  846. unsafe[k] = clone(v);
  847. });
  848. return unsafe;
  849. }
  850. var MAGIC_KEY = '__adsbypasser_reverse_proxy__';
  851. $.window = (function () {
  852. var isFirefox = typeof InstallTrigger !== 'undefined';
  853. if (!isFirefox) {
  854. return unsafeWindow;
  855. }
  856. var decorator = {
  857. set: function (target, key, value) {
  858. if (key === MAGIC_KEY) {
  859. return false;
  860. }
  861. if (target === unsafeWindow && key === 'open') {
  862. var d = Object.getOwnPropertyDescriptor(target, key);
  863. d.value = clone(function () {
  864. var rv = value();
  865. return cloneInto(rv, unsafeWindow);
  866. });
  867. Object.defineProperty(target, key, d);
  868. } else {
  869. target[key] = clone(value);
  870. }
  871. return true;
  872. },
  873. get: function (target, key) {
  874. if (key === MAGIC_KEY) {
  875. return target;
  876. }
  877. var value = target[key];
  878. var type = typeof value;
  879. if (value === null || (type !== 'function' && type !== 'object')) {
  880. return value;
  881. }
  882. return new Proxy(value, decorator);
  883. },
  884. apply: function (target, self, args) {
  885. args = Array.prototype.slice.call(args);
  886. if (target === unsafeWindow.Object.defineProperty) {
  887. args[0] = args[0][MAGIC_KEY];
  888. }
  889. if (target === unsafeWindow.Function.apply) {
  890. self = self[MAGIC_KEY];
  891. args[1] = Array.prototype.slice.call(args[1]);
  892. }
  893. if (target === unsafeWindow.document.querySelector) {
  894. self = self[MAGIC_KEY];
  895. }
  896. if (target === unsafeWindow.document.write) {
  897. self = self[MAGIC_KEY];
  898. }
  899. var usargs = clone(args);
  900. return target.apply(self, usargs);
  901. },
  902. construct: function (target, args) {
  903. args = Array.prototype.slice.call(args);
  904. args.unshift(undefined);
  905. var usargs = clone(args);
  906. var bind = unsafeWindow.Function.prototype.bind;
  907. return new (bind.apply(target, usargs));
  908. },
  909. };
  910. return new Proxy(unsafeWindow, decorator);
  911. })();
  912. return $;
  913. }));
  914. (function (context, factory) {
  915. if (typeof module === 'object' && typeof module.exports === 'object') {
  916. module.exports = function (context, GM) {
  917. var _ = require('lodash');
  918. var core = require('./core.js');
  919. var misc = require('./misc.js');
  920. var dispatcher = require('./dispatcher.js');
  921. var modules = [misc, dispatcher].map(function (v) {
  922. return v.call(null, context, GM);
  923. });
  924. var $ = _.assign.apply(null, modules);
  925. return factory(context, GM, core, $);
  926. };
  927. } else {
  928. factory(context, {
  929. getValue: GM_getValue,
  930. setValue: GM_setValue,
  931. }, context._, context.$);
  932. }
  933. }(this, function (context, GM, _, $) {
  934. 'use strict';
  935. var MANIFEST = [
  936. {
  937. name: 'version',
  938. key: 'version',
  939. default_: 0,
  940. verify: function (v) {
  941. return typeof v === 'number' && v >= 0;
  942. },
  943. normalize: toNumber,
  944. },
  945. {
  946. name: 'alignCenter',
  947. key: 'align_center',
  948. default_: true,
  949. verify: isBoolean,
  950. normalize: toBoolean,
  951. },
  952. {
  953. name: 'changeBackground',
  954. key: 'change_background',
  955. default_: true,
  956. verify: isBoolean,
  957. normalize: toBoolean,
  958. },
  959. {
  960. name: 'externalServerSupport',
  961. key: 'external_server_support',
  962. default_: false,
  963. verify: isBoolean,
  964. normalize: toBoolean,
  965. },
  966. {
  967. name: 'redirectImage',
  968. key: 'redirect_image',
  969. default_: true,
  970. verify: isBoolean,
  971. normalize: toBoolean,
  972. },
  973. {
  974. name: 'scaleImage',
  975. key: 'scale_image',
  976. default_: true,
  977. verify: isBoolean,
  978. normalize: toBoolean,
  979. },
  980. {
  981. name: 'logLevel',
  982. key: 'log_level',
  983. default_: 1,
  984. verify: function (v) {
  985. return typeof v === 'number' && v >= 0 && v <= 2;
  986. },
  987. normalize: toNumber,
  988. },
  989. ];
  990. var PATCHES = [
  991. function (c) {
  992. var ac = typeof c.alignCenter === 'boolean';
  993. if (typeof c.changeBackground !== 'boolean') {
  994. c.changeBackground = ac ? c.alignCenter : true;
  995. }
  996. if (typeof c.scaleImage !== 'boolean') {
  997. c.scaleImage = ac ? c.alignCenter : true;
  998. }
  999. if (!ac) {
  1000. c.alignCenter = true;
  1001. }
  1002. if (typeof c.redirectImage !== 'boolean') {
  1003. c.redirectImage = true;
  1004. }
  1005. },
  1006. function (c) {
  1007. if (typeof c.externalServerSupport !== 'boolean') {
  1008. c.externalServerSupport = false;
  1009. }
  1010. },
  1011. function (c) {
  1012. if (typeof c.logLevel !== 'number') {
  1013. c.logLevel = 1;
  1014. }
  1015. },
  1016. ];
  1017. var window = context.window;
  1018. function isBoolean (v) {
  1019. return typeof v === 'boolean';
  1020. }
  1021. function toBoolean (v) {
  1022. return !!v;
  1023. }
  1024. function toNumber (v) {
  1025. return parseInt(v, 10);
  1026. }
  1027. function createConfig () {
  1028. var c = {};
  1029. _.C(MANIFEST).each(function (m) {
  1030. Object.defineProperty(c, m.name, {
  1031. configurable: true,
  1032. enumerable: true,
  1033. get: function () {
  1034. return GM.getValue(m.key, m.default_);
  1035. },
  1036. set: function (v) {
  1037. GM.setValue(m.key, v);
  1038. },
  1039. });
  1040. });
  1041. return c;
  1042. }
  1043. function senityCheck (c) {
  1044. var ok = _.C(MANIFEST).all(function (m) {
  1045. return m.verify(c[m.name]);
  1046. });
  1047. if (!ok) {
  1048. c.version = 0;
  1049. }
  1050. return c;
  1051. }
  1052. function migrate (c) {
  1053. if (typeof c.version !== 'number' || c.version < 0) {
  1054. throw new _.AdsBypasserError('wrong config version: ' + c.version);
  1055. }
  1056. while (c.version < PATCHES.length) {
  1057. PATCHES[c.version](c);
  1058. ++c.version;
  1059. }
  1060. return c;
  1061. }
  1062. $.config = migrate(senityCheck(createConfig()));
  1063. $.register({
  1064. rule: {
  1065. host: /^adsbypasser\.github\.io$/,
  1066. path: /^\/configure\.html$/,
  1067. },
  1068. ready: function () {
  1069. $.window.commit = function (data) {
  1070. data.version = $.config.version;
  1071. _.C(data).each(function (v, k) {
  1072. $.config[k] = v;
  1073. });
  1074. };
  1075. $.window.render({
  1076. version: $.config.version,
  1077. options: {
  1078. alignCenter: {
  1079. type: 'checkbox',
  1080. value: $.config.alignCenter,
  1081. label: 'Align Center',
  1082. help: 'Align image to the center if possible. (default: enabled)',
  1083. },
  1084. changeBackground: {
  1085. type: 'checkbox',
  1086. value: $.config.changeBackground,
  1087. label: 'Change Background',
  1088. help: 'Use Firefox-like image background if possible. (default: enabled)',
  1089. },
  1090. redirectImage: {
  1091. type: 'checkbox',
  1092. value: $.config.redirectImage,
  1093. label: 'Redirect Image',
  1094. help: [
  1095. 'Directly open image link if possible. (default: enabled)',
  1096. 'If disabled, redirection will only works on link shortener sites.',
  1097. ].join('<br/>\n'),
  1098. },
  1099. scaleImage: {
  1100. type: 'checkbox',
  1101. value: $.config.scaleImage,
  1102. label: 'Scale Image',
  1103. help: 'When image loaded, scale it to fit window if possible. (default: enabled)',
  1104. },
  1105. externalServerSupport: {
  1106. type: 'checkbox',
  1107. value: $.config.externalServerSupport,
  1108. label: 'External Server Support',
  1109. help: [
  1110. 'Send URL information to external server to enhance features (e.g.: captcha resolving). (default: disabled)',
  1111. 'Affected sites:',
  1112. 'setlinks.us (captcha)',
  1113. ].join('<br/>\n'),
  1114. },
  1115. logLevel: {
  1116. type: 'select',
  1117. value: $.config.logLevel,
  1118. menu: [
  1119. [0, '0 (quiet)'],
  1120. [1, '1 (default)'],
  1121. [2, '2 (verbose)'],
  1122. ],
  1123. label: 'Log Level',
  1124. help: [
  1125. 'Log level in developer console. (default: 1)',
  1126. '0 will not print anything in console.',
  1127. '1 will only print logs on affected sites.',
  1128. '2 will print on any sites.',
  1129. ].join('<br/>\n'),
  1130. },
  1131. },
  1132. });
  1133. },
  1134. });
  1135. return $;
  1136. }));
  1137. $.register({
  1138. rule: {
  1139. host: /^01\.nl$/,
  1140. },
  1141. ready: function () {
  1142. 'use strict';
  1143. var f = $('iframe#redirectframe');
  1144. $.openLink(f.src);
  1145. },
  1146. });
  1147. $.register({
  1148. rule: {
  1149. host: /^10co\.(biz|xyz|co|me)$/,
  1150. },
  1151. ready: function () {
  1152. 'use strict';
  1153. var d = $('.go');
  1154. $.openLink(d.dataset.href);
  1155. },
  1156. });
  1157. $.register({
  1158. rule: {
  1159. host: /^(www\.)?1be\.biz$/,
  1160. path: /^\/s\.php$/,
  1161. query: /^\?(.+)/,
  1162. },
  1163. start: function (m) {
  1164. 'use strict';
  1165. $.openLink(m.query[1]);
  1166. },
  1167. });
  1168. $.register({
  1169. rule: {
  1170. host: /^(www\.)?1tiny\.net$/,
  1171. path: /\/\w+/
  1172. },
  1173. ready: function () {
  1174. 'use strict';
  1175. var directUrl = $.searchScripts(/window\.location='([^']+)';/);
  1176. if (!directUrl) {
  1177. throw new _.AdsBypasserError('script content changed');
  1178. }
  1179. $.openLink(directUrl[1]);
  1180. },
  1181. });
  1182. $.register({
  1183. rule: {
  1184. host: /^2ty\.cc$/,
  1185. path: /^\/.+/,
  1186. },
  1187. ready: function () {
  1188. 'use strict';
  1189. $.removeNodes('iframe');
  1190. var a = $('#close');
  1191. $.openLink(a.href);
  1192. },
  1193. });
  1194. $.register({
  1195. rule: {
  1196. host: /^(www\.)?3ra\.be$/,
  1197. },
  1198. ready: function () {
  1199. 'use strict';
  1200. $.removeNodes('iframe');
  1201. var f = $.window.fc;
  1202. if (!f) {
  1203. throw new _.AdsBypasserError('window.fc is undefined');
  1204. }
  1205. f = f.toString();
  1206. f = f.match(/href="([^"]*)/);
  1207. if (!f) {
  1208. throw new _.AdsBypasserError('url pattern outdated');
  1209. }
  1210. $.openLink(f[1]);
  1211. },
  1212. });
  1213. $.register({
  1214. rule: {
  1215. host: /^(www\.)?4fun\.tw$/,
  1216. },
  1217. ready: function () {
  1218. 'use strict';
  1219. var i = $('#original_url');
  1220. $.openLink(i.value);
  1221. },
  1222. });
  1223. $.register({
  1224. rule: {
  1225. host: /^ad2links\.com$/,
  1226. path: /^\/\w-.+$/,
  1227. },
  1228. ready: function () {
  1229. 'use strict';
  1230. $.removeNodes('iframe');
  1231. $.openLinkByPost(window.location.toString(), {
  1232. post: {
  1233. image: 'Skip Ad.',
  1234. },
  1235. });
  1236. },
  1237. });
  1238. $.register({
  1239. rule: {
  1240. host: /^ad4\.fr$/,
  1241. },
  1242. ready: function () {
  1243. 'use strict';
  1244. $.removeNodes('iframe');
  1245. var s = $.searchScripts(/"src", "([^"]+)"/);
  1246. if (!s) {
  1247. _.warn('changed');
  1248. return;
  1249. }
  1250. $.openLink(s[1]);
  1251. },
  1252. });
  1253. (function () {
  1254. 'use strict';
  1255. $.register({
  1256. rule: {
  1257. host: /^ad7.biz$/,
  1258. path: /^\/\d+\/(.*)$/,
  1259. },
  1260. start: function (m) {
  1261. $.removeNodes('iframe');
  1262. var redirectLink = m.path[1];
  1263. if (!redirectLink.match(/^https?:\/\//)) {
  1264. redirectLink = "http://" + redirectLink;
  1265. }
  1266. $.openLink(redirectLink);
  1267. },
  1268. });
  1269. $.register({
  1270. rule: {
  1271. host: /^ad7.biz$/,
  1272. path: /^\/\w+$/,
  1273. },
  1274. ready: function () {
  1275. $.removeNodes('iframe');
  1276. var script = $.searchScripts('var r_url');
  1277. var url = script.match(/&url=([^&]+)/);
  1278. url = url[1];
  1279. $.openLink(url);
  1280. },
  1281. });
  1282. })();
  1283. (function () {
  1284. 'use strict';
  1285. $.register({
  1286. rule: {
  1287. host: [
  1288. /^(www\.)?adb\.ug$/,
  1289. /^(www\.)?lynk\.my$/,
  1290. /^adyou\.me$/,
  1291. ],
  1292. path: /^(?!\/(?:privacy|terms|contact(\/.*)?|#.*)?$).*$/
  1293. },
  1294. ready: function () {
  1295. 'use strict';
  1296. $.removeNodes('iframe');
  1297. var m = $.searchScripts(/top\.location\.href="([^"]+)"/);
  1298. if (m) {
  1299. $.openLink(m[1]);
  1300. return;
  1301. }
  1302. getArguments().then(function (args) {
  1303. tryLink(args);
  1304. });
  1305. },
  1306. });
  1307. function getArguments () {
  1308. var PATTERN = /\{\s*_args[^}]+\}[^}]+\}/;
  1309. return _.D(function (resolve, reject) {
  1310. var m = $.searchScripts(PATTERN);
  1311. if (m) {
  1312. resolve(m);
  1313. return;
  1314. }
  1315. var observer = new MutationObserver(function (mutations) {
  1316. mutations.forEach(function (mutation) {
  1317. mutation.addedNodes.forEach(function (node) {
  1318. if (node.localName === 'script') {
  1319. var m = node.textContent.match(PATTERN);
  1320. if (m) {
  1321. resolve(m);
  1322. observer.disconnect();
  1323. }
  1324. }
  1325. });
  1326. });
  1327. });
  1328. observer.observe(document.body, {
  1329. childList: true,
  1330. });
  1331. }).then(function (m) {
  1332. return eval('(' + m[0] + ')');
  1333. });
  1334. }
  1335. function tryLink (args) {
  1336. var url = window.location.pathname + '/skip_timer';
  1337. var i = setInterval(function () {
  1338. $.post(url, args).then(function (text) {
  1339. var jj = _.parseJSON(text);
  1340. if (!jj.errors && jj.messages) {
  1341. clearInterval(i);
  1342. $.openLink(jj.messages.url);
  1343. }
  1344. });
  1345. }, 1000);
  1346. }
  1347. })();
  1348. (function () {
  1349. 'use strict';
  1350. function getTokenFromRocketScript () {
  1351. var a = $.searchScripts(/var eu = '(?!false)(.*)'/);
  1352. return a ? a[1] : null;
  1353. }
  1354. $.register({
  1355. rule: {
  1356. host: /^adf\.ly$/,
  1357. path: /^\/redirecting\/(.+)$/,
  1358. },
  1359. start: function (m) {
  1360. var url = atob(m.path[1]);
  1361. $.openLink(url);
  1362. },
  1363. });
  1364. $.register({
  1365. rule: {
  1366. path: /\/locked$/,
  1367. query: /url=([^&]+)/,
  1368. },
  1369. start: function (m) {
  1370. $.resetCookies();
  1371. var url = decodeURIComponent(m.query[1]);
  1372. if (url.match(/^http/)) {
  1373. $.openLink(url);
  1374. } else {
  1375. $.openLink('/' + url);
  1376. }
  1377. },
  1378. });
  1379. $.register({
  1380. rule: [
  1381. {
  1382. host: [
  1383. /^adf\.ly$/,
  1384. /^u\.shareme\.in$/,
  1385. /^server\.sbenny\.com$/,
  1386. /^bluenik\.com$/,
  1387. ],
  1388. },
  1389. function () {
  1390. var h = $.$('html[id="main_html"]');
  1391. var b = $.$('body[id="home"]');
  1392. if (h && b) {
  1393. return true;
  1394. } else {
  1395. return null;
  1396. }
  1397. },
  1398. ],
  1399. start: function () {
  1400. $.window.document.write = _.nop;
  1401. $.window.btoa = _.nop;
  1402. waitToken().then(function (token) {
  1403. var url = decodeToken(token);
  1404. $.openLink(url);
  1405. }).catch(function (e) {
  1406. _.warn(e);
  1407. });
  1408. },
  1409. ready: function () {
  1410. var h = $.$('#main_html'), b = $.$('#home');
  1411. if (!h || !b || h.nodeName !== 'HTML' || b.nodeName !== 'BODY') {
  1412. return;
  1413. }
  1414. $.removeNodes('iframe');
  1415. $.window.cookieCheck = _.nop;
  1416. h = getTokenFromRocketScript();
  1417. if (!h) {
  1418. h = $('#adfly_bar');
  1419. $.window.close_bar();
  1420. return;
  1421. }
  1422. h = decodeToken(h);
  1423. $.openLink(h);
  1424. },
  1425. });
  1426. function waitToken () {
  1427. return _.D(function (resolve) {
  1428. var o = new MutationObserver(function (mutations) {
  1429. mutations.forEach(function (mutation) {
  1430. _.C(mutation.addedNodes).each(function (node) {
  1431. if (node.localName === 'script') {
  1432. var m = node.textContent.match(/var ysmm = '([^']+)'/);
  1433. if (m) {
  1434. o.disconnect();
  1435. resolve(m[1]);
  1436. }
  1437. }
  1438. });
  1439. });
  1440. });
  1441. o.observe(document.head, {
  1442. childList: true,
  1443. });
  1444. });
  1445. }
  1446. function decodeToken (token) {
  1447. var a = token.indexOf('!HiTommy');
  1448. if (a >= 0) {
  1449. token = token.substring(0, a);
  1450. }
  1451. a = '';
  1452. var b = '';
  1453. for (var i = 0; i < token.length; ++i) {
  1454. if (i % 2 === 0) {
  1455. a = a + token.charAt(i);
  1456. } else {
  1457. b = token.charAt(i) + b;
  1458. }
  1459. }
  1460. token = atob(a + b);
  1461. token = token.substr(2);
  1462. if (location.hash) {
  1463. token += location.hash;
  1464. }
  1465. return token;
  1466. }
  1467. })();
  1468. $.register({
  1469. rule: {
  1470. host: /^(www\.)?adfe\.es$/,
  1471. path: /^\/\w+$/,
  1472. },
  1473. ready: function () {
  1474. 'use strict';
  1475. var f = $('#frmvideo');
  1476. if (!f.STEP4) {
  1477. return;
  1478. }
  1479. f.submit();
  1480. },
  1481. });
  1482. $.register({
  1483. rule: 'http://adfoc.us/*',
  1484. ready: function () {
  1485. 'use strict';
  1486. var root = document.body;
  1487. var observer = new MutationObserver(function (mutations) {
  1488. var o = $.$('#showSkip');
  1489. if (o) {
  1490. observer.disconnect();
  1491. o = o.querySelector('a');
  1492. $.openLink(o.href);
  1493. }
  1494. });
  1495. observer.observe(root, {
  1496. childList: true,
  1497. subtree: true,
  1498. });
  1499. },
  1500. });
  1501. $.register({
  1502. rule: {
  1503. host: /^(www\.)?adjet\.biz$/,
  1504. },
  1505. ready: function () {
  1506. 'use strict';
  1507. var m = $.searchScripts(/href=(\S+)/);
  1508. if (!m) {
  1509. throw new _.AdsBypasserError('site changed');
  1510. }
  1511. $.openLink(m[1]);
  1512. },
  1513. });
  1514. (function () {
  1515. 'use strict';
  1516. $.register({
  1517. rule: {
  1518. host: [
  1519. /^adlink\.guru$/,
  1520. /^cypt\.ga$/,
  1521. /^filesbucks\.com$/,
  1522. /^elink\.link$/,
  1523. /^(payurl|urlst)\.me$/,
  1524. /^url\.ht$/,
  1525. /^urle\.co$/,
  1526. /^cut-urls\.com$/,
  1527. /^(hashe|trlink)\.in$/,
  1528. /^www\.worldhack\.net$/,
  1529. /^123link\.top$/,
  1530. /^pir\.im$/,
  1531. /^bol\.tl$/,
  1532. /^tl\.tc$/,
  1533. /^tmearn\.com$/,
  1534. /^adfu\.us$/,
  1535. /^short\.pastewma\.com$/,
  1536. /^adfly\.tc$/,
  1537. /^linkfly\.gaosmedia\.com$/,
  1538. ],
  1539. },
  1540. ready: function () {
  1541. $.removeNodes('iframe', '.BJPPopAdsOverlay');
  1542. firstStage().then(function (page) {
  1543. return secondStage(page);
  1544. }).then(function (url) {
  1545. $.nuke(url);
  1546. $.openLink(url);
  1547. }).catch(function (e) {
  1548. _.warn(e);
  1549. });
  1550. },
  1551. });
  1552. function firstStage () {
  1553. return _.D(function (resolve, reject) {
  1554. var f = $.$('#link-view');
  1555. if (!f) {
  1556. resolve(document);
  1557. return;
  1558. }
  1559. var args = extractArgument(f);
  1560. var url = f.getAttribute('action');
  1561. var p = $.post(url, args).then(function (data) {
  1562. return $.toDOM(data);
  1563. });
  1564. resolve(p);
  1565. });
  1566. }
  1567. function secondStage (page) {
  1568. var f = $('#go-link', page);
  1569. var args = extractArgument(f);
  1570. var url = f.getAttribute('action');
  1571. return $.post(url, args).then(function (data) {
  1572. data = JSON.parse(data);
  1573. if (data && data.url) {
  1574. return data.url;
  1575. }
  1576. throw new _.AdsBypasserError('wrong data');
  1577. });
  1578. }
  1579. function extractArgument (form) {
  1580. var args = {};
  1581. $.$$('input', form).each(function (v) {
  1582. args[v.name] = v.value;
  1583. });
  1584. return args;
  1585. }
  1586. })();
  1587. $.register({
  1588. rule: {
  1589. host: /^adlock\.org$/,
  1590. },
  1591. ready: function () {
  1592. 'use strict';
  1593. var a = $.$('#xre a.xxr, #downloadButton1');
  1594. if (a) {
  1595. $.openLink(a.href);
  1596. return;
  1597. }
  1598. a = $.window.fileLocation;
  1599. if (a) {
  1600. $.openLink(a);
  1601. }
  1602. },
  1603. });
  1604. $.register({
  1605. rule: {
  1606. host: /^(www\.)?adlot\.us$/,
  1607. },
  1608. ready: function () {
  1609. 'use strict';
  1610. $.removeNodes('iframe');
  1611. var script = $.searchScripts('form');
  1612. var p = /name='([^']+)' value='([^']+)'/g;
  1613. var opt = {
  1614. image: ' ',
  1615. };
  1616. var tmp = null;
  1617. while (tmp = p.exec(script)) {
  1618. opt[tmp[1]] = tmp[2];
  1619. }
  1620. $.openLink('', {
  1621. path: opt,
  1622. });
  1623. },
  1624. });
  1625. $.register({
  1626. rule: {
  1627. host: /^admy\.link$/,
  1628. },
  1629. ready: function () {
  1630. 'use strict';
  1631. var f = $('form.edit_link');
  1632. f.submit();
  1633. },
  1634. });
  1635. $.register({
  1636. rule: {
  1637. host: /^(www\.)?ah-informatique\.com$/,
  1638. path: /^\/ZipUrl/,
  1639. },
  1640. ready: function () {
  1641. 'use strict';
  1642. var a = $('#zip3 a');
  1643. $.openLink(a.href);
  1644. },
  1645. });
  1646. (function () {
  1647. 'use strict';
  1648. function decodeScript (encoded) {
  1649. var a = encoded.match(/^\s*;eval\((.+)\);\s*$/);
  1650. a = a[1];
  1651. var b = a.match(/^(.+)\('([^']+)','([^']+)','([^']+)','([^']+)'\)$/);
  1652. var c = eval('(' + b[1] + ')');
  1653. return c(b[2], b[3], b[4], b[5]);
  1654. }
  1655. $.register({
  1656. rule: {
  1657. host: /^ah\.pe$/,
  1658. },
  1659. ready: function () {
  1660. $.removeNodes('iframe');
  1661. var script = $.searchScripts('eval');
  1662. script = decodeScript(script);
  1663. script = decodeScript(script);
  1664. script = decodeScript(script);
  1665. var path = script.match(/'(g\/[^']+)'/);
  1666. path = path[1];
  1667. _.wait(3000).then(function () {
  1668. $.get(path).then(function (url) {
  1669. $.openLink(url);
  1670. });
  1671. });
  1672. },
  1673. });
  1674. })();
  1675. $.register({
  1676. rule: {
  1677. host: /^aka\.gr$/
  1678. },
  1679. ready: function () {
  1680. 'use strict';
  1681. var l = $('iframe#yourls-frame');
  1682. $.openLink(l.src);
  1683. },
  1684. });
  1685. $.register({
  1686. rule: {
  1687. host: [
  1688. /^al\.ly$/,
  1689. /^ally\.sh$/,
  1690. ],
  1691. },
  1692. ready: function () {
  1693. 'use strict';
  1694. var i = $.$('body > section > iframe');
  1695. if (i) {
  1696. i.src = 'about:blank';
  1697. _.wait(3000).then(function () {
  1698. var a = $('a.redirect');
  1699. a.click();
  1700. });
  1701. return;
  1702. }
  1703. i = $.searchScripts(/"href","([^"]+)"\)\.remove/);
  1704. if (!i) {
  1705. _.warn('site changed');
  1706. return;
  1707. }
  1708. i = i[1];
  1709. $.openLink(i);
  1710. },
  1711. });
  1712. $.register({
  1713. rule: {
  1714. host: [
  1715. /^(www\.)?allkeyshop\.com$/,
  1716. /^cshort\.org$/,
  1717. ],
  1718. },
  1719. ready: function (m) {
  1720. 'use strict';
  1721. var matches = $.searchScripts(/window\.location\.href = "([^"]+)"/);
  1722. matches = matches[1];
  1723. $.nuke(matches);
  1724. $.openLink(matches);
  1725. },
  1726. });
  1727. $.register({
  1728. rule: {
  1729. host: /^anonymbucks\.com$/,
  1730. },
  1731. ready: function () {
  1732. 'use strict';
  1733. var a = $('#boton-continuar');
  1734. a.click();
  1735. },
  1736. });
  1737. (function () {
  1738. 'use strict';
  1739. var ajaxPattern = /\$.post\('([^']*)'[^{]+(\{\s*opt:\s*'make_log'[^}]+\}\s*\}),/i;
  1740. $.register({
  1741. rule: {
  1742. host: [
  1743. /^bc\.vc$/,
  1744. /^linc\.ml$/,
  1745. ],
  1746. path: /^.+(https?:\/\/.+)$/,
  1747. },
  1748. start: function (m) {
  1749. $.openLink(m.path[1] + document.location.search + document.location.hash);
  1750. },
  1751. });
  1752. function decompress (script, unzip) {
  1753. if (!unzip) {
  1754. return script;
  1755. }
  1756. var matches = script.match(/eval(.*)/);
  1757. if (!matches) {
  1758. throw new _.AdsBypasserError('no script matches /eval(.*)/');
  1759. }
  1760. matches = matches[1];
  1761. script = eval(matches);
  1762. return script;
  1763. }
  1764. function searchScript (unzip) {
  1765. var content = $.searchScripts('make_log');
  1766. if (content) {
  1767. return {
  1768. direct: false,
  1769. script: decompress(content, unzip),
  1770. };
  1771. }
  1772. content = $.searchScripts('click_log');
  1773. if (content) {
  1774. return {
  1775. direct: true,
  1776. script: decompress(content, unzip),
  1777. };
  1778. }
  1779. throw _.AdsBypasserError('script changed');
  1780. }
  1781. function knockServer (script, dirtyFix) {
  1782. var matches = script.match(ajaxPattern);
  1783. if (!matches) {
  1784. throw new _.AdsBypasserError('(in knock server) no script matches $.post');
  1785. }
  1786. var make_url = matches[1];
  1787. var make_opts = eval('(' + matches[2] + ')');
  1788. var i = setInterval(function () {
  1789. $.post(make_url, make_opts).then(function (text) {
  1790. if (dirtyFix) {
  1791. text = text.match(/\{.+\}/)[0];
  1792. }
  1793. var jj = _.parseJSON(text);
  1794. if (jj.message) {
  1795. clearInterval(i);
  1796. $.openLink(jj.message.url);
  1797. }
  1798. });
  1799. }, 1000);
  1800. }
  1801. function knockServer2 (script) {
  1802. var post = $.window.$.post;
  1803. $.window.$.post = function (a, b, c) {
  1804. if (typeof c !== 'function') {
  1805. return;
  1806. }
  1807. setTimeout(function () {
  1808. var data = {
  1809. error: false,
  1810. message: {
  1811. url: '#',
  1812. },
  1813. };
  1814. c(JSON.stringify(data));
  1815. }, 1000);
  1816. };
  1817. var matches = script.match(ajaxPattern);
  1818. if (!matches) {
  1819. throw new _.AdsBypasserError('(in knock server 2) no script matches $.post');
  1820. }
  1821. var make_url = matches[1];
  1822. var tZ, cW, cH, sW, sH;
  1823. var make_opts = eval('(' + matches[2] + ')');
  1824. function makeLog () {
  1825. make_opts.opt = 'make_log';
  1826. post(make_url, make_opts, function (text) {
  1827. var data = _.parseJSON(text);
  1828. _.info('make_log', data);
  1829. if (!data.message) {
  1830. checksLog();
  1831. return;
  1832. }
  1833. $.openLink(data.message.url);
  1834. });
  1835. }
  1836. function checkLog () {
  1837. make_opts.opt = 'check_log';
  1838. post(make_url, make_opts, function (text) {
  1839. var data = _.parseJSON(text);
  1840. _.info('check_log', data);
  1841. if (!data.message) {
  1842. checkLog();
  1843. return;
  1844. }
  1845. makeLog();
  1846. });
  1847. }
  1848. function checksLog () {
  1849. make_opts.opt = 'checks_log';
  1850. post(make_url, make_opts, function () {
  1851. _.info('checks_log');
  1852. checkLog();
  1853. });
  1854. }
  1855. checksLog();
  1856. }
  1857. $.register({
  1858. rule: {
  1859. host: /^bc\.vc$/,
  1860. path: /^\/.+/,
  1861. },
  1862. ready: function () {
  1863. $.removeNodes('iframe');
  1864. var result = searchScript(false);
  1865. if (!result.direct) {
  1866. knockServer2(result.script);
  1867. } else {
  1868. result = result.script.match(/top\.location\.href = '([^']+)'/);
  1869. if (!result) {
  1870. throw new _.AdsBypasserError('script changed');
  1871. }
  1872. result = result[1];
  1873. $.openLink(result);
  1874. }
  1875. },
  1876. });
  1877. function run (dirtyFix) {
  1878. $.removeNodes('iframe');
  1879. var result = searchScript(true);
  1880. if (!result.direct) {
  1881. knockServer(result.script,dirtyFix);
  1882. } else {
  1883. result = result.script.match(/top\.location\.href='([^']+)'/);
  1884. if (!result) {
  1885. throw new _.AdsBypasserError('script changed');
  1886. }
  1887. result = result[1];
  1888. $.openLink(result);
  1889. }
  1890. }
  1891. $.register({
  1892. rule: {
  1893. host: /^adcrun\.ch$/,
  1894. path: /^\/\w+$/,
  1895. },
  1896. ready: function () {
  1897. $.removeNodes('.user_content');
  1898. var rSurveyLink = /http\.open\("GET", "api_ajax\.php\?sid=\d*&ip=[^&]*&longurl=([^"]+)" \+ first_time, (?:true|false)\);/;
  1899. var l = $.searchScripts(rSurveyLink);
  1900. if (l) {
  1901. $.openLink(l[1]);
  1902. return;
  1903. }
  1904. run(true);
  1905. },
  1906. });
  1907. $.register({
  1908. rule: {
  1909. host: [
  1910. /^1tk\.us$/,
  1911. /^gx\.si$/,
  1912. /^adwat\.ch$/,
  1913. /^(fly2url|urlwiz|xafox)\.com$/,
  1914. /^(zpoz|ultry)\.net$/,
  1915. /^(wwy|myam)\.me$/,
  1916. /^ssl\.gs$/,
  1917. /^hit\.us$/,
  1918. /^shortit\.in$/,
  1919. /^(adbla|tl7)\.us$/,
  1920. /^www\.adjet\.eu$/,
  1921. /^srk\.gs$/,
  1922. /^cun\.bz$/,
  1923. /^miniurl\.tk$/,
  1924. /^vizzy\.es$/,
  1925. /^kazan\.vc$/,
  1926. /^linkcash\.ml$/,
  1927. ],
  1928. path: /^\/.+/,
  1929. },
  1930. ready: run,
  1931. });
  1932. $.register({
  1933. rule: {
  1934. host: /^adtr\.im|ysear\.ch|xip\.ir$/,
  1935. path: /^\/.+/,
  1936. },
  1937. ready: function () {
  1938. var a = $.$('div.fly_head a.close');
  1939. var f = $.$('iframe.fly_frame');
  1940. if (a && f) {
  1941. $.openLink(f.src);
  1942. } else {
  1943. run();
  1944. }
  1945. },
  1946. });
  1947. $.register({
  1948. rule: {
  1949. host: /^ad5\.eu$/,
  1950. path: /^\/[^.]+$/,
  1951. },
  1952. ready: function() {
  1953. $.removeNodes('iframe');
  1954. var s = searchScript(true);
  1955. var m = s.script.match(/(<form name="form1"method="post".*(?!<\\form>)<\/form>)/);
  1956. if (!m) {return;}
  1957. m = m[1];
  1958. var tz = -(new Date().getTimezoneOffset()/60);
  1959. m = m.replace("'+timezone+'",tz);
  1960. var d = document.createElement('div');
  1961. d.setAttribute('id','AdsBypasserFTW');
  1962. d.setAttribute('style', 'display:none;');
  1963. d.innerHTML = m;
  1964. document.body.appendChild(d);
  1965. $('#AdsBypasserFTW > form[name=form1]').submit();
  1966. },
  1967. });
  1968. $.register({
  1969. rule: {
  1970. host: /^tr5\.in$/,
  1971. path: /^\/.+/,
  1972. },
  1973. ready: function () {
  1974. run(true);
  1975. },
  1976. });
  1977. })();
  1978. $.register({
  1979. rule: {
  1980. host: /^(www\.)?biglistofwebsites\.com$/,
  1981. path: /^\/go\/(\w+\.\w+)$/
  1982. },
  1983. start: function (m) {
  1984. 'use strict';
  1985. $.openLink('http://' + m.path[1]);
  1986. },
  1987. });
  1988. $.register({
  1989. rule: 'http://www.bild.me/bild.php?file=*',
  1990. ready: function () {
  1991. 'use strict';
  1992. var i = $('#Bild');
  1993. $.openLink(i.src);
  1994. },
  1995. });
  1996. $.register({
  1997. rule: 'http://bildr.no/view/*',
  1998. ready: function () {
  1999. 'use strict';
  2000. var i = $('img.bilde');
  2001. $.openLink(i.src);
  2002. },
  2003. });
  2004. $.register({
  2005. rule: {
  2006. host: /^(www\.)?([a-zA-Z0-9]+\.)?binbox\.io$/,
  2007. path: /\/o\/([a-zA-Z0-9]+)/,
  2008. },
  2009. start: function (m) {
  2010. 'use strict';
  2011. var direct_link = window.atob(m.path[1]);
  2012. $.openLink(direct_link);
  2013. },
  2014. });
  2015. $.register({
  2016. rule: {
  2017. host: /^(www\.)?boxcash\.net$/,
  2018. path: /^\/[\w~]+$/,
  2019. },
  2020. ready: function () {
  2021. 'use strict';
  2022. var m = $.searchScripts(/\'\/ajax_link\.php\',\s*\{key:\s*'(\w+)',\s*url:\s*'(\d+)',\s*t:\s*'(\d+)',\s*r:\s*'(\w*)'\}/);
  2023. if (!m) {
  2024. return;
  2025. }
  2026. $.post('/ajax_link.php', {
  2027. key: m[1],
  2028. url: m[2],
  2029. t: m[3],
  2030. r: m[4],
  2031. }).then(function (response) {
  2032. var l = response.match(/window(?:.top.window)\.location="([^"]+)"/);
  2033. $.openLink(l[1]);
  2034. });
  2035. },
  2036. });
  2037. $.register({
  2038. rule: {
  2039. host: /^(www\.)?boxcash\.net$/,
  2040. path: /^\/redirect\.html$/,
  2041. query: /url=(.+)$/,
  2042. },
  2043. start: function (m) {
  2044. 'use strict';
  2045. var l = decodeURIComponent(m.query[1]);
  2046. $.openLink(l);
  2047. },
  2048. });
  2049. $.register({
  2050. rule: {
  2051. host: /^(www\.)?(buz|vzt)url\.com$/,
  2052. },
  2053. ready: function () {
  2054. 'use strict';
  2055. var frame = $('frame[scrolling=yes]');
  2056. $.openLink(frame.src);
  2057. },
  2058. });
  2059. $.register({
  2060. rule: {
  2061. host: /^(cf|ex|xt)\d\.(me|co)$/,
  2062. },
  2063. ready: function (m) {
  2064. 'use strict';
  2065. $.removeNodes('iframe');
  2066. var a = $('#skip_button');
  2067. $.openLink(a.href);
  2068. },
  2069. });
  2070. $.register({
  2071. rule: {
  2072. host: /^catcut\.net$/,
  2073. },
  2074. ready: function () {
  2075. 'use strict';
  2076. var a = $('#rbs');
  2077. $.openLink(a.href);
  2078. },
  2079. });
  2080. $.register({
  2081. rule: {
  2082. host: /^cf\.ly$/,
  2083. path: /^\/[^\/]+$/,
  2084. },
  2085. start: function (m) {
  2086. 'use strict';
  2087. $.removeNodes('iframe');
  2088. $.openLink('/skip' + m.path[0]);
  2089. },
  2090. });
  2091. $.register({
  2092. rule: {
  2093. host: /^(www\.)?cli\.gs$/,
  2094. },
  2095. ready: function () {
  2096. 'use strict';
  2097. var a = $('a.RedirectLink');
  2098. $.openLink(a.href);
  2099. },
  2100. });
  2101. $.register({
  2102. rule: {
  2103. host: /^(www\.)?clictune\.com$/,
  2104. path: /^\/id=\d+/,
  2105. },
  2106. ready: function () {
  2107. 'use strict';
  2108. $.removeNodes('iframe');
  2109. var matches = $.searchScripts(/<a href="http:\/\/(?:www.)?clictune\.com\/redirect\.php\?url=([^&]+)&/);
  2110. var url = decodeURIComponent(matches[1]);
  2111. $.openLink(url);
  2112. },
  2113. });
  2114. $.register({
  2115. rule: {
  2116. host: /^clk\.im$/,
  2117. },
  2118. ready: function (m) {
  2119. 'use strict';
  2120. $.removeNodes('iframe');
  2121. var matches = $.searchScripts(/\$\("\.countdown"\)\.attr\("href","([^"]+)"\)/);
  2122. $.openLink(matches[1]);
  2123. },
  2124. });
  2125. $.register({
  2126. rule: {
  2127. host: /^cocoleech\.com$/,
  2128. },
  2129. ready: function () {
  2130. 'use strict';
  2131. var a = $('#download');
  2132. $.openLink(a.href);
  2133. },
  2134. });
  2135. (function () {
  2136. 'use strict';
  2137. function hostMapper (host) {
  2138. switch (host) {
  2139. case 'disingkat.in':
  2140. return function () {
  2141. var a = $('a.btn-block.redirect');
  2142. return a.href;
  2143. };
  2144. case 'link.animagz.org':
  2145. return function () {
  2146. var a = $('a.redirect');
  2147. a = a.onclick.toString();
  2148. a = a.match(/window\.open \('([^']+)'\)/);
  2149. return a[1];
  2150. };
  2151. case 'coeg.in':
  2152. return function () {
  2153. var a = $('.download-link a');
  2154. return a.href;
  2155. };
  2156. case 'gunting.in':
  2157. return function () {
  2158. var a = $('div.col-sm-6:nth-child(1) > center:nth-child(1) > a:nth-child(1)');
  2159. return a.href;
  2160. };
  2161. default:
  2162. return null;
  2163. }
  2164. }
  2165. $.register({
  2166. rule: {
  2167. host: [
  2168. /^link\.animagz\.org$/,
  2169. /^coeg\.in$/,
  2170. /^disingkat\.in$/,
  2171. /^gunting\.in$/,
  2172. ],
  2173. path: /^\/\w+$/,
  2174. },
  2175. ready: function (m) {
  2176. var mapper = hostMapper(m.host[0]);
  2177. var b64 = mapper().match(/\?r=(\w+={0,2}?)/);
  2178. $.openLink(atob(b64[1]));
  2179. },
  2180. });
  2181. $.register({
  2182. rule: {
  2183. host: /^sipkur\.(net|us)$/,
  2184. path: [
  2185. /^\/\w+$/,
  2186. /^\/menujulink\//,
  2187. ],
  2188. },
  2189. ready: function () {
  2190. var d = $('#testapk > div');
  2191. d = d.onclick.toString();
  2192. d = d.match(/window\.open\('([^']+)'/);
  2193. $.openLink(d[1]);
  2194. },
  2195. });
  2196. })();
  2197. $.register({
  2198. rule: {
  2199. host: /^coinlink\.co$/,
  2200. path: /^\/i\//,
  2201. },
  2202. ready: function (m) {
  2203. 'use strict';
  2204. var a = $('a#btn-main, a.btn.btn-block.btn-warning, a.btn.btn-block.btn-success');
  2205. $.openLink(a.href);
  2206. },
  2207. });
  2208. $.register({
  2209. rule: {
  2210. host: /^(?:(\w+)\.)?(coinurl\.com|cur\.lv)$/,
  2211. path: /^\/([-\w]+)$/
  2212. },
  2213. ready: function (m) {
  2214. 'use strict';
  2215. $.removeNodes('iframe');
  2216. var host = 'http://cur.lv/redirect_curlv.php';
  2217. var param = m.host[1] === undefined ? {
  2218. code: m.path[1],
  2219. } : {
  2220. zone: m.host[1],
  2221. name: m.path[1],
  2222. };
  2223. $.get(host, param).then(function(mainFrameContent) {
  2224. try {
  2225. var docMainFrame = $.toDOM(mainFrameContent);
  2226. } catch (e) {
  2227. throw new _.AdsBypasserError('main frame changed');
  2228. }
  2229. var rExtractLink = /onclick="open_url\('([^']+)',\s*'go'\)/;
  2230. var innerFrames = $.$$('iframe', docMainFrame).each(function (currFrame) {
  2231. var currFrameAddr = currFrame.getAttribute('src');
  2232. $.get(currFrameAddr).then(function(currFrameContent) {
  2233. var aRealLink = rExtractLink.exec(currFrameContent);
  2234. if (aRealLink === undefined || aRealLink[1] === undefined) {
  2235. return;
  2236. }
  2237. var realLink = aRealLink[1];
  2238. $.openLink(realLink);
  2239. });
  2240. });
  2241. });
  2242. },
  2243. });
  2244. $.register({
  2245. rule: {
  2246. host: /^www\.comicon\.com\.br$/,
  2247. path: /^\/redir\.php$/,
  2248. },
  2249. ready: function () {
  2250. 'use strict';
  2251. var a = $('#link');
  2252. $.openLink(a.href);
  2253. },
  2254. });
  2255. $.register({
  2256. rule: {
  2257. host: /^comyonet\.com$/,
  2258. },
  2259. ready: function () {
  2260. 'use strict';
  2261. var input = $('input[name="enter"]');
  2262. input.click();
  2263. },
  2264. });
  2265. $.register({
  2266. rule: {
  2267. host: [
  2268. /^www\.cuzle\.com$/,
  2269. /^shorten\.id$/,
  2270. ],
  2271. path: /^\/$/,
  2272. query: /^\?(.+)=$/,
  2273. },
  2274. start: function (m) {
  2275. 'use strict';
  2276. var url = atob(m.query[1]);
  2277. $.openLink(url);
  2278. },
  2279. });
  2280. $.register({
  2281. rule: {
  2282. host: /^(www\.)?cvc\.la$/,
  2283. path: /^\/\w+$/,
  2284. },
  2285. start: function () {
  2286. 'use strict';
  2287. $.post(document.location.href, {
  2288. hidden: 24,
  2289. image: ' ',
  2290. }).then(function (text) {
  2291. var matches = text.match(/window\.location\.replace\('([^']+)'\);/);
  2292. $.openLink(matches[1]);
  2293. });
  2294. },
  2295. });
  2296. $.register({
  2297. rule: {
  2298. host: /^(www\.)?dapat\.in$/,
  2299. },
  2300. ready: function () {
  2301. 'use strict';
  2302. var f = $('iframe[name=pagetext]');
  2303. $.openLink(f.src);
  2304. },
  2305. });
  2306. $.register({
  2307. rule: {
  2308. host: /^(www\.)?dd\.ma$/,
  2309. },
  2310. ready: function (m) {
  2311. 'use strict';
  2312. var i = $.$('#mainframe');
  2313. if (i) {
  2314. $.openLink(i.src);
  2315. return;
  2316. }
  2317. var a = $('#btn_open a');
  2318. $.openLink(a.href);
  2319. },
  2320. });
  2321. $.register({
  2322. rule: {
  2323. host: /^(www\.)?dereferer\.website$/,
  2324. query: /^\?(.+)/,
  2325. },
  2326. start: function (m) {
  2327. 'use strict';
  2328. $.openLink(m.query[1]);
  2329. },
  2330. });
  2331. $.register({
  2332. rule: {
  2333. host: /^www\.dewaurl\.com$/,
  2334. },
  2335. ready: function () {
  2336. 'use strict';
  2337. var f = $('.framedRedirectTopFrame');
  2338. $.get(f.src).then(function (html) {
  2339. html = $.toDOM(html);
  2340. var a = $('#continueButton > a', html);
  2341. $.openLink(a.href);
  2342. }).catch(function (e) {
  2343. _.warn(e);
  2344. });
  2345. },
  2346. });
  2347. $.register({
  2348. rule: {
  2349. host: /^dikit\.in$/,
  2350. },
  2351. ready: function () {
  2352. 'use strict';
  2353. $.removeNodes('iframe');
  2354. var a = $('.disclaimer a');
  2355. $.openLink(a.href);
  2356. },
  2357. });
  2358. $.register({
  2359. rule: {
  2360. host: /^durl\.me$/,
  2361. },
  2362. ready: function () {
  2363. 'use strict';
  2364. var a = $('a[class="proceedBtn"]');
  2365. $.openLink(a.href);
  2366. },
  2367. });
  2368. $.register({
  2369. rule: {
  2370. host: /easyurl\.net|(atu|clickthru|redirects|readthis)\.ca|goshrink\.com$/,
  2371. },
  2372. ready: function () {
  2373. 'use strict';
  2374. var f = $('frame[name=main]');
  2375. $.openLink(f.src);
  2376. },
  2377. });
  2378. $.register({
  2379. rule: {
  2380. host: /^elde\.me$/,
  2381. },
  2382. ready: function () {
  2383. 'use strict';
  2384. $.removeNodes('iframe:not([name=undefined])');
  2385. var a = $('#modal-alert');
  2386. a.style.display = 'block';
  2387. a.style.top = 0;
  2388. a.style.left = 0;
  2389. },
  2390. });
  2391. $.register({
  2392. rule: {
  2393. host: /empireload\.com$/,
  2394. path: /^\/plugin\.php$/,
  2395. query: /^\?id=linkout&url=([^&]+)$/,
  2396. },
  2397. start: function (m) {
  2398. $.openLink(m.query[1]);
  2399. },
  2400. });
  2401. $.register({
  2402. rule: {
  2403. host: [
  2404. /^ethi\.in$/,
  2405. /^st\.wardhanime\.net$/,
  2406. ],
  2407. path: /^\/i\/\d+$/,
  2408. },
  2409. ready: function () {
  2410. 'use strict';
  2411. var a = $('#wrapper > [class^="tombo"] > a[target="_blank"]');
  2412. $.openLink(a.href);
  2413. },
  2414. });
  2415. $.register({
  2416. rule: {
  2417. host: /^(www\.)?filoops.info$/
  2418. },
  2419. ready: function () {
  2420. 'use strict';
  2421. var a = $('#text > center a, #text > div[align=center] a');
  2422. $.openLink(a.href);
  2423. },
  2424. });
  2425. $.register({
  2426. rule: {
  2427. host: /^fit\.sh$/,
  2428. },
  2429. ready: function () {
  2430. 'use strict';
  2431. $.removeNodes('.container-body');
  2432. var m = $.searchScripts(/token="([^"]+)"/);
  2433. if (!m) {
  2434. throw new _.AdsBypasserError('site changed');
  2435. }
  2436. m = m[1];
  2437. var interLink = '/go/' + m + '?fa=15466&a=' + window.location.hash.substr(1);
  2438. setTimeout(function () {
  2439. $.openLink(interLink);
  2440. }, 6000);
  2441. },
  2442. });
  2443. $.register({
  2444. rule: {
  2445. host: /^(www\.)?fiuxy\.co$/,
  2446. path: /^\/links?\/$/,
  2447. },
  2448. ready: function () {
  2449. $.openLink($('a.btn.a').href);
  2450. }
  2451. });
  2452. $.register({
  2453. rule: {
  2454. host: /^www\.forbes\.com$/,
  2455. },
  2456. ready: function () {
  2457. 'use strict';
  2458. var o = $.window.ox_zones;
  2459. if (o) {
  2460. $.openLink(o.page_url);
  2461. }
  2462. },
  2463. });
  2464. $.register({
  2465. rule: {
  2466. host: /^www\.free-tv-video-online\.info$/,
  2467. path: /^\/interstitial2\.html$/,
  2468. query: /lnk=([^&]+)/,
  2469. },
  2470. start: function (m) {
  2471. 'use strict';
  2472. var url = decodeURIComponent(m.query[1]);
  2473. $.openLink(url);
  2474. },
  2475. });
  2476. (function () {
  2477. 'use strict';
  2478. $.register({
  2479. rule: {
  2480. host: /^(www\.)?fundurl\.com$/,
  2481. query: /i=([^&]+)/,
  2482. },
  2483. start: function (m) {
  2484. $.openLink(m.query[1]);
  2485. },
  2486. });
  2487. $.register({
  2488. rule: {
  2489. host: /^(www\.)?fundurl\.com$/,
  2490. path: /^\/(go-\w+|load\.php)$/,
  2491. },
  2492. ready: function () {
  2493. var f = $('iframe[name=fpage3]');
  2494. $.openLink(f.src);
  2495. },
  2496. });
  2497. })();
  2498. (function () {
  2499. var hosts = /^gca\.sh|repla\.cr$/;
  2500. $.register({
  2501. rule: {
  2502. host: hosts,
  2503. path: /^\/adv\/\w+\/(.*)$/,
  2504. query: /^(.*)$/,
  2505. hash: /^(.*)$/,
  2506. },
  2507. start: function (m) {
  2508. 'use strict';
  2509. var l = m.path[1] + m.query[1] + m.hash[1];
  2510. $.openLink(l);
  2511. },
  2512. });
  2513. $.register({
  2514. rule: {
  2515. host: hosts,
  2516. },
  2517. ready: function () {
  2518. 'use strict';
  2519. $.removeNodes('iframe');
  2520. var jQuery = $.window.$;
  2521. setTimeout(function () {
  2522. jQuery("#captcha-dialog").dialog("open");
  2523. }, 1000);
  2524. },
  2525. });
  2526. })();
  2527. $.register({
  2528. rule: {
  2529. host: /^gkurl\.us$/,
  2530. },
  2531. ready: function () {
  2532. 'use strict';
  2533. var iframe = $('#gkurl-frame');
  2534. $.openLink(iframe.src);
  2535. },
  2536. });
  2537. $.register({
  2538. rule: {
  2539. host: /^u\.go2\.me$/,
  2540. },
  2541. ready: function () {
  2542. 'use strict';
  2543. var iframe = $('iframe');
  2544. $.openLink(iframe.src);
  2545. },
  2546. });
  2547. $.register({
  2548. rule: {
  2549. host: /^goto\.loncat\.in$/,
  2550. query: /open=(.+)/,
  2551. },
  2552. start: function (m) {
  2553. 'use strict';
  2554. var url = atob(atob(m.query[1]));
  2555. $.openLink(url);
  2556. },
  2557. });
  2558. $.register({
  2559. rule: {
  2560. host: [
  2561. /^gsurl\.(me|in)$/,
  2562. /^g5u\.pw$/,
  2563. ],
  2564. },
  2565. ready: function () {
  2566. 'use strict';
  2567. $.removeNodes('#container');
  2568. var a = $('#link');
  2569. _.wait(5000).then(function () {
  2570. $.openLink(a.href);
  2571. });
  2572. },
  2573. });
  2574. $.register({
  2575. rule: {
  2576. host: /^hotshorturl\.com$/,
  2577. },
  2578. ready: function () {
  2579. 'use strict';
  2580. var frame = $('frame[scrolling=yes]');
  2581. $.openLink(frame.src);
  2582. },
  2583. });
  2584. $.register({
  2585. rule: {
  2586. host: /^igg-games\.com?$/,
  2587. query: /\?xurl=([^?]*)$/,
  2588. },
  2589. start: function (m) {
  2590. 'use strict';
  2591. var url = 'http' + decodeURIComponent(m.query[1]);
  2592. $.openLink(url);
  2593. },
  2594. });
  2595. $.register({
  2596. rule: {
  2597. host: /^(www\.)?(ilix\.in|priva\.us)$/,
  2598. path: /\/(\w+)/,
  2599. },
  2600. ready: function (m) {
  2601. 'use strict';
  2602. var realHost = 'ilix.in';
  2603. if (m.host[2] !== realHost) {
  2604. var realURL = location.href.replace(m.host[2], realHost);
  2605. $.openLink(realURL);
  2606. return;
  2607. }
  2608. var f = $.$('iframe[name=ifram]');
  2609. if (f) {
  2610. $.openLink(f.src);
  2611. return;
  2612. }
  2613. if (!$.$('img#captcha')) {
  2614. $('form[name=frm]').submit();
  2615. }
  2616. },
  2617. });
  2618. $.register({
  2619. rule: {
  2620. host: /^ilovebanten\.com$/,
  2621. },
  2622. ready: function () {
  2623. 'use strict';
  2624. var p = $('.notblocked');
  2625. $.openLink(p.textContent);
  2626. },
  2627. });
  2628. $.register({
  2629. rule: {
  2630. host: /^indexmovie\.me$/,
  2631. path: /^\/([^\/]+)$/,
  2632. },
  2633. start: function (m) {
  2634. 'use strict';
  2635. $.openLink('/get/' + m.path[1]);
  2636. },
  2637. });
  2638. $.register({
  2639. rule: {
  2640. host: /^itw\.me$/,
  2641. path: /^\/r\//,
  2642. },
  2643. ready: function () {
  2644. 'use strict';
  2645. var f = $('.go-form');
  2646. f.submit();
  2647. },
  2648. });
  2649. $.register({
  2650. rule: {
  2651. host: /^ity\.im$/,
  2652. },
  2653. ready: function () {
  2654. 'use strict';
  2655. var f = $.$('#main');
  2656. if (f) {
  2657. $.openLink(f.src);
  2658. return;
  2659. }
  2660. f = $.$$('frame').find(function (frame) {
  2661. if (frame.src.indexOf('interheader.php') < 0) {
  2662. return _.none;
  2663. }
  2664. return frame.src;
  2665. });
  2666. if (f) {
  2667. $.openLink(f.payload);
  2668. return;
  2669. }
  2670. f = $.searchScripts(/krypted=([^&]+)/);
  2671. if (!f) {
  2672. throw new _.AdsBypasserError('site changed');
  2673. }
  2674. f = f[1];
  2675. var data = $.window.des('ksnslmtmk0v4Pdviusajqu', $.window.hexToString(f), 0, 0);
  2676. if (data) {
  2677. $.openLink('http://ity.im/1104_21_50846_' + data);
  2678. }
  2679. },
  2680. });
  2681. $.register({
  2682. rule: {
  2683. host: /^(www\.)?kingofshrink\.com$/,
  2684. },
  2685. ready: function () {
  2686. 'use strict';
  2687. var l = $('#textresult > a');
  2688. $.openLink(l.href);
  2689. },
  2690. });
  2691. $.register({
  2692. rule: {
  2693. host: /^st\.kurogaze\.net$/,
  2694. query: /r=(.+)/,
  2695. },
  2696. start: function (m) {
  2697. 'use strict';
  2698. var r = atob(m.query[1]);
  2699. $.openLink(r);
  2700. },
  2701. });
  2702. $.register({
  2703. rule: {
  2704. host: /^st\.kurogaze\.net$/,
  2705. },
  2706. ready: function () {
  2707. 'use strict';
  2708. var a = $('a.redirect');
  2709. $.openLink(a.href);
  2710. },
  2711. });
  2712. $.register({
  2713. rule: {
  2714. host: /^(www\.)?leechbd\.tk$/,
  2715. path: /^\/Shortener\/(\w+)$/,
  2716. },
  2717. start: function (m) {
  2718. 'use strict';
  2719. $.get('/Shortener/API/read/get', {id: m.path[1], type: 'json'}).then(function (text) {
  2720. var r = _.parseJSON(text);
  2721. if (r.success == true && r.data.full) {
  2722. $.openLink(r.data.full);
  2723. } else {
  2724. _.warn('API Error ' + r.error.code + ' : ' + r.error.msg);
  2725. }
  2726. });
  2727. },
  2728. });
  2729. $.register({
  2730. rule: {
  2731. host: /^leechpremium\.space$/,
  2732. path: /^\/\w+$/,
  2733. },
  2734. ready: function () {
  2735. 'use strict';
  2736. var a = $('#btn-main');
  2737. var i = a.href.lastIndexOf('http');
  2738. a = a.href.substr(i);
  2739. $.openLink(a);
  2740. },
  2741. });
  2742. $.register({
  2743. rule: 'http://www.lienscash.com/l/*',
  2744. ready: function () {
  2745. 'use strict';
  2746. var a = $('#redir_btn');
  2747. $.openLink(a.href);
  2748. },
  2749. });
  2750. $.register({
  2751. rule: {
  2752. host: /^(www\.)?\w+\.link-protector\.com$/,
  2753. },
  2754. ready: function (m) {
  2755. 'use strict';
  2756. var f = $('form[style="font-weight:normal;font-size:12;font-family:Verdana;"]');
  2757. $.openLink(f.action);
  2758. },
  2759. });
  2760. $.register({
  2761. rule: {
  2762. host: /^(www\.)?link\.im$/,
  2763. path: /^\/\w+$/,
  2764. },
  2765. start: function () {
  2766. 'use strict';
  2767. $.post(document.location.href, {
  2768. image: 'Continue',
  2769. }).then(function (text) {
  2770. var m = text.match(/window\.location\.replace\('([^']+)'\)/);
  2771. $.openLink(m[1]);
  2772. });
  2773. },
  2774. });
  2775. $.register({
  2776. rule: {
  2777. host: /^link\.tl$/,
  2778. path: /^\/fly\/site\.php$/,
  2779. query: /^\?to=(.+)$/,
  2780. },
  2781. ready: function () {
  2782. 'use strict';
  2783. var a = $('.skip > .btn');
  2784. $.openLink(a.href);
  2785. },
  2786. });
  2787. $.register({
  2788. rule: {
  2789. host: /^link\.tl$/,
  2790. path: /[^^](https?:\/\/.+)$/,
  2791. },
  2792. start: function (m) {
  2793. 'use strict';
  2794. $.openLink(m.path[1]);
  2795. },
  2796. });
  2797. $.register({
  2798. rule: {
  2799. host: /^link\.tl$/,
  2800. path: /^\/(.+)$/,
  2801. },
  2802. start: function (m) {
  2803. 'use strict';
  2804. $.openLink('/fly/site.php?to=' + m.path[1]);
  2805. },
  2806. });
  2807. $.register({
  2808. rule: {
  2809. host: /\.link2dollar\.com$/,
  2810. path: /^\/\d+$/,
  2811. },
  2812. ready: function () {
  2813. 'use strict';
  2814. var m = $.searchScripts(/var rlink = '([^']+)';/);
  2815. if (!m) {
  2816. throw new _.AdsBypasserError('site changed');
  2817. }
  2818. m = m[1];
  2819. $.openLink(m);
  2820. },
  2821. });
  2822. $.register({
  2823. rule: {
  2824. host: /^link2you\.ru$/,
  2825. path: /^\/\d+\/(.+)$/,
  2826. },
  2827. start: function (m) {
  2828. 'use strict';
  2829. var url = m.path[1];
  2830. if (!url.match(/^https?:\/\//)) {
  2831. url = '//' + url;
  2832. }
  2833. $.openLink(url);
  2834. },
  2835. });
  2836. $.register({
  2837. rule: {
  2838. host: /^link(4ad|ajc)\.com$/,
  2839. path: /^\/(.+)$/,
  2840. },
  2841. ready: function (m) {
  2842. 'use strict';
  2843. var d = $('div[id^=module_]');
  2844. d = d.id.match(/module_(\d+)/);
  2845. d = d[1];
  2846. $.post('form.php?block_id=' + d, {
  2847. cmd: 'get_source',
  2848. act: 'waiting',
  2849. id: m.path[1],
  2850. }).then(function (url) {
  2851. $.openLink(url);
  2852. }).catch(function (e) {
  2853. _.warn(e);
  2854. });
  2855. },
  2856. });
  2857. (function () {
  2858. 'use strict';
  2859. function sendRequest (opts) {
  2860. return $.post('/ajax/r.php', opts).then(function (data) {
  2861. if (data.length <= 1) {
  2862. return sendRequest(opts);
  2863. }
  2864. var a = $.toDOM(data);
  2865. a = $('a', a);
  2866. return a.href;
  2867. });
  2868. }
  2869. $.register({
  2870. rule: {
  2871. host: /^link5s\.com$/,
  2872. path: /^\/([^\/]+)$/,
  2873. },
  2874. ready: function (m) {
  2875. $.window.$ = null;
  2876. var i = $('#iframeID');
  2877. var opts = {
  2878. page: m.path[1],
  2879. advID: i.dataset.cmp,
  2880. u: i.dataset.u,
  2881. };
  2882. $.removeNodes('iframe');
  2883. sendRequest(opts).then(function (url) {
  2884. $.openLink(url);
  2885. });
  2886. },
  2887. });
  2888. })();
  2889. $.register({
  2890. rule: {
  2891. host: /^www\.linkarus\.com$/,
  2892. path: /^\/skip\//,
  2893. },
  2894. ready: function () {
  2895. 'use strict';
  2896. $.removeNodes('iframe');
  2897. var m = $.searchScripts(/action="([^"]+)"/);
  2898. m = m[1];
  2899. $.openLink(m);
  2900. },
  2901. });
  2902. $.register({
  2903. rule: {
  2904. host: /^www\.linkarus\.com$/,
  2905. },
  2906. ready: function () {
  2907. 'use strict';
  2908. $.removeNodes('iframe');
  2909. var m = $.searchScripts(/var counter = (\d+);/);
  2910. m = parseInt(m[1], 10);
  2911. m = m * 1000 + 500;
  2912. _.wait(m).then(function () {
  2913. var a = $('#skip-ad');
  2914. $.openLink(a.href);
  2915. });
  2916. },
  2917. });
  2918. (function() {
  2919. function ConvertFromHex (str) {
  2920. var result = [];
  2921. while (str.length >= 2) {
  2922. result.push(String.fromCharCode(parseInt(str.substring(0, 2), 16)));
  2923. str = str.substring(2, str.length);
  2924. }
  2925. return result.join("");
  2926. }
  2927. var Encode = function (str) {
  2928. var s = [], j = 0, x, res = '', k = arguments.callee.toString().replace(/\s+/g, "");
  2929. for (var i = 0; i < 256; i++) {
  2930. s[i] = i;
  2931. }
  2932. for (i = 0; i < 256; i++) {
  2933. j = (j + s[i] + k.charCodeAt(i % k.length)) % 256;
  2934. x = s[i];
  2935. s[i] = s[j];
  2936. s[j] = x;
  2937. }
  2938. i = 0;
  2939. j = 0;
  2940. for (var y = 0; y < str.length; y++) {
  2941. i = (i + 1) % 256;
  2942. j = (j + s[i]) % 256;
  2943. x = s[i];
  2944. s[i] = s[j];
  2945. s[j] = x;
  2946. res += String.fromCharCode(str.charCodeAt(y) ^ s[(s[i] + s[j]) % 256]);
  2947. }
  2948. return res;
  2949. };
  2950. var hostRules = [
  2951. /^(([\w]{8}|www)\.)?(allanalpass|cash4files|drstickyfingers|fapoff|freegaysitepass|(gone|tube)viral|(pic|tna)bucks|whackyvidz|fuestfka)\.com$/,
  2952. /^(([\w]{8}|www)\.)?(a[mn]y|deb|dyo|sexpalace)\.gs$/,
  2953. /^(([\w]{8}|www)\.)?(filesonthe|poontown|seriousdeals|ultrafiles|urlbeat|zatnawqy|zytpirwai)\.net$/,
  2954. /^(([\w]{8}|www)\.)?freean\.us$/,
  2955. /^(([\w]{8}|www)\.)?galleries\.bz$/,
  2956. /^(([\w]{8}|www)\.)?hornywood\.tv$/,
  2957. /^(([\w]{8}|www)\.)?link(babes|bucks)\.com$/,
  2958. /^(([\w]{8}|www)\.)?(megaline|miniurls|qqc|rqq|tinylinks|yyv|zff)\.co$/,
  2959. /^(([\w]{8}|www)\.)?(these(blog|forum)s)\.com$/,
  2960. /^(([\w]{8}|www)\.)?youfap\.me$/,
  2961. /^warning-this-linkcode-will-cease-working-soon\.www\.linkbucksdns\.com$/,
  2962. ];
  2963. (function () {
  2964. 'use strict';
  2965. function findToken (context) {
  2966. var script = $.searchScripts(' var f = window[\'init\' + \'Lb\' + \'js\' + \'\']', context);
  2967. if (!script) {
  2968. _.warn('pattern changed');
  2969. return null;
  2970. }
  2971. var adurl = script.match(/AdUrl\s*:\s*'([^']+)'/);
  2972. if (!adurl) {
  2973. return null;
  2974. }
  2975. adurl = adurl[1];
  2976. var m1 = script.match(/AdPopUrl\s*:\s*'.+\?[^=]+=([\w\d]+)'/);
  2977. var m2 = script.match(/Token\s*:\s*'([\w\d]+)'/);
  2978. var token = m1[1] || m2[1];
  2979. var m = script.match(/=\s*(\d+);/);
  2980. var ak = parseInt(m[1], 10);
  2981. var re = /\+\s*(\d+);/g;
  2982. var tmp = null;
  2983. while((m = re.exec(script)) !== null) {
  2984. tmp = m[1];
  2985. }
  2986. ak += parseInt(tmp, 10);
  2987. return {
  2988. t: token,
  2989. aK: ak,
  2990. adurl: adurl,
  2991. };
  2992. }
  2993. function sendRequest (token) {
  2994. $.get(token.adurl);
  2995. delete token.adurl;
  2996. token.a_b = false;
  2997. _.info('waiting the interval');
  2998. return _.wait(5000).then(function () {
  2999. _.info('sending token: %o', token);
  3000. return $.get('/intermission/loadTargetUrl', token, {
  3001. 'X-Requested-With': _.none,
  3002. Origin: _.none,
  3003. });
  3004. }).then(function (text) {
  3005. var data = _.parseJSON(text);
  3006. _.info('response: %o', data);
  3007. if (!data.Success && data.Errors[0] === 'Invalid token') {
  3008. _.warn('got invalid token');
  3009. return retry();
  3010. }
  3011. if (data.AdBlockSpotted) {
  3012. _.warn('adblock spotted');
  3013. return;
  3014. }
  3015. if (data.Success && !data.AdBlockSpotted && data.Url) {
  3016. return data.Url;
  3017. }
  3018. });
  3019. }
  3020. function retry () {
  3021. return $.get(window.location.toString(), {}, {
  3022. 'X-Forwarded-For': $.generateRandomIP(),
  3023. }).then(function (text) {
  3024. var d = $.toDOM(text);
  3025. var t = findToken(d);
  3026. if (!t) {
  3027. return _.wait(1000).then(retry);
  3028. }
  3029. return sendRequest(t);
  3030. });
  3031. }
  3032. $.register({
  3033. rule: {
  3034. host: hostRules,
  3035. path: /^\/\w+\/url\/(.+)$/,
  3036. },
  3037. ready: function(m) {
  3038. $.removeAllTimer();
  3039. $.resetCookies();
  3040. $.removeNodes('iframe');
  3041. var url = m.path[1] + window.location.search;
  3042. var match = $.searchScripts(/UrlEncoded: ([^,]+)/);
  3043. if (match && match[1] === 'true') {
  3044. url = Encode(ConvertFromHex(url));
  3045. }
  3046. $.openLink(url);
  3047. }
  3048. });
  3049. $.register({
  3050. rule: {
  3051. host: hostRules,
  3052. },
  3053. start: function () {
  3054. $.window.XMLHttpRequest = _.nop;
  3055. },
  3056. ready: function () {
  3057. $.removeAllTimer();
  3058. $.resetCookies();
  3059. $.removeNodes('iframe');
  3060. if (window.location.pathname.indexOf('verify') >= 0) {
  3061. var path = window.location.pathname.replace('/verify', '');
  3062. $.openLink(path);
  3063. return;
  3064. }
  3065. var token = findToken(document);
  3066. sendRequest(token).then(function (url) {
  3067. $.nuke(url);
  3068. $.openLink(url);
  3069. });
  3070. },
  3071. });
  3072. $.register({
  3073. rule: {
  3074. query: /^(.*)[?&]_lbGate=\d+$/,
  3075. },
  3076. start: function (m) {
  3077. $.setCookie('_lbGatePassed', 'true');
  3078. $.openLink(window.location.pathname + m.query[1]);
  3079. },
  3080. });
  3081. })();
  3082. })();
  3083. $.register({
  3084. rule: {
  3085. host: [
  3086. /^www\.linkdecode\.com$/,
  3087. /^www\.fastdecode\.com$/,
  3088. ],
  3089. path: /^\/$/,
  3090. query: /^\?(.+)$/,
  3091. },
  3092. ready: function (m) {
  3093. 'use strict';
  3094. $.removeNodes('iframe');
  3095. var lnk = m.query[1];
  3096. if (m.query[1].match(/^https?:\/\//)) {
  3097. $.openLink(lnk);
  3098. return;
  3099. }
  3100. var b = $.$('#popup');
  3101. if (b && b.href) {
  3102. $.openLink(b.href);
  3103. return;
  3104. }
  3105. b = $('#m > .Visit_Link');
  3106. b = b.onclick.toString().match(/window\.open\(\'([^']+)\'/);
  3107. if (!b) {
  3108. throw new _.AdsBypasser('pattern changed');
  3109. }
  3110. lnk = b[1].match(/\?(https?:\/\/.*)$/);
  3111. if (lnk) {
  3112. $.openLink(lnk[1]);
  3113. return;
  3114. }
  3115. $.openLink(b[1]);
  3116. },
  3117. });
  3118. $.register({
  3119. rule: {
  3120. host: /^linkdolar\.xyz$/,
  3121. },
  3122. ready: function () {
  3123. 'use strict';
  3124. $.removeNodes('iframe');
  3125. var s = $.searchScripts(/^\s*eval\((.+)\)\s*$/);
  3126. if (!s) {
  3127. _.warn('site changed');
  3128. return;
  3129. }
  3130. s = eval('(' + s[1] + ')');
  3131. s = s.match(/\$\.post\('([^']+)',(\{.+\}),function/);
  3132. if (!s) {
  3133. _.warn('site changed');
  3134. }
  3135. var url = s[1];
  3136. var args = eval('(' + s[2] + ')');
  3137. $.post(url, args).then(function (target) {
  3138. $.openLink(target);
  3139. });
  3140. },
  3141. });
  3142. (function () {
  3143. 'use strict';
  3144. $.register({
  3145. rule: {
  3146. host: [
  3147. /^(www\.)?linkdrop\.net$/,
  3148. /^dmus\.in$/,
  3149. /^ulshare\.net$/,
  3150. /^adurl\.id$/,
  3151. /^goolink\.me$/,
  3152. ],
  3153. },
  3154. ready: function () {
  3155. $.removeNodes('iframe');
  3156. var f = getForm();
  3157. if (!f) {
  3158. return;
  3159. }
  3160. sendRequest(f);
  3161. },
  3162. });
  3163. $.register({
  3164. rule: {
  3165. host: /^sflnk\.me$/,
  3166. },
  3167. ready: function () {
  3168. $.removeNodes('iframe');
  3169. var f = getForm();
  3170. if (!f) {
  3171. f = $('#link-view');
  3172. f.submit();
  3173. return;
  3174. }
  3175. sendRequest(f);
  3176. },
  3177. });
  3178. function getForm () {
  3179. var jQuery = $.window.$;
  3180. var f = jQuery('form[action="/links/go"], form[action="/links/linkdropgo"]');
  3181. if (f.length > 0) {
  3182. return f;
  3183. }
  3184. return null;
  3185. }
  3186. function sendRequest (f) {
  3187. var jQuery = $.window.$;
  3188. jQuery.ajax({
  3189. dataType: 'json',
  3190. type: 'POST',
  3191. url: f.attr('action'),
  3192. data: f.serialize(),
  3193. success: function (result, status, xhr) {
  3194. if (result.url) {
  3195. $.openLink(result.url);
  3196. } else {
  3197. _.warn(result.message);
  3198. }
  3199. },
  3200. error: function (xhr, status, error) {
  3201. _.warn(xhr, status, error);
  3202. },
  3203. });
  3204. }
  3205. })();
  3206. $.register({
  3207. rule: {
  3208. host: /^linkpaid\.net$/,
  3209. path: /^\/go\//,
  3210. },
  3211. ready: function () {
  3212. 'use strict';
  3213. var f = $('#btn-main');
  3214. f.click();
  3215. },
  3216. });
  3217. $.register({
  3218. rule: {
  3219. host: /^(www\.)?linkplugapp\.com$/,
  3220. },
  3221. ready: function () {
  3222. 'use strict'
  3223. var a = $('#mc_embed_signup_scroll a')
  3224. $.openLink(a.href)
  3225. },
  3226. })
  3227. $.register({
  3228. rule: {
  3229. host: /^linksas\.us$/,
  3230. path: /^(\/\w+)$/,
  3231. },
  3232. ready: function (m) {
  3233. 'use strict';
  3234. _.try(1000, function () {
  3235. var recaptcha = $('#g-recaptcha-response');
  3236. if (!recaptcha) {
  3237. return null;
  3238. }
  3239. if (!recaptcha.value) {
  3240. return _.none;
  3241. }
  3242. return recaptcha.value;
  3243. }).then(function (recaptcha) {
  3244. var url = _.T('http://ipinfo.io/{0}/json')($.generateRandomIP());
  3245. return $.get(url).then(function (ipinfo) {
  3246. ipinfo = _.parseJSON(ipinfo);
  3247. return {
  3248. codeAds: 1,
  3249. country: ipinfo.country,
  3250. ipAddress: ipinfo.ip,
  3251. recaptcha: recaptcha,
  3252. };
  3253. });
  3254. }).then(function (payload) {
  3255. var token = $.getCookie('XSRF-TOKEN');
  3256. return $.post('/go' + m.path[1], payload, {
  3257. 'Content-Type': 'application/json',
  3258. 'X-XSRF-TOKEN': token,
  3259. });
  3260. }).then(function (data) {
  3261. data = _.parseJSON(data);
  3262. $.openLink(data.message);
  3263. }).catch(function (e) {
  3264. _.warn(e);
  3265. });
  3266. },
  3267. });
  3268. $.register({
  3269. rule: {
  3270. host: /^linksas\.us$/,
  3271. path: /^\/go\//,
  3272. },
  3273. ready: function () {
  3274. 'use strict';
  3275. var a = $.$('#btnSubmit');
  3276. if (!a) {
  3277. return;
  3278. }
  3279. var url = a.href;
  3280. var pattern = /https?:\/\//g;
  3281. var lastURL = '';
  3282. while (true) {
  3283. var matched = pattern.exec(url);
  3284. if (!matched) {
  3285. break;
  3286. }
  3287. lastURL = matched + url.substring(pattern.lastIndex);
  3288. }
  3289. $.openLink(lastURL);
  3290. },
  3291. });
  3292. $.register({
  3293. rule: {
  3294. host: /^linkshrink\.net$/,
  3295. path: /^\/[a-zA-Z0-9]+$/,
  3296. },
  3297. start: function () {
  3298. 'use strict';
  3299. $.window._impspcabe = 0;
  3300. },
  3301. ready: function () {
  3302. 'use strict';
  3303. var l = $('#skip .bt');
  3304. $.openLink(l.href);
  3305. },
  3306. });
  3307. $.register({
  3308. rule: {
  3309. host: /^linkshrink\.net$/,
  3310. path: /=(.+)$/,
  3311. },
  3312. start: function (m) {
  3313. 'use strict';
  3314. $.openLink(m.path[1]);
  3315. },
  3316. });
  3317. $.register({
  3318. rule: 'http://lix.in/-*',
  3319. ready: function () {
  3320. 'use strict';
  3321. var i = $.$('#ibdc');
  3322. if (i) {
  3323. return;
  3324. }
  3325. i = $.$('form');
  3326. if (i) {
  3327. i.submit();
  3328. return;
  3329. }
  3330. i = $('iframe');
  3331. $.openLink(i.src);
  3332. },
  3333. });
  3334. $.register({
  3335. rule: {
  3336. host: /^lnk\.in$/,
  3337. },
  3338. ready: function () {
  3339. 'use strict';
  3340. var a = $('#divRedirectText a');
  3341. $.openLink(a.innerHTML);
  3342. },
  3343. });
  3344. $.register({
  3345. rule: {
  3346. host: /^(rd?)lnk\.co|reducelnk\.com$/,
  3347. path: /^\/[^.]+$/,
  3348. },
  3349. ready: function () {
  3350. 'use strict';
  3351. var f = $.$('iframe#dest');
  3352. if (f) {
  3353. $.openLink(f.src);
  3354. return;
  3355. }
  3356. $.removeNodes('iframe');
  3357. var o = $.$('#urlholder');
  3358. if (o) {
  3359. $.openLink(o.value);
  3360. return;
  3361. }
  3362. o = $.$('#skipBtn');
  3363. if (o) {
  3364. o = o.querySelector('a');
  3365. $.openLink(o.href);
  3366. return;
  3367. }
  3368. o = document.title.replace(/(LNK.co|Linkbee)\s*:\s*/, '');
  3369. $.openLink(o);
  3370. },
  3371. });
  3372. $.register({
  3373. rule: {
  3374. host: /^lnx\.lu|url\.fm|z\.gs$/,
  3375. },
  3376. ready: function () {
  3377. 'use strict';
  3378. var a = $('#clickbtn a');
  3379. $.openLink(a.href);
  3380. },
  3381. });
  3382. $.register({
  3383. rule: {
  3384. host: /^www\.lolinez\.com$/,
  3385. query: /\?(.+)/,
  3386. },
  3387. start: function (m) {
  3388. 'use strict';
  3389. $.openLink(m.query[1]);
  3390. },
  3391. });
  3392. $.register({
  3393. rule: {
  3394. host: /^(www\.)?loook\.ga$/,
  3395. path: /^\/\d+$/
  3396. },
  3397. ready: function (m) {
  3398. 'use strict';
  3399. var a = $('#download_link > a.btn');
  3400. $.openLink(a.href);
  3401. },
  3402. });
  3403. $.register({
  3404. rule: {
  3405. host: /^looy\.in$/,
  3406. path: /^\/Pro\/(.+)$/,
  3407. },
  3408. ready: function (m) {
  3409. 'use strict';
  3410. $.post('http://looy.in/Go/Index/ProSkipAd', {
  3411. code: m.path[1],
  3412. server: '',
  3413. }).then(function (url) {
  3414. $.openLink(url);
  3415. }).catch(function (e) {
  3416. _.warn(e);
  3417. });
  3418. },
  3419. });
  3420. $.register({
  3421. rule: {
  3422. host: /^looy\.in$/,
  3423. path: /^\/(.+)$/,
  3424. },
  3425. start: function (m) {
  3426. 'use strict';
  3427. $.openLink('/Pro/' + m.path[1]);
  3428. },
  3429. });
  3430. $.register({
  3431. rule: [
  3432. 'http://madlink.sk/',
  3433. 'http://madlink.sk/*.html',
  3434. ],
  3435. });
  3436. $.register({
  3437. rule: 'http://madlink.sk/*',
  3438. start: function (m) {
  3439. 'use strict';
  3440. $.removeNodes('iframe');
  3441. $.post('/ajax/check_redirect.php', {
  3442. link: m[1],
  3443. }).then(function (text) {
  3444. $.openLink(text);
  3445. });
  3446. },
  3447. });
  3448. $.register({
  3449. rule: {
  3450. host: [
  3451. /^mant[ae][pb]\.in$/,
  3452. /^st\.oploverz\.net$/,
  3453. /^minidroid\.net$/,
  3454. /^ww3\.awaremmxv\.com$/,
  3455. /^linkpoi\.in$/,
  3456. ],
  3457. },
  3458. ready: function () {
  3459. 'use strict';
  3460. var a = $('a.redirect, a[target=_blank][rel=nofollow]');
  3461. $.openLink(a.href);
  3462. },
  3463. });
  3464. $.register({
  3465. rule: {
  3466. host: /^susutin\.com$/,
  3467. },
  3468. ready: function () {
  3469. 'use strict';
  3470. var s = $.searchScripts(/="([^"]+)",/);
  3471. $.openLink(s[1]);
  3472. },
  3473. });
  3474. $.register({
  3475. rule: {
  3476. host: /^www\.mije\.net$/,
  3477. path: /^\/\w+\/(.+)$/,
  3478. },
  3479. start: function (m) {
  3480. 'use strict';
  3481. var url = atob(m.path[1]);
  3482. $.openLink(url);
  3483. },
  3484. });
  3485. $.register({
  3486. rule: {
  3487. host: /^mirrorfilehost\.com$/,
  3488. },
  3489. ready: function () {
  3490. 'use strict';
  3491. _.wait(3 * 1000).then(function () {
  3492. var frame = frames[0];
  3493. var form = frame.document.createElement('form');
  3494. form.target = '_parent';
  3495. form.action = location.toString();
  3496. var input = frame.document.createElement('input');
  3497. input.value = 'Download';
  3498. input.type = 'submit';
  3499. form.appendChild(input);
  3500. frame.document.body.appendChild(form);
  3501. input.click();
  3502. });
  3503. },
  3504. });
  3505. $.register({
  3506. rule: {
  3507. host: [
  3508. /^moe\.god\.jp$/,
  3509. /^moesubs\.akurapopo\.pro$/,
  3510. /^dl\.nsfk\.in$/,
  3511. ]
  3512. },
  3513. ready: function () {
  3514. 'use strict';
  3515. var a = $('div div center a');
  3516. $.openLink(a.href);
  3517. },
  3518. });
  3519. $.register({
  3520. rule: {
  3521. host: /^moesubs\.com$/,
  3522. path: /^\/url\//,
  3523. },
  3524. ready: function () {
  3525. 'use strict';
  3526. var a = $('body > div:nth-child(4) > i:nth-child(1)');
  3527. a = a.textContent;
  3528. var i = a.lastIndexOf('http');
  3529. a = a.substr(i);
  3530. $.openLink(a);
  3531. },
  3532. });
  3533. $.register({
  3534. rule: {
  3535. host: /^mt0\.org$/,
  3536. path: /^\/[^\/]+\/$/,
  3537. },
  3538. ready: function () {
  3539. 'use strict';
  3540. $.removeNodes('frame[name=bottom]');
  3541. var f = $('frame[name=top]');
  3542. var i = setInterval(function () {
  3543. var a = $.$('div a', f.contentDocument);
  3544. if (!a) {
  3545. return;
  3546. }
  3547. clearInterval(i);
  3548. $.openLink(a.href)
  3549. }, 1000);
  3550. },
  3551. });
  3552. $.register({
  3553. rule: 'http://my-link.pro/*',
  3554. ready: function () {
  3555. 'use strict';
  3556. var i = $('iframe[scrolling=auto]');
  3557. if (i) {
  3558. $.openLink(i.src);
  3559. }
  3560. },
  3561. });
  3562. $.register({
  3563. rule: {
  3564. host: /^nmac\.to$/,
  3565. path: /^\/download\/(.+)/,
  3566. },
  3567. start: function (m) {
  3568. 'use strict';
  3569. var url = atob(m.path[1]);
  3570. $.openLink(url);
  3571. },
  3572. });
  3573. $.register({
  3574. rule: {
  3575. host: /^nsfw\.in$/,
  3576. },
  3577. ready: function () {
  3578. 'use strict';
  3579. var a = $('#long_url a');
  3580. $.openLink(a.href);
  3581. },
  3582. });
  3583. $.register({
  3584. rule: {
  3585. host: /^nutshellurl\.com$/,
  3586. },
  3587. ready: function () {
  3588. 'use strict';
  3589. var iframe = $('iframe');
  3590. $.openLink(iframe.src);
  3591. },
  3592. });
  3593. $.register({
  3594. rule: {
  3595. host: /^(www\.)?ohleech\.com$/,
  3596. path: /^\/dl\/$/,
  3597. },
  3598. ready: function () {
  3599. 'use strict';
  3600. $.window.startdl();
  3601. },
  3602. });
  3603. $.register({
  3604. rule: {
  3605. host: /^www\.oni\.vn$/,
  3606. },
  3607. ready: function () {
  3608. 'use strict';
  3609. $.removeNodes('iframe');
  3610. var data = $.searchScripts(/data:"([^"]+)"/);
  3611. if (!data) {
  3612. throw new _.AdsBypasserError('pattern changed');
  3613. }
  3614. data = data[1];
  3615. $.get('/click.html', data).then(function (url) {
  3616. $.openLink(url);
  3617. });
  3618. },
  3619. });
  3620. $.register({
  3621. rule: {
  3622. host: /^(www\.)?ouo\.(io|press)$/,
  3623. path: /^\/go\/\w+$/,
  3624. },
  3625. ready: function (m) {
  3626. 'use strict';
  3627. $('form').submit();
  3628. },
  3629. });
  3630. $.register({
  3631. rule: {
  3632. host: /^oxyl\.me$/,
  3633. },
  3634. ready: function () {
  3635. 'use strict';
  3636. var l = $.$$('.links-container.result-form > a.result-a');
  3637. if (l.size() > 1) {
  3638. return;
  3639. }
  3640. $.openLink(l.at(0).href);
  3641. },
  3642. });
  3643. $.register({
  3644. rule: {
  3645. host: /^p\.pw$/,
  3646. },
  3647. ready: function () {
  3648. 'use strict';
  3649. $.removeNodes('iframe');
  3650. var m = $.searchScripts(/window\.location = "(.*)";/);
  3651. m = m[1];
  3652. $.openLink(m);
  3653. },
  3654. });
  3655. $.register({
  3656. rule: {
  3657. host: /^pdi2\.net$/,
  3658. },
  3659. ready: function () {
  3660. 'use strict';
  3661. var s = $.searchScripts(/top\.location = '([^']+)'/);
  3662. s = s[1];
  3663. $.openLink(s);
  3664. },
  3665. });
  3666. $.register({
  3667. rule: {
  3668. host: /^(www\.)?\w+\.rapeit\.net$/,
  3669. path: /^\/(go|prepair|request|collect|analyze)\/[a-f0-9]+$/,
  3670. },
  3671. ready: function (m) {
  3672. 'use strict';
  3673. var a = $('a#download_link');
  3674. $.openLink(a.href);
  3675. },
  3676. });
  3677. $.register({
  3678. rule: 'http://reffbux.com/refflinx/view/*',
  3679. ready: function () {
  3680. 'use strict';
  3681. $.removeNodes('iframe');
  3682. var m = $.searchScripts(/skip_this_ad_(\d+)_(\d+)/);
  3683. var id = m[1];
  3684. var share = m[2];
  3685. var location = window.location.toString();
  3686. $.post('http://reffbux.com/refflinx/register', {
  3687. id: id,
  3688. share: share,
  3689. fp: 0,
  3690. location: location,
  3691. referer: '',
  3692. }).then(function (text) {
  3693. var m = text.match(/'([^']+)'/);
  3694. if (!m) {
  3695. throw new _.AdsBypasserError('pattern changed');
  3696. }
  3697. $.openLink(m[1]);
  3698. });
  3699. },
  3700. });
  3701. $.register({
  3702. rule: 'http://richlink.com/app/webscr?cmd=_click&key=*',
  3703. ready: function () {
  3704. 'use strict';
  3705. var f = $('frameset');
  3706. f = f.onload.toString();
  3707. f = f.match(/url=([^&]+)/);
  3708. if (f) {
  3709. f = decodeURIComponent(f[1]);
  3710. } else {
  3711. f = $('frame[name=site]');
  3712. f = f.src;
  3713. }
  3714. $.openLink(f);
  3715. },
  3716. });
  3717. $.register({
  3718. rule: 'http://rijaliti.info/*.php',
  3719. ready: function () {
  3720. 'use strict';
  3721. var a = $('#main td[align="center"] a');
  3722. $.openLink(a.href);
  3723. },
  3724. });
  3725. $.register({
  3726. rule: {
  3727. host: /^riurl\.com$/,
  3728. path: /^\/.+/,
  3729. },
  3730. ready: function () {
  3731. 'use strict';
  3732. var s = $.$('body script');
  3733. if (s) {
  3734. s = s.innerHTML.indexOf('window.location.replace');
  3735. if (s >= 0) {
  3736. return;
  3737. }
  3738. }
  3739. $.openLink('', {
  3740. path: {
  3741. hidden: '1',
  3742. image: ' ',
  3743. },
  3744. });
  3745. },
  3746. });
  3747. $.register({
  3748. rule: {
  3749. host: /^preview\.rlu\.ru$/,
  3750. },
  3751. ready: function () {
  3752. 'use strict';
  3753. var a = $('#content > .long_url > a');
  3754. $.openLink(a.href);
  3755. },
  3756. });
  3757. $.register({
  3758. rule: {
  3759. host: /^robo\.us$/,
  3760. },
  3761. ready: function () {
  3762. 'use strict';
  3763. $.removeNodes('iframe');
  3764. var url = atob($.window.fl);
  3765. $.openLink(url);
  3766. },
  3767. });
  3768. $.register({
  3769. rule: {
  3770. host: /^www\.ron\.vn$/,
  3771. },
  3772. ready: function () {
  3773. 'use strict';
  3774. var script = $.searchScripts('linknexttop');
  3775. var data = script.match(/data:"([^"]+)"/);
  3776. var url = $.window.domain + 'click.html?' + data[1];
  3777. $.get(url, {}, {
  3778. 'Content-Type': 'application/json; charset=utf-8',
  3779. }).then(function (url) {
  3780. $.openLink(url);
  3781. });
  3782. },
  3783. });
  3784. $.register({
  3785. rule: {
  3786. host: /^(www\.)?sa\.ae$/,
  3787. path: /^\/\w+\/$/,
  3788. },
  3789. ready: function () {
  3790. 'use strict';
  3791. var m = $.searchScripts(/var real_link = '([^']+)';/);
  3792. $.openLink(m[1]);
  3793. },
  3794. });
  3795. $.register({
  3796. rule: {
  3797. host: /^(www\.)?safeurl\.eu$/,
  3798. path: /\/\w+/,
  3799. },
  3800. ready: function () {
  3801. 'use strict';
  3802. var directUrl = $.searchScripts(/window\.open\("([^"]+)"\);/);
  3803. if (!directUrl) {
  3804. throw new _.AdsBypasserError('script content changed');
  3805. }
  3806. directUrl = directUrl[1];
  3807. $.openLink(directUrl);
  3808. },
  3809. });
  3810. $.register({
  3811. rule: {
  3812. host: [
  3813. /^segmentnext\.com$/,
  3814. /^(www\.)?videogamesblogger.com$/,
  3815. ],
  3816. path: /^\/interstitial\.html$/,
  3817. query: /return_url=([^&]+)/,
  3818. },
  3819. start: function (m) {
  3820. 'use strict';
  3821. $.openLink(decodeURIComponent(m.query[1]));
  3822. },
  3823. });
  3824. $.register({
  3825. rule: {
  3826. host: /^(www\.)?(apploadz\.ru|seomafia\.net)$/
  3827. },
  3828. ready: function () {
  3829. 'use strict';
  3830. $.removeNodes('iframe');
  3831. var a = $('table a');
  3832. $.openLink(a.href);
  3833. },
  3834. });
  3835. $.register({
  3836. rule: /http:\/\/setlinks\.us\/(p|t|d).*/,
  3837. ready: function () {
  3838. 'use strict';
  3839. var k = $.searchScripts(/window\.location='([^']+)'/);
  3840. if (k) {
  3841. $.openLink(k[1]);
  3842. return;
  3843. }
  3844. var aLinks = $.$$('div.links-container.result-form:not(.p-links-container) > span.dlinks > a');
  3845. if (aLinks.size() === 1) {
  3846. $.openLink(aLinks.at(0).href);
  3847. return;
  3848. }
  3849. k = $('img[alt=captcha]');
  3850. $.captcha(k.src, function (a) {
  3851. var b = $('#captcha');
  3852. var c = $('input[name=Submit]');
  3853. b.value = a;
  3854. c.click();
  3855. });
  3856. },
  3857. });
  3858. (function () {
  3859. 'use strict';
  3860. function afterGotSessionId (sessionId) {
  3861. var X_NewRelic_ID = $.searchScripts(/xpid:"([^"]+)"/);
  3862. var data = {
  3863. adSessionId: sessionId,
  3864. };
  3865. var header = {
  3866. Accept: 'application/json, text/javascript',
  3867. };
  3868. if (X_NewRelic_ID) {
  3869. header['X-NewRelic-ID'] = X_NewRelic_ID;
  3870. }
  3871. var i = setInterval(function () {
  3872. $.get('/shortest-url/end-adsession', data, header).then(function (text) {
  3873. var r = _.parseJSON(text);
  3874. if (r.status == "ok" && r.destinationUrl) {
  3875. clearInterval(i);
  3876. $.removeAllTimer();
  3877. var url = decodeURIComponent(r.destinationUrl);
  3878. $.openLink(url);
  3879. }
  3880. });
  3881. }, 1000);
  3882. }
  3883. var hostRules = [
  3884. /^sh\.st$/,
  3885. /^(dh10thbvu|u2ks|jnw0|qaafa|xiw34|cllkme)\.com$/,
  3886. /^digg\.to$/,
  3887. /^([vw]iid|clkme)\.me$/,
  3888. /^short\.est$/,
  3889. ];
  3890. $.register({
  3891. rule: {
  3892. host: hostRules,
  3893. path: /^\/freeze\/.+/,
  3894. },
  3895. ready: function () {
  3896. var o = new MutationObserver(function (mutations) {
  3897. mutations.forEach(function (mutation) {
  3898. if (mutation.target.getAttribute('class').match(/active/)) {
  3899. o.disconnect();
  3900. $.openLink(mutation.target.href);
  3901. }
  3902. });
  3903. });
  3904. o.observe($('#skip_button'), {
  3905. attributes: true,
  3906. attributeFilter: ['class'],
  3907. });
  3908. },
  3909. });
  3910. $.register({
  3911. rule: {
  3912. host: hostRules,
  3913. path: /https?:\/\//,
  3914. },
  3915. start: function () {
  3916. var url = window.location.pathname + window.location.search + window.location.hash;
  3917. url = url.match(/(https?:\/\/.*)$/);
  3918. url = url[1];
  3919. $.openLink(url);
  3920. },
  3921. });
  3922. $.register({
  3923. rule: {
  3924. host: hostRules,
  3925. path: /^\/[\d\w]+/,
  3926. },
  3927. start: function () {
  3928. $.window._impspcabe = 0;
  3929. },
  3930. ready: function () {
  3931. $.removeNodes('iframe');
  3932. $.removeAllTimer();
  3933. var m = $.searchScripts(/sessionId: "([\d\w]+)",/);
  3934. if (m) {
  3935. afterGotSessionId(m[1]);
  3936. return;
  3937. }
  3938. var o = new MutationObserver(function (mutations) {
  3939. mutations.forEach(function (mutation) {
  3940. var m = $.searchScripts(/sessionId: "([\d\w]+)",/);
  3941. if (m) {
  3942. o.disconnect();
  3943. afterGotSessionId(m[1]);
  3944. }
  3945. });
  3946. });
  3947. o.observe(document.body, {
  3948. childList: true,
  3949. });
  3950. },
  3951. });
  3952. })();
  3953. $.register({
  3954. rule: {
  3955. host: [
  3956. /^(www\.)?shink\.in$/,
  3957. /^fas\.li$/,
  3958. /^(www\.)?croco\.(me|site)$/,
  3959. /^cpmlink\.net$/,
  3960. ],
  3961. path: /^\/\w+$/,
  3962. },
  3963. ready: function () {
  3964. 'use strict';
  3965. var f = $('#skip');
  3966. if (!$.$('#captcha')) {
  3967. f.submit();
  3968. return;
  3969. }
  3970. var o = new MutationObserver(function (mutations) {
  3971. mutations.forEach(function (mutation) {
  3972. mutation.addedNodes.forEach(function (node) {
  3973. if (node.localName === 'div') {
  3974. if (node.style.zIndex === '2147483647') {
  3975. node.parentNode.removeChild(node);
  3976. return;
  3977. }
  3978. }
  3979. });
  3980. });
  3981. });
  3982. o.observe(document.body, {
  3983. childList: true,
  3984. subtree: true,
  3985. });
  3986. },
  3987. });
  3988. $.register({
  3989. rule: [
  3990. {
  3991. host: [
  3992. /^(www\.)?shink\.in$/,
  3993. /^fas\.li$/,
  3994. /^cpmlink\.net$/,
  3995. ],
  3996. path: /^\/go\/\w+$/,
  3997. },
  3998. {
  3999. host: /^(www\.)?croco\.(me|site)$/,
  4000. path: /^\/ok\/\w+$/,
  4001. },
  4002. ],
  4003. ready: function () {
  4004. 'use strict';
  4005. var a = $('#btn-main');
  4006. var i = a.href.lastIndexOf('http');
  4007. a = a.href.substr(i);
  4008. $.openLink(a);
  4009. },
  4010. });
  4011. $.register({
  4012. rule: {
  4013. host: /^short.am$/,
  4014. },
  4015. ready: function () {
  4016. 'use strict';
  4017. _.wait(5000).then(function () {
  4018. $.openLink('', {
  4019. post: {
  4020. image: 'Continue',
  4021. },
  4022. });
  4023. });
  4024. },
  4025. });
  4026. $.register({
  4027. rule: {
  4028. host: [
  4029. /^(www\.)?shortenurl\.tk$/,
  4030. /^(www\.)?pengaman\.link$/,
  4031. /^urlgo\.gs$/,
  4032. /^gunting\.web\.id$/,
  4033. ],
  4034. path: /^\/\w+$/,
  4035. },
  4036. ready: function (m) {
  4037. 'use strict';
  4038. var l = $('a.btn-block.redirect');
  4039. $.openLink(l.href);
  4040. },
  4041. });
  4042. $.register({
  4043. rule: {
  4044. host: /^(www\.)?shorti\.ga$/,
  4045. path: [
  4046. /^\/\w+$/,
  4047. /^\/url_redirector\.html$/,
  4048. ],
  4049. },
  4050. ready: function () {
  4051. 'use strict';
  4052. var f = $.$$('frame');
  4053. var fl = f.find(function(value, key, self) {
  4054. if (value.getAttribute('class')) {
  4055. return _.none;
  4056. }
  4057. return 'Target frame found';
  4058. });
  4059. $.openLink(fl.value.src);
  4060. },
  4061. });
  4062. $.register({
  4063. rule: {
  4064. host: /^www\.shortskip\.com$/,
  4065. path: /^\/short\.php$/,
  4066. query: /i=([^&]+)/,
  4067. },
  4068. start: function (m) {
  4069. 'use strict';
  4070. var url = decodeURIComponent(m.query[1]);
  4071. $.openLink(url);
  4072. },
  4073. });
  4074. $.register({
  4075. rule: {
  4076. host: /^get\.shrink-service\.it$/,
  4077. path: /^\/(.+)/,
  4078. },
  4079. start: function (m) {
  4080. 'use strict';
  4081. var url = _.T('//www.shrink-service.it/shrinked/{0}');
  4082. $.openLink(url(m.path[1]));
  4083. },
  4084. });
  4085. $.register({
  4086. rule: {
  4087. host: /^www\.shrink-service\.it$/,
  4088. path: /^\/shrinked\//,
  4089. },
  4090. ready: function () {
  4091. 'use strict';
  4092. var i = $('input[id][name]');
  4093. $.openLink(i.value);
  4094. },
  4095. });
  4096. $.register({
  4097. rule: {
  4098. host: /^www\.shrink-service\.it$/,
  4099. path: /^\/s\//,
  4100. },
  4101. ready: function () {
  4102. 'use strict';
  4103. $.removeNodes('iframe');
  4104. var i = $('body > input[id][name]');
  4105. $.openLink(i.value);
  4106. },
  4107. });
  4108. $.register({
  4109. rule: {
  4110. host: /^sht\.io$/,
  4111. path: /^\/\d+\/(.+)$/,
  4112. },
  4113. start: function (m) {
  4114. 'use strict';
  4115. var url = atob(m.path[1]);
  4116. url = url.match(/\{sht-io\}(.+)\{sht-io\}.*\{sht-io\}/);
  4117. $.openLink(url[1]);
  4118. },
  4119. });
  4120. $.register({
  4121. rule: {
  4122. host: /^(www\.)?similarsites\.com$/,
  4123. path: /^\/goto\/([^?]+)/
  4124. },
  4125. start: function (m) {
  4126. 'use strict';
  4127. var l = m.path[1];
  4128. if (!/^https?:\/\//.test(l)) {
  4129. l = 'http://' + l;
  4130. }
  4131. $.openLink(l);
  4132. },
  4133. });
  4134. $.register({
  4135. rule: {
  4136. host: /^smll\.io$/,
  4137. },
  4138. ready: function () {
  4139. 'use strict';
  4140. var m = $.searchScripts(/window\.location="([^"]*)";/);
  4141. $.openLink(m[1]);
  4142. },
  4143. });
  4144. $.register({
  4145. rule: {
  4146. host: /^www\.spaste\.com$/,
  4147. path: /^\/go\/\w+$/,
  4148. },
  4149. ready: function () {
  4150. 'use strict';
  4151. var id = $.searchScripts(/\{id:'(\d+)'\}/);
  4152. _.wait(3000).then(function () {
  4153. return $.post('/site/getRedirectLink', {
  4154. id: id,
  4155. }).then(function (url) {
  4156. $.openLink(url);
  4157. });
  4158. });
  4159. },
  4160. });
  4161. $.register({
  4162. rule: {
  4163. host: /^srnk\.co$/,
  4164. path: /^\/i\//,
  4165. },
  4166. ready: function () {
  4167. 'use strict';
  4168. var a = $.$('#btn-with-link');
  4169. if (!a) {
  4170. return;
  4171. }
  4172. var href = a.href;
  4173. var method = a.dataset.method;
  4174. if (method) {
  4175. var csrfParam = $('meta[name="csrf-param"]').content;
  4176. var csrfToken = $('meta[name="csrf-token"]').content;
  4177. var form = document.createElement('form');
  4178. form.method = 'post';
  4179. form.action = href;
  4180. var input = document.createElement('input');
  4181. input.name = '_method';
  4182. input.value = method;
  4183. form.appendChild(input);
  4184. input = document.createElement('input');
  4185. input.name = csrfParam;
  4186. input.value = csrfToken;
  4187. form.appendChild(input);
  4188. document.body.appendChild(form);
  4189. form.submit();
  4190. return;
  4191. }
  4192. $.post(location.pathname + '.js').then(function (script) {
  4193. var m = script.match(/var link = "([^"]+)";/);
  4194. if (!m) {
  4195. _.warn('script changed');
  4196. return;
  4197. }
  4198. $.openLink(m[1]);
  4199. });
  4200. },
  4201. });
  4202. $.register({
  4203. rule: {
  4204. host: /^stash-coins\.com$/,
  4205. },
  4206. start: function () {
  4207. 'use strict';
  4208. var url = window.location.toString();
  4209. var i = url.lastIndexOf('http');
  4210. url = url.substr(i);
  4211. $.openLink(url);
  4212. },
  4213. });
  4214. $.register({
  4215. rule: {
  4216. host: /^streamingfrench\.net$/,
  4217. path: /^\/$/,
  4218. query: /^\?xb=(.+)$/,
  4219. },
  4220. start: function (m) {
  4221. 'use strict';
  4222. var url = decodeURIComponent(m.query[1]);
  4223. $.openLink(url);
  4224. },
  4225. });
  4226. $.register({
  4227. rule: {
  4228. host: /^(www\.)?supercheats\.com$/,
  4229. path: /^\/interstitial\.html$/,
  4230. query: /(?:\?|&)oldurl=([^&]+)(?:$|&)/,
  4231. },
  4232. start: function (m) {
  4233. 'use strict';
  4234. $.openLink(m.query[1]);
  4235. },
  4236. });
  4237. $.register({
  4238. rule: [
  4239. {
  4240. host: [
  4241. /^(www\.)?sylnk\.net$/,
  4242. /^dlneko\.(com|net|org)$/,
  4243. /^rumahsimpel\.com$/,
  4244. ],
  4245. query: /link=([^&]+)/,
  4246. },
  4247. {
  4248. host: /^(www\.)?compul\.in$/,
  4249. path: /^\/[np]\.php$/,
  4250. query: /v=([^&]+)/,
  4251. },
  4252. {
  4253. host: /^(www\.)?safelinkair\.com$/,
  4254. path: /^\/code$/,
  4255. query: /(?:\?|&)link=([a-zA-Z0-9\/=]+)(?:$|&)/,
  4256. },
  4257. {
  4258. host: [
  4259. /^link\.filmku\.net$/,
  4260. /^www\.healthygress24\.ga$/,
  4261. /^kombatch\.amankan\.link$/,
  4262. ],
  4263. path: /^\/p\/(go|healty-lie)\.html$/,
  4264. query: /^\?url=([a-zA-Z0-9\/=]+)$/,
  4265. },
  4266. {
  4267. host: [
  4268. /^(gadget|auto|sports)14\.pw$/,
  4269. /^motosport\.pw$/,
  4270. /^nar-04\.tk$/,
  4271. /^lindung\.in$/,
  4272. /^motonews\.club$/,
  4273. /^ww[23]\.picnictrans\.com$/,
  4274. /^gadget13\.com$/,
  4275. /^azhie\.net$/,
  4276. /^ww2\.awsubs\.co$/,
  4277. ],
  4278. query: /^\?d=([a-zA-Z0-9\/=]+)$/,
  4279. },
  4280. {
  4281. host: /^www\.anisubsia\.tk$/,
  4282. path: /^\/p\/link\.html$/,
  4283. query: /^\?url=([a-zA-Z0-9\/=]+)$/,
  4284. },
  4285. {
  4286. host: [
  4287. /^www\.insurance1\.tech$/,
  4288. /^www\.freeanimeonline\.xyz$/,
  4289. ],
  4290. query: /^\?site=([a-zA-Z0-9\/=]+)/,
  4291. },
  4292. {
  4293. host: /^i\.gtaind\.com$/,
  4294. query: /^\?([a-zA-Z0-9\/=]+)$/,
  4295. },
  4296. {
  4297. host: /\.blogspot\.com?/,
  4298. query: [
  4299. /^\?url=([a-zA-Z0-9\/=]+)$/,
  4300. /^\?id=([a-zA-Z0-9\/=]+)$/,
  4301. ],
  4302. },
  4303. {
  4304. host: /^sehatlega\.com$/,
  4305. query: /^\?lanjut=([a-zA-Z0-9\/=]+)$/,
  4306. },
  4307. ],
  4308. start: function (m) {
  4309. 'use strict';
  4310. var rawLink = atob(m.query[1]);
  4311. $.openLink(rawLink);
  4312. },
  4313. });
  4314. $.register({
  4315. rule: [
  4316. {
  4317. host: [
  4318. /(^|\.)safelinkconverter2?\.com$/,
  4319. /^safelink(s?review(er)?)\.com?$/,
  4320. /^susutin\.com$/,
  4321. /^(getcomics|miuitutorial)\.gq$/,
  4322. /^awsubs\.cf$/,
  4323. ],
  4324. query: /id=(\w+=*)/,
  4325. },
  4326. {
  4327. host: [
  4328. /^(www\.)?dlneko\.com$/,
  4329. /^(satuasia|tawaku)\.com$/,
  4330. /^ww3\.manteb\.in$/,
  4331. /^link\.filmku\.net$/,
  4332. /^www\.muucih\.com$/,
  4333. /^(naisho|filmku)\.lompat\.in$/,
  4334. /^edogawa\.lon\.pw$/,
  4335. /^telolet\.in$/,
  4336. ],
  4337. query: /go=(\w+=*)/,
  4338. },
  4339. ],
  4340. start: function (m) {
  4341. 'use strict';
  4342. var l = atob(m.query[1]);
  4343. var table = {
  4344. '!': 'a',
  4345. ')': 'e',
  4346. '_': 'i',
  4347. '(': 'o',
  4348. '*': 'u',
  4349. };
  4350. l = l.replace(/[!)_(*]/g, function (m) {
  4351. return table[m];
  4352. });
  4353. $.openLink(l);
  4354. },
  4355. });
  4356. $.register({
  4357. rule: {
  4358. host: /^(www\.)?safelinkreview\.com$/,
  4359. path: /^\/\w+\/cost\/([\w\.]+)\/?$/,
  4360. },
  4361. start: function (m) {
  4362. 'use strict';
  4363. var l = 'http://' + m.path[1];
  4364. $.openLink(l);
  4365. },
  4366. });
  4367. $.register({
  4368. rule: {
  4369. host: [
  4370. /^designinghomey\.com$/,
  4371. /^motonews\.club$/,
  4372. /^(autofans|landscapenature)\.pw$/,
  4373. /^ani-share\.com$/,
  4374. /^sinopsisfilmku\.com$/,
  4375. /^(sidespace|erogedownload)\.net$/,
  4376. ],
  4377. query: /get=([^&]+)/,
  4378. },
  4379. ready: function (m) {
  4380. 'use strict';
  4381. var s = $.searchScripts(/var a='([^']+)'/);
  4382. if (s) {
  4383. $.openLink(s[1]);
  4384. return;
  4385. }
  4386. s = atob(m.query[1]);
  4387. $.openLink(s);
  4388. },
  4389. });
  4390. $.register({
  4391. rule: {
  4392. host: /^kombatch\.loncat\.pw$/,
  4393. },
  4394. ready: function () {
  4395. 'use strict';
  4396. var s = $.searchScripts(/\.open\("([^"]+)",/);
  4397. s = s[1].match(/go=([^&]+)/);
  4398. s = atob(s[1]);
  4399. $.openLink(s);
  4400. },
  4401. });
  4402. $.register({
  4403. rule: {
  4404. host: /^ww[23]\.picnictrans\.com$/,
  4405. host: /^short\.awsubs\.co$/,
  4406. },
  4407. ready: function () {
  4408. 'use strict';
  4409. var a = $('div.kiri > center > a');
  4410. $.openLink(a.href);
  4411. },
  4412. });
  4413. $.register({
  4414. rule: {
  4415. host: /^techfunda\.net$/,
  4416. path: /^\/link\//,
  4417. },
  4418. ready: function () {
  4419. 'use strict';
  4420. var a = $('.hide a.btn');
  4421. $.openLink(a.href);
  4422. },
  4423. });
  4424. $.register({
  4425. rule: {
  4426. host: /^thinfi\.com$/,
  4427. },
  4428. ready: function () {
  4429. 'use strict';
  4430. var a = $('div p a');
  4431. $.openLink(a.href);
  4432. },
  4433. });
  4434. $.register({
  4435. rule: {
  4436. host: /^tinyarrows\.com$/,
  4437. path: /^\/preview\.php$/,
  4438. query: /^\?page=([^&]+)/,
  4439. },
  4440. start: function (m) {
  4441. 'use strict';
  4442. $.openLink(decodeURIComponent(m.query[1]));
  4443. },
  4444. });
  4445. $.register({
  4446. rule: {
  4447. host: /^(www\.)?totaldebrid\.org$/,
  4448. path:/\/l\/(l\.php)?$/,
  4449. query: /\?ads=([a-zA-Z0-9=]+)$/,
  4450. },
  4451. start: function (m) {
  4452. 'use strict';
  4453. var l = atob(m.query[1]);
  4454. $.openLink(l);
  4455. },
  4456. });
  4457. $.register({
  4458. rule: {
  4459. host: /^(www\.)?typ\.me$/,
  4460. },
  4461. ready: function (m) {
  4462. 'use strict';
  4463. var a = $('#skipAdBtn');
  4464. $.openLink(a.href);
  4465. },
  4466. });
  4467. $.register({
  4468. rule: {
  4469. host: /^(www\.)?ultshare\.com$/,
  4470. path: /^\/(?:(?:\d-)?(\d+)|index\.php)$/,
  4471. query: /^(?:\?a=\d&c=(\d+))?$/
  4472. },
  4473. start: function (m) {
  4474. 'use strict';
  4475. var linkId = m.path[1]?m.path[1]:m.query[1];
  4476. var directLink = '/3-' + linkId;
  4477. $.openLink(directLink);
  4478. },
  4479. });
  4480. $.register({
  4481. rule: {
  4482. host: /^unfake\.it$/,
  4483. },
  4484. ready: function () {
  4485. 'use strict';
  4486. var frame = $('frame');
  4487. var i = frame.src.lastIndexOf('http://');
  4488. $.openLink(frame.src.substr(i));
  4489. },
  4490. });
  4491. $.register({
  4492. rule: {
  4493. host: /^(www\.)?(upan|gxp)\.so$/,
  4494. path: /^\/\w+$/,
  4495. },
  4496. ready: function () {
  4497. 'use strict';
  4498. var a = $('table.td_line a[onclick="down_process_s();"]');
  4499. $.openLink(a.href);
  4500. },
  4501. });
  4502. $.register({
  4503. rule: {
  4504. host: /^url\.ie$/,
  4505. },
  4506. ready: function () {
  4507. 'use strict';
  4508. var a = $('a[title="Link to original URL"]');
  4509. $.openLink(a.href);
  4510. },
  4511. });
  4512. $.register({
  4513. rule: {
  4514. host: /urlcash\.(com|net|org)|(bat5|detonating|celebclk|eightteen|smilinglinks|peekatmygirlfriend|pornyhost|clb1|urlgalleries)\.com|looble\.net|xxxs\.org$/,
  4515. },
  4516. ready: function () {
  4517. 'use strict';
  4518. if ($.window && $.window.linkDestUrl) {
  4519. $.openLink($.window.linkDestUrl);
  4520. return;
  4521. }
  4522. var matches = document.body.innerHTML.match(/linkDestUrl = '(.+)'/);
  4523. if (matches) {
  4524. $.openLink(matches[1]);
  4525. return;
  4526. }
  4527. },
  4528. });
  4529. $.register({
  4530. rule: {
  4531. host: /^urlinn\.com$/,
  4532. },
  4533. ready: function () {
  4534. 'use strict';
  4535. var m = $('META[HTTP-EQUIV=refresh]').getAttribute('CONTENT').match(/url='([^']+)'/);
  4536. if (m) {
  4537. $.openLink(m[1]);
  4538. }
  4539. },
  4540. });
  4541. $.register({
  4542. rule: {
  4543. host: /^urlms\.com$/,
  4544. },
  4545. ready: function () {
  4546. 'use strict';
  4547. var iframe = $('#content');
  4548. $.openLink(iframe.src);
  4549. },
  4550. });
  4551. $.register({
  4552. rule: {
  4553. host: /^(www\.)?urlv2\.com$/,
  4554. },
  4555. ready: function (m) {
  4556. 'use strict';
  4557. if (window.location.pathname.indexOf('locked') >= 0) {
  4558. var path = window.location.pathname.replace('/locked', '');
  4559. $.openLink(path);
  4560. return;
  4561. }
  4562. var m = $.searchScripts(/jeton=([\w]+)/);
  4563. var l = 'http://urlv2.com/algo.php?action=passer&px=0&so=1&jeton=' + m[1];
  4564. window.setTimeout(function() {$.openLink(l)}, 5000);
  4565. },
  4566. });
  4567. $.register({
  4568. rule: {
  4569. host: /^(www\.)?uskip\.me$/,
  4570. path: /^\/go\/\w+$/,
  4571. },
  4572. ready: function (m) {
  4573. 'use strict';
  4574. var a = $('#btn-main');
  4575. $.openLink(a.href);
  4576. },
  4577. });
  4578. $.register({
  4579. rule: {
  4580. host: /^vavi\.co$/,
  4581. },
  4582. ready: function () {
  4583. 'use strict';
  4584. var l = $('#goLink');
  4585. $.openLink(l.href);
  4586. },
  4587. });
  4588. $.register({
  4589. rule: {
  4590. host: /^(www\.)?victly\.com$/,
  4591. path: /^\/\w+$/,
  4592. },
  4593. start: function () {
  4594. 'use strict';
  4595. $.post(document.location.href, {
  4596. hidden: '',
  4597. image: 'Skip+Ads',
  4598. }).then(function (text) {
  4599. var m = text.match(/window\.location\.replace\('([^']+)'\)/);
  4600. $.openLink(m[1]);
  4601. });
  4602. },
  4603. });
  4604. $.register({
  4605. rule: {
  4606. host: /^www\.viidii\.info$/,
  4607. },
  4608. ready: function () {
  4609. 'use strict';
  4610. var o = $('#directlink');
  4611. $.openLink(o.href);
  4612. },
  4613. });
  4614. $.register({
  4615. rule: {
  4616. host: /^(www\.)?vir\.al$/,
  4617. },
  4618. ready: function () {
  4619. 'use strict';
  4620. var m = $.searchScripts(/var target_url = '([^']+)';/);
  4621. if (!m) {
  4622. throw new _.AdsBypasserError('site changed');
  4623. }
  4624. $.openLink(m[1]);
  4625. },
  4626. });
  4627. $.register({
  4628. rule: {
  4629. host: /^(www\.)?wzzq\.me$/,
  4630. },
  4631. ready: function () {
  4632. 'use strict';
  4633. try {
  4634. var l = $('#img_loading_table2 div.wz_img_hit a[target=_blank]').href;
  4635. $.openLink(l);
  4636. } catch (e) {
  4637. }
  4638. },
  4639. });
  4640. $.register({
  4641. rule: {
  4642. host: /^xlink.me$/
  4643. },
  4644. ready: function () {
  4645. 'use strict';
  4646. var a = $('#main_form > center > a');
  4647. if (!a) {return;}
  4648. $.openLink(a.href);
  4649. },
  4650. });
  4651. $.register({
  4652. rule: 'http://yep.it/preview.php?p=*',
  4653. ready: function () {
  4654. 'use strict';
  4655. var link = $('font[color="grey"]').innerHTML;
  4656. $.openLink(link);
  4657. },
  4658. });
  4659. $.register({
  4660. rule: 'http://www.yooclick.com/l/*',
  4661. ready: function () {
  4662. 'use strict';
  4663. $.removeNodes('iframe');
  4664. var uniq = $.window.uniq || $.window.uniqi;
  4665. if (!uniq) {return;}
  4666. var path = window.location.pathname;
  4667. var url = _.T('{0}?ajax=true&adblock=false&old=false&framed=false&uniq={1}')(path, uniq);
  4668. var getURL = function() {
  4669. $.get(url).then(function (text) {
  4670. 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);
  4671. if (goodURL) {
  4672. $.openLink(text);
  4673. } else {
  4674. setTimeout(getURL, 500);
  4675. }
  4676. });
  4677. }
  4678. getURL();
  4679. },
  4680. });
  4681. $.register({
  4682. rule: {
  4683. host: /^ysf\.pl$/,
  4684. path: /^\/3\/(.+)$/,
  4685. },
  4686. start: function (m) {
  4687. 'use strict';
  4688. var url = atob(m.path[1]);
  4689. $.openLink(url);
  4690. },
  4691. });
  4692. $.register({
  4693. rule: {
  4694. host: /^ysf\.pl$/,
  4695. path: /^\/2\/(.+)$/,
  4696. },
  4697. start: function (m) {
  4698. 'use strict';
  4699. var url = m.path[1].match(/.{2}/g).map(function (h) {
  4700. return String.fromCharCode(parseInt(h, 16));
  4701. }).join('');
  4702. $.openLink(url);
  4703. },
  4704. });
  4705. $.register({
  4706. rule: {
  4707. host: /^www\.zintata\.com$/,
  4708. path: /^\/link\/$/,
  4709. },
  4710. ready: function () {
  4711. 'use strict';
  4712. var a = $('#one > center:nth-child(3) > a:nth-child(1)');
  4713. $.openLink(a.href);
  4714. },
  4715. });
  4716. $.register({
  4717. rule: 'http://zo.mu/redirector/process?link=*',
  4718. ready: function () {
  4719. 'use strict';
  4720. $.removeNodes('iframe');
  4721. window.location.reload();
  4722. },
  4723. });
  4724. $.register({
  4725. rule: {
  4726. host: /^zzz\.gl$/,
  4727. },
  4728. ready: function () {
  4729. 'use strict';
  4730. var m = $.searchScripts(/var domainurl = '([^']+)';/);
  4731. if (!m) {
  4732. throw new _.AdsBypasserError('site changed');
  4733. }
  4734. $.openLink(m[1]);
  4735. },
  4736. });
  4737. (function (context, factory) {
  4738. if (typeof module === 'object' && typeof module.exports === 'object') {
  4739. module.exports = function (context, GM) {
  4740. var _ = require('lodash');
  4741. var core = require('./core.js');
  4742. var dom = require('./dom.js');
  4743. var config = require('./config.js');
  4744. var link = require('./link.js');
  4745. var misc = require('./misc.js');
  4746. var modules = [dom, config, link, misc].map(function (v) {
  4747. return v.call(null, context, GM);
  4748. });
  4749. var $ = _.assign.apply(_, modules);
  4750. return factory(context, GM, core, $);
  4751. };
  4752. } else {
  4753. factory(context, {
  4754. getResourceText: GM_getResourceText,
  4755. addStyle: GM_addStyle,
  4756. getResourceURL: GM_getResourceURL,
  4757. }, context._, context.$);
  4758. }
  4759. }(this, function (context, GM, _, $) {
  4760. 'use strict';
  4761. var window = context.window;
  4762. var document = window.document;
  4763. $.openImage = function (imgSrc, options) {
  4764. options = options || {};
  4765. var replace = !!options.replace;
  4766. var referer = !!options.referer;
  4767. if (replace) {
  4768. replaceBody(imgSrc);
  4769. return;
  4770. }
  4771. if ($.config.redirectImage) {
  4772. $.openLink(imgSrc, {
  4773. referer: referer,
  4774. });
  4775. }
  4776. };
  4777. function enableScrolling () {
  4778. var o = document.compatMode === 'CSS1Compat' ? document.documentElement : document.body;
  4779. o.style.overflow = '';
  4780. };
  4781. function toggleShrinking () {
  4782. this.classList.toggle('adsbypasser-shrinked');
  4783. }
  4784. function checkScaling () {
  4785. var nw = this.naturalWidth;
  4786. var nh = this.naturalHeight;
  4787. var cw = document.documentElement.clientWidth;
  4788. var ch = document.documentElement.clientHeight;
  4789. if ((nw > cw || nh > ch) && !this.classList.contains('adsbypasser-resizable')) {
  4790. this.classList.add('adsbypasser-resizable');
  4791. this.classList.add('adsbypasser-shrinked');
  4792. this.addEventListener('click', toggleShrinking);
  4793. } else {
  4794. this.removeEventListener('click', toggleShrinking);
  4795. this.classList.remove('adsbypasser-shrinked');
  4796. this.classList.remove('adsbypasser-resizable');
  4797. }
  4798. }
  4799. function scaleImage (i) {
  4800. var style = GM.getResourceText('scaleImage');
  4801. GM.addStyle(style);
  4802. if (i.naturalWidth && i.naturalHeight) {
  4803. checkScaling.call(i);
  4804. } else {
  4805. i.addEventListener('load', checkScaling);
  4806. }
  4807. var h;
  4808. window.addEventListener('resize', function () {
  4809. window.clearTimeout(h);
  4810. h = window.setTimeout(checkScaling.bind(i), 100);
  4811. });
  4812. }
  4813. function changeBackground () {
  4814. var bgImage = GM.getResourceURL('bgImage');
  4815. document.body.style.backgroundColor = '#222222';
  4816. document.body.style.backgroundImage = _.T('url(\'{0}\')')(bgImage);
  4817. }
  4818. function alignCenter () {
  4819. var style = GM.getResourceText('alignCenter');
  4820. GM.addStyle(style);
  4821. }
  4822. function injectStyle (d, i) {
  4823. $.removeNodes('style, link[rel=stylesheet]');
  4824. d.id = 'adsbypasser-wrapper';
  4825. i.id = 'adsbypasser-image';
  4826. }
  4827. function replaceBody (imgSrc) {
  4828. if (!$.config.redirectImage) {
  4829. return;
  4830. }
  4831. if (!imgSrc) {
  4832. _.warn('false url');
  4833. return;
  4834. }
  4835. _.info(_.T('replacing body with `{0}` ...')(imgSrc));
  4836. $.removeAllTimer();
  4837. enableScrolling();
  4838. document.body = document.createElement('body');
  4839. var d = document.createElement('div');
  4840. document.body.appendChild(d);
  4841. var i = document.createElement('img');
  4842. i.src = imgSrc;
  4843. d.appendChild(i);
  4844. if ($.config.alignCenter || $.config.scaleImage) {
  4845. injectStyle(d, i);
  4846. }
  4847. if ($.config.alignCenter) {
  4848. alignCenter();
  4849. }
  4850. if ($.config.changeBackground) {
  4851. changeBackground();
  4852. }
  4853. if ($.config.scaleImage) {
  4854. scaleImage(i);
  4855. }
  4856. };
  4857. return $;
  4858. }));
  4859. $.register({
  4860. rule: [
  4861. {
  4862. host: /^1(dl|be)\.biz$/,
  4863. path: /^\/\w\.php$/,
  4864. query: /^\?\w\/\d+$/,
  4865. },
  4866. {
  4867. host: /^img\.1dl\.biz$/,
  4868. path: /^\/\w\.php$/,
  4869. query: /^\?\w\/([\d\/]+)$/,
  4870. },
  4871. ],
  4872. ready: function () {
  4873. 'use strict';
  4874. var a = $('.main a, .main-l a');
  4875. $.openImage(a.href, {
  4876. referer: true,
  4877. });
  4878. },
  4879. });
  4880. $.register({
  4881. rule: {
  4882. host: /^1pics\.ru$/,
  4883. },
  4884. ready: function () {
  4885. 'use strict';
  4886. var img = $('img[alt$="1Pics.Ru"]');
  4887. $.openImage(img.src);
  4888. },
  4889. });
  4890. $.register({
  4891. rule: {
  4892. host: /^www\.(2i\.(sk|cz)|2imgs\.com)$/,
  4893. },
  4894. ready: function () {
  4895. 'use strict';
  4896. var img = $('#wrap3 img');
  4897. $.openImage(img.src);
  4898. },
  4899. });
  4900. $.register({
  4901. rule: [
  4902. {
  4903. host: /^a\.pomf\.se$/,
  4904. path: /^\/.+\.htm$/,
  4905. query: /^$/,
  4906. },
  4907. {
  4908. host: /^empireload\.com$/,
  4909. path: /^\/sexy\/.+\.htm$/,
  4910. query: /^$/,
  4911. },
  4912. ],
  4913. ready: function () {
  4914. 'use strict';
  4915. var a = $.$('body > a');
  4916. if (a) {
  4917. $.openImage(a.href);
  4918. return;
  4919. }
  4920. $.removeNodes('#boxes, iframe');
  4921. },
  4922. });
  4923. (function () {
  4924. 'use strict';
  4925. function run () {
  4926. var i = $('#image');
  4927. $.openImage(i.src);
  4928. }
  4929. $.register({
  4930. rule: {
  4931. host: /^(www\.)?image(pearl|beryl|crest)\.com$/,
  4932. path: /^\/verify\/(.+)$/,
  4933. },
  4934. start: function (m) {
  4935. $.openLink('/view/' + m.path[1]);
  4936. },
  4937. });
  4938. $.register({
  4939. rule: [
  4940. 'http://*.abload.de/image.php?img=*',
  4941. 'http://www.imageup.ru/*/*/*.html',
  4942. 'http://itmages.ru/image/view/*/*',
  4943. {
  4944. host: /^(www\.)?image(pearl|beryl|crest)\.com$/,
  4945. path: /^\/view\//,
  4946. },
  4947. ],
  4948. ready: run,
  4949. });
  4950. })();
  4951. $.register({
  4952. rule: {
  4953. host: /^avenuexxx\.com$/,
  4954. },
  4955. ready: function () {
  4956. 'use strict';
  4957. var i = $('#content img');
  4958. $.openImage(i.src);
  4959. },
  4960. });
  4961. $.register({
  4962. rule: {
  4963. host: /^(b4he|fullimg)\.com|fastpics\.net|ifap\.co$/,
  4964. query: /^\?v=([^&]+)/,
  4965. },
  4966. start: function (m) {
  4967. 'use strict';
  4968. $.openImage('/images/' + m.query[1]);
  4969. },
  4970. });
  4971. $.register({
  4972. rule: {
  4973. host: /^imagep2p\.com$/,
  4974. query: /^\?v=([^&]+)/,
  4975. },
  4976. start: function (m) {
  4977. 'use strict';
  4978. $.openImage('/images/' + m.query[1] + '.jpeg');
  4979. },
  4980. });
  4981. $.register({
  4982. rule: {
  4983. host: /^bayimg\.com$/,
  4984. },
  4985. ready: function () {
  4986. 'use strict';
  4987. var i = $('#mainImage');
  4988. $.openImage(i.src);
  4989. },
  4990. });
  4991. $.register({
  4992. rule: {
  4993. host: /^beeimg\.com$/,
  4994. path: /\/view\/.*/,
  4995. },
  4996. ready: function () {
  4997. 'use strict';
  4998. var img = $('img.img-responsive');
  4999. $.openImage(img.src);
  5000. },
  5001. });
  5002. $.register({
  5003. rule: 'http://www.bilder-space.de/*.htm',
  5004. ready: function () {
  5005. 'use strict';
  5006. $.removeNodes('iframe');
  5007. var img = $('img.picture');
  5008. $.openImage(img.src);
  5009. },
  5010. });
  5011. $.register({
  5012. rule: 'http://www.bilder-upload.eu/show.php?file=*',
  5013. ready: function () {
  5014. 'use strict';
  5015. var i = $('input[type=image]');
  5016. $.openImage(i.src);
  5017. },
  5018. });
  5019. $.register({
  5020. rule: 'http://blackcatpix.com/v.php?*',
  5021. ready: function () {
  5022. 'use strict';
  5023. var img = $('td center img');
  5024. $.openImage(img.src);
  5025. },
  5026. });
  5027. $.register({
  5028. rule: 'http://www.casimages.com/img.php?*',
  5029. ready: function () {
  5030. 'use strict';
  5031. var img = $('td a img');
  5032. $.openImage(img.src);
  5033. },
  5034. });
  5035. $.register({
  5036. rule: {
  5037. host: /^www\.x45x\.info|(imadul|mypixxx\.lonestarnaughtygirls)\.com|ghanaimages\.co|imgurban\.info|d69\.in$/,
  5038. query: /\?p[mt]=(.+)/,
  5039. },
  5040. start: function (m) {
  5041. 'use strict';
  5042. $.openImage('/?di=' + m.query[1]);
  5043. },
  5044. });
  5045. $.register({
  5046. rule: 'http://javelite.tk/viewer.php?id=*',
  5047. ready: function () {
  5048. 'use strict';
  5049. var i = $('table img');
  5050. $.openImage(i.src);
  5051. },
  5052. });
  5053. $.register({
  5054. rule: {
  5055. host: [
  5056. /^imgchili\.(com|net)$/,
  5057. /^(www\.)?pixhost\.org$/,
  5058. ],
  5059. path: /^\/show\//,
  5060. },
  5061. ready: function () {
  5062. 'use strict';
  5063. $.removeNodes('iframe, #ad');
  5064. try {
  5065. $('#all').style.display = '';
  5066. } catch (e) {
  5067. }
  5068. var o = $('#show_image, #image');
  5069. $.openImage(o.src);
  5070. },
  5071. });
  5072. $.register({
  5073. rule: {
  5074. host: /^crd\.ht$/,
  5075. },
  5076. ready: function () {
  5077. 'use strict';
  5078. var i = $('.continue > form > input[name=link]');
  5079. $.openImage(i.value);
  5080. },
  5081. });
  5082. $.register({
  5083. rule: 'http://cubeupload.com/im/*',
  5084. ready: function () {
  5085. 'use strict';
  5086. var img = $('img.galleryBigImg');
  5087. $.openImage(img.src);
  5088. },
  5089. });
  5090. $.register({
  5091. rule: {
  5092. host: [
  5093. /^dailyss\.net$/,
  5094. /daily-img\.com$/,
  5095. /img-365\.com$/,
  5096. /^365-img\.com$/,
  5097. /^i\.hentai-ddl\.org$/,
  5098. ],
  5099. path: /^\/image\/.+$/,
  5100. },
  5101. ready: function () {
  5102. 'use strict';
  5103. var i = $('#image-viewer-container img');
  5104. $.openImage(i.src);
  5105. },
  5106. });
  5107. $.register({
  5108. rule: {
  5109. host: /^xxx\.porn0day.\.com$/,
  5110. path: /^\/image\/.+$/,
  5111. },
  5112. ready: function () {
  5113. 'use strict';
  5114. var i = $('link[rel^=image_src]');
  5115. $.openImage(i.href);
  5116. },
  5117. });
  5118. $.register({
  5119. rule: {
  5120. host: /^(depic\.me|(www\.)?picamatic\.com)$/,
  5121. },
  5122. ready: function () {
  5123. 'use strict';
  5124. var i = $('#pic');
  5125. $.openImage(i.src);
  5126. },
  5127. });
  5128. $.register({
  5129. rule: {
  5130. host: /^img(dino|tiger|zap)\.com$/,
  5131. path: /^\/viewer\.php$/,
  5132. query: /^\?file=/,
  5133. },
  5134. ready: function () {
  5135. 'use strict';
  5136. var o = $('#cursor_lupa');
  5137. $.openImage(o.src);
  5138. },
  5139. });
  5140. $.register({
  5141. rule: 'http://*.directupload.net/file/*.htm',
  5142. ready: function () {
  5143. 'use strict';
  5144. var i = $('#ImgFrame');
  5145. $.openImage(i.src);
  5146. },
  5147. });
  5148. $.register({
  5149. rule: {
  5150. host: /^ehdwallpapers\.org$/,
  5151. path: /^\/images\/.*$/,
  5152. },
  5153. ready: function () {
  5154. 'use strict';
  5155. var i = $('.entry-content.clearfix img');
  5156. $.openImage(i.src);
  5157. },
  5158. });
  5159. $.register({
  5160. rule: {
  5161. host: /^(www\.)?empireload\.com$/,
  5162. path: /^(\/images(\/files\/\w)?)\/.\.php$/,
  5163. query: /^\?link=(.+)$/,
  5164. },
  5165. start: function (m) {
  5166. 'use strict';
  5167. $.openImage(m.path[1] + '/link/' + m.query[1]);
  5168. },
  5169. });
  5170. $.register({
  5171. rule: [
  5172. {
  5173. host: [
  5174. /^emptypix\.com|overdream\.cz$/,
  5175. /^www\.sexseeimage\.com$/,
  5176. /^imgdomino\.com$/,
  5177. ],
  5178. path: /^\/image\//,
  5179. },
  5180. {
  5181. host: /^10\.imageleon\.com$/,
  5182. path: /^\/img-(.+)\.html$/,
  5183. },
  5184. ],
  5185. ready: function () {
  5186. 'use strict';
  5187. var img = $('#full_image');
  5188. $.openImage(img.src);
  5189. },
  5190. });
  5191. $.register({
  5192. rule: {
  5193. host: /^sexyxpixels\.com$/,
  5194. query: /^\?v=/,
  5195. },
  5196. ready: function () {
  5197. 'use strict';
  5198. var img = $('#full_image');
  5199. $.openImage(img.src, {
  5200. referer: true,
  5201. });
  5202. },
  5203. });
  5204. $.register({
  5205. rule: {
  5206. host: /^fastpic\.ru$/,
  5207. path: /^\/view\//,
  5208. },
  5209. ready: function () {
  5210. 'use strict';
  5211. var img = $('#picContainer #image');
  5212. $.openImage(img.src, {
  5213. referer: true,
  5214. });
  5215. },
  5216. });
  5217. $.register({
  5218. rule: 'http://www.fotolink.su/v.php?id=*',
  5219. ready: function () {
  5220. 'use strict';
  5221. var i = $('#content img');
  5222. $.openImage(i.src);
  5223. },
  5224. });
  5225. $.register({
  5226. rule: 'http://www.fotosik.pl/pokaz_obrazek/pelny/*.html',
  5227. ready: function () {
  5228. 'use strict';
  5229. var i = $('a.noborder img');
  5230. $.openImage(i.src);
  5231. },
  5232. });
  5233. $.register({
  5234. rule: {
  5235. host: /^freakimage\.com|www\.hostpic\.org$/,
  5236. path: /^\/view\.php$/,
  5237. query: /^\?filename=([^&]+)/,
  5238. },
  5239. start: function (m) {
  5240. 'use strict';
  5241. $.openImage('/images/' + m.query[1]);
  5242. },
  5243. });
  5244. $.register({
  5245. rule: {
  5246. host: /^(www\.)?freeimgup\.com$/,
  5247. path: /^\/xxx\//,
  5248. },
  5249. ready: function () {
  5250. 'use strict';
  5251. var img = $('#mainimage');
  5252. $.openImage(img.src);
  5253. },
  5254. });
  5255. $.register({
  5256. rule: [
  5257. 'http://funkyimg.com/viewer.php?img=*',
  5258. 'http://funkyimg.com/view/*',
  5259. ],
  5260. ready: function () {
  5261. 'use strict';
  5262. var i = $('#viewer img');
  5263. $.openImage(i.src);
  5264. },
  5265. });
  5266. $.register({
  5267. rule: {
  5268. host: /^(www\.)?gallery(nova|sense)\.se$/,
  5269. path: /^\/site\/v\//,
  5270. },
  5271. ready: function () {
  5272. 'use strict';
  5273. var i = $('#myUniqueImg').parentNode;
  5274. $.openImage(i.href);
  5275. },
  5276. });
  5277. $.register({
  5278. rule: {
  5279. host: /^(www\.)?gallerynova\.se$/,
  5280. path: /^\/site\/viewImage\/(\w+)/,
  5281. },
  5282. ready: function (m) {
  5283. 'use strict';
  5284. var confirm = $.searchScripts(/\$\("#confirmImage"\).val\("([^"]+)"\)/)[1];
  5285. $.post('/site/viewConfirmCode/' + m.path[1], {
  5286. confirm: confirm
  5287. }).then(function (rawJson) {
  5288. var json = _.parseJSON(rawJson);
  5289. var decodedHTML = document.createTextNode(json.content).data;
  5290. var imgURL = decodedHTML.match(/<a href="([^"]+)" target="_blank">/)[1];
  5291. $.openImage(imgURL);
  5292. });
  5293. },
  5294. });
  5295. (function () {
  5296. 'use strict';
  5297. var hostRule = /^goimagehost\.com$/;
  5298. $.register({
  5299. rule: {
  5300. host: hostRule,
  5301. path: /^\/xxx\/images\//,
  5302. },
  5303. });
  5304. $.register({
  5305. rule: {
  5306. host: hostRule,
  5307. path: /^\/xxx\/(.+)/,
  5308. },
  5309. start: function (m) {
  5310. $.openImage('/xxx/images/' + m.path[1]);
  5311. },
  5312. });
  5313. $.register({
  5314. rule: {
  5315. host: hostRule,
  5316. query: /^\?v=(.+)/,
  5317. },
  5318. start: function (m) {
  5319. $.openImage('/xxx/images/' + m.query[1]);
  5320. },
  5321. });
  5322. })();
  5323. $.register({
  5324. rule: {
  5325. host: /www\.(h-animes|adultmove)\.info/,
  5326. path: /^\/.+\/.+\/.+\.html$/,
  5327. },
  5328. ready: function () {
  5329. 'use strict';
  5330. var a = $('.dlbutton2 > a');
  5331. $.openImage(a.href);
  5332. },
  5333. });
  5334. $.register({
  5335. rule: 'http://hentaimg.com/mg/lndex-1.php?img=*',
  5336. ready: function () {
  5337. 'use strict';
  5338. $.openLink('index-1.php' + window.location.search);
  5339. },
  5340. });
  5341. $.register({
  5342. rule: 'http://hentaimg.com/mg/index-1.php?img=*',
  5343. ready: function () {
  5344. 'use strict';
  5345. var i = $('#content img');
  5346. $.openImage(i.src);
  5347. },
  5348. });
  5349. $.register({
  5350. rule: 'http://www.hostingpics.net/viewer.php?id=*',
  5351. ready: function () {
  5352. 'use strict';
  5353. var i = $('#img_viewer');
  5354. $.openImage(i.src);
  5355. },
  5356. });
  5357. $.register({
  5358. rule: {
  5359. host: /^ichan\.org$/,
  5360. path: /^\/image\.php$/,
  5361. query: /path=(.+)$/,
  5362. },
  5363. start: function (m) {
  5364. 'use strict';
  5365. $.openImage('/' + m.query[1]);
  5366. },
  5367. });
  5368. $.register({
  5369. rule: {
  5370. host: /ichan\.org$/,
  5371. },
  5372. ready: function () {
  5373. 'use strict';
  5374. $.$$('a').each(function (a) {
  5375. if (a.href.indexOf('/url/http://') > -1) {
  5376. a.href = a.href.replace(/http:\/\/.+\/url\/(?=http:\/\/)/, '');
  5377. }
  5378. });
  5379. },
  5380. });
  5381. $.register({
  5382. rule: 'http://ifotos.pl/zobacz/*',
  5383. ready: function () {
  5384. 'use strict';
  5385. var m = $('meta[property="og:image"]');
  5386. $.openImage(m.content);
  5387. },
  5388. });
  5389. $.register({
  5390. rule: {
  5391. host: /^ima\.so$/,
  5392. },
  5393. ready: function () {
  5394. 'use strict';
  5395. var a = $('#image_block a');
  5396. $.openImage(a.href);
  5397. },
  5398. });
  5399. $.register({
  5400. rule: [
  5401. 'http://image18.org/show/*',
  5402. 'http://screenlist.ru/details.php?image_id=*',
  5403. 'http://www.imagenetz.de/*/*.html',
  5404. ],
  5405. ready: function () {
  5406. 'use strict';
  5407. var img = $('#picture');
  5408. $.openImage(img.src);
  5409. },
  5410. });
  5411. $.register({
  5412. rule: {
  5413. host: /^image2you\.ru$/,
  5414. path: /^\/\d+\/\d+/,
  5415. },
  5416. ready: function () {
  5417. 'use strict';
  5418. var i = $.$('div.t_tips2 div > img');
  5419. if (!i) {
  5420. $.openLink('', {
  5421. post: {
  5422. _confirm: '',
  5423. },
  5424. });
  5425. return;
  5426. }
  5427. $.openImage(i.src);
  5428. },
  5429. });
  5430. $.register({
  5431. rule: 'http://imagearn.com/image.php?id=*',
  5432. ready: function () {
  5433. 'use strict';
  5434. var i = $('#img');
  5435. $.openImage(i.src);
  5436. },
  5437. });
  5438. $.register({
  5439. rule: 'http://www.imagebam.com/image/*',
  5440. ready: function () {
  5441. 'use strict';
  5442. var o = $('.image-container img[id]');
  5443. $.openImage(o.src, {
  5444. replace: true,
  5445. });
  5446. },
  5447. });
  5448. $.register({
  5449. rule: {
  5450. host: /^imageheli\.com|imgtube\.net|pixliv\.com$/,
  5451. path: /^\/img-([a-zA-Z0-9\-]+)\..+$/,
  5452. },
  5453. ready: function () {
  5454. 'use strict';
  5455. var a = $.$('a[rel="lightbox"]');
  5456. if (!a) {
  5457. $.openLink('', {
  5458. post: {
  5459. browser_fingerprint: '',
  5460. ads: '0',
  5461. },
  5462. });
  5463. return;
  5464. }
  5465. $.openImage(a.href);
  5466. },
  5467. });
  5468. $.register({
  5469. rule: 'http://www.imagehousing.com/image/*',
  5470. ready: function () {
  5471. 'use strict';
  5472. var i = $('td.text_item img');
  5473. $.openImage(i.src);
  5474. },
  5475. });
  5476. $.register({
  5477. rule: 'http://imageno.com/*.html',
  5478. ready: function () {
  5479. 'use strict';
  5480. var i = $('#image_div img');
  5481. $.openImage(i.src);
  5482. },
  5483. });
  5484. $.register({
  5485. rule: 'http://imagepix.org/image/*.html',
  5486. ready: function () {
  5487. 'use strict';
  5488. var i = $('img[border="0"]');
  5489. $.openImage(i.src);
  5490. },
  5491. });
  5492. (function () {
  5493. 'use strict';
  5494. function run () {
  5495. var o = $('#download_box img[id]');
  5496. $.openImage(o.src);
  5497. }
  5498. $.register({
  5499. rule: {
  5500. host: /^www\.imageporter\.com$/,
  5501. path: /^\/\w{12}\/.*\.html$/,
  5502. },
  5503. ready: run,
  5504. });
  5505. $.register({
  5506. rule: {
  5507. host: /^(www\.)?(image(carry|dunk|porter|switch)|pic(leet|turedip|tureturn)|imgspice)\.com|(piclambo|yankoimages)\.net$/,
  5508. },
  5509. ready: run,
  5510. });
  5511. })();
  5512. $.register({
  5513. rule: [
  5514. {
  5515. host: /^imagescream\.com$/,
  5516. path: /^\/img\/(soft\/)?/,
  5517. },
  5518. {
  5519. host: /^(www\.)?(picturescream|picturevip)\.com$/,
  5520. path: /^\/x\//,
  5521. },
  5522. {
  5523. host: [
  5524. /^picturescream\.asia$/,
  5525. /^uploadimage\.eu$/,
  5526. ],
  5527. },
  5528. {
  5529. host: /^postscreens\.info/,
  5530. path: /^\/.*/,
  5531. },
  5532. ],
  5533. ready: function () {
  5534. 'use strict';
  5535. var i = $('#shortURL-content img');
  5536. $.openImage(i.src);
  5537. },
  5538. });
  5539. $.register({
  5540. rule: {
  5541. host: /^(imagescream|anonpic)\.com|all-poster\.ru$/,
  5542. query: /^\?v=/,
  5543. },
  5544. ready: function () {
  5545. 'use strict';
  5546. var i = $('#imagen img');
  5547. $.openImage(i.src);
  5548. },
  5549. });
  5550. $.register({
  5551. rule: {
  5552. host: /^bunnyforum\.org$/,
  5553. query: /^\?v=/,
  5554. },
  5555. ready: function () {
  5556. 'use strict';
  5557. var i = $('img[title^=Click]');
  5558. $.openImage(i.src);
  5559. },
  5560. });
  5561. (function () {
  5562. 'use strict';
  5563. var host = /^imageshack\.us$/;
  5564. $.register({
  5565. rule: {
  5566. host: host,
  5567. path: /^\/photo\/.+\/(.+)\/([^\/]+)/,
  5568. },
  5569. start: function (m) {
  5570. $.openImage(_.T('/f/{0}/{1}/')(m.path[1], m.path[2]));
  5571. },
  5572. });
  5573. $.register({
  5574. rule: {
  5575. host: host,
  5576. path: /^\/f\/.+\/[^\/]+/,
  5577. },
  5578. ready: function () {
  5579. var i = $('#fullimg');
  5580. $.openImage(i.src);
  5581. },
  5582. });
  5583. })();
  5584. $.register({
  5585. rule: 'http://imageshost.ru/photo/*/id*.html',
  5586. ready: function () {
  5587. 'use strict';
  5588. var a = $('#bphoto a');
  5589. $.openImage(a.href);
  5590. },
  5591. });
  5592. (function () {
  5593. 'use strict';
  5594. function run () {
  5595. var i = $('#img_obj');
  5596. $.openImage(i.src, {
  5597. referer: true,
  5598. });
  5599. }
  5600. function run2 () {
  5601. var i = $('#img_obj');
  5602. $.openImage(i.src, {
  5603. replace: true,
  5604. });
  5605. }
  5606. $.register({
  5607. rule: [
  5608. {
  5609. host: [
  5610. /^www\.(freebunker|imgcarry|imgshots)\.com$/,
  5611. /^www\.imagesnake\.(com|org)$/,
  5612. ],
  5613. path: /^\/show\.php$/,
  5614. query: /^\?/,
  5615. },
  5616. {
  5617. host: /^www\.(freebunker|imgshots)\.com$/,
  5618. path: /^\/show\//,
  5619. },
  5620. {
  5621. host: [
  5622. /^www\.imagesnake\.(com|org)$/,
  5623. /^www\.imagefruit\.com$/,
  5624. ],
  5625. path: /^\/(img|show)\/.+/,
  5626. },
  5627. {
  5628. host: /^imageban\.(ru|net)$/,
  5629. path: /^\/show\/\d{4}\/\d{2}\/\d{2}\/.+/,
  5630. },
  5631. 'http://fotoo.pl/show.php?img=*.html',
  5632. {
  5633. host: /^www\.(fotoszok\.pl|imagestime)\.com$/,
  5634. path: /^\/show\.php\/.*\.html$/,
  5635. },
  5636. ],
  5637. ready: run,
  5638. });
  5639. $.register({
  5640. rule: {
  5641. host: /^www\.imgcarry\.com$/,
  5642. path: /^\/show\//,
  5643. },
  5644. ready: run2,
  5645. });
  5646. })();
  5647. (function () {
  5648. 'use strict';
  5649. function run (rp) {
  5650. $.window.jQuery.prototype.append = undefined;
  5651. var i = $('img.pic');
  5652. $.openImage(i.src, {
  5653. replace: rp,
  5654. });
  5655. }
  5656. $.register({
  5657. rule: {
  5658. host: /^imagenpic\.com$/,
  5659. path: /^\/.*\/.+\.html$/,
  5660. },
  5661. ready: _.P(run, true),
  5662. });
  5663. $.register({
  5664. rule: {
  5665. host: /^imagecherry\.com$/,
  5666. },
  5667. ready: _.P(run, true),
  5668. });
  5669. $.register({
  5670. rule: {
  5671. host: /^imagetwist\.com$/,
  5672. },
  5673. ready: _.P(run, false),
  5674. });
  5675. })();
  5676. $.register({
  5677. rule: 'http://imageupper.com/i/?*',
  5678. ready: function () {
  5679. 'use strict';
  5680. var i = $('#img');
  5681. $.openImage(i.src);
  5682. },
  5683. });
  5684. $.register({
  5685. rule: [
  5686. 'http://*.imagevenue.com/img.php?*',
  5687. 'http://hotchyx.com/d/adult-image-hosting-view-08.php?id=*',
  5688. 'http://www.hostingfailov.com/photo/*',
  5689. ],
  5690. ready: function () {
  5691. 'use strict';
  5692. var i = $('#thepic');
  5693. $.openImage(i.src);
  5694. },
  5695. });
  5696. $.register({
  5697. rule: {
  5698. host: /^imagezilla\.net$/,
  5699. },
  5700. ready: function () {
  5701. 'use strict';
  5702. var i = $('#photo');
  5703. $.openImage(i.src, {
  5704. referer: true,
  5705. });
  5706. },
  5707. });
  5708. $.register({
  5709. rule: {
  5710. host: /^imagik\.fr$/,
  5711. path: /^\/view(-rl)?\/(.+)/,
  5712. },
  5713. start: function (m) {
  5714. 'use strict';
  5715. $.openImage('/uploads/' + m.path[2]);
  5716. },
  5717. });
  5718. $.register({
  5719. rule: 'http://img.3ezy.net/*.htm',
  5720. ready: function () {
  5721. 'use strict';
  5722. var l = $('link[rel="image_src"]');
  5723. $.openImage(l.href);
  5724. },
  5725. });
  5726. $.register({
  5727. rule: 'http://img1.imagilive.com/*/*',
  5728. ready: function () {
  5729. 'use strict';
  5730. var a = $.$('#page a.button');
  5731. if (a) {
  5732. $.redirect(a.href);
  5733. return;
  5734. }
  5735. var i = $('#page > img:not([id])');
  5736. $.openImage(i.src);
  5737. },
  5738. });
  5739. $.register({
  5740. rule: {
  5741. host: /^img24\.org$/,
  5742. },
  5743. ready: function () {
  5744. 'use strict';
  5745. var f = $.$('img.img-polaroid + form');
  5746. if (f) {
  5747. f.submit();
  5748. return;
  5749. }
  5750. f = $('img.img-polaroid');
  5751. $.openImage(f.src, {
  5752. referer: true,
  5753. });
  5754. },
  5755. });
  5756. $.register({
  5757. rule: {
  5758. host: /^img3x\.net$/,
  5759. },
  5760. ready: function () {
  5761. 'use strict';
  5762. var f = $.$('form');
  5763. if (f) {
  5764. f.submit();
  5765. return;
  5766. }
  5767. f = $('#show_image');
  5768. $.openImage(f.src);
  5769. },
  5770. });
  5771. $.register({
  5772. rule: {
  5773. host: /^www\.img(babes|flare)\.com$/,
  5774. },
  5775. ready: function () {
  5776. 'use strict';
  5777. var i = $.$('input[onclick]');
  5778. if (i) {
  5779. $.window.Decode();
  5780. return;
  5781. }
  5782. var i = $('#this_image');
  5783. $.openImage(i.src);
  5784. },
  5785. });
  5786. $.register({
  5787. rule: {
  5788. host: /^imgbar\.net$/,
  5789. path: /^\/img_show\.php$/,
  5790. query: /^\?view_id=/,
  5791. },
  5792. ready: function () {
  5793. 'use strict';
  5794. var i = $('center img');
  5795. $.openImage(i.src);
  5796. },
  5797. });
  5798. $.register({
  5799. rule: {
  5800. host: /^imgbar\.net$/,
  5801. },
  5802. ready: function () {
  5803. 'use strict';
  5804. var i = $('div.panel.top form input[name=sid]');
  5805. $.openLink('/img_show.php?view_id=' + i.value);
  5806. },
  5807. });
  5808. $.register({
  5809. rule: {
  5810. host: /^imgbin\.me$/,
  5811. path: /^\/view\/([A-Z]+)$/,
  5812. },
  5813. start: function (m) {
  5814. 'use strict';
  5815. var tpl = _.T('/image/{0}.jpg');
  5816. $.openImage(tpl(m.path[1]));
  5817. },
  5818. });
  5819. $.register({
  5820. rule: {
  5821. host: /^imgbox\.com$/,
  5822. path: /^\/[\d\w]+$/,
  5823. },
  5824. ready: function () {
  5825. 'use strict';
  5826. $.removeNodes('iframe');
  5827. var i = $('#img');
  5828. $.openImage(i.src);
  5829. },
  5830. });
  5831. (function () {
  5832. 'use strict';
  5833. function helper (doReplace) {
  5834. if ($.window.confirmAge) {
  5835. $.window.confirmAge(1);
  5836. return;
  5837. }
  5838. var i = $('#container-home img[onclick]');
  5839. $.openImage(i.src, {
  5840. replace: doReplace,
  5841. });
  5842. }
  5843. $.register({
  5844. rule: {
  5845. host: [
  5846. /^img(fantasy|leech|\.pornleech|smile|nemo|sense|curl)\.com$/,
  5847. /^(imagedomino|lovechix)\.com$/,
  5848. /^0img\.net$/,
  5849. /^daily-img\.com$/,
  5850. /^picangel\.in$/,
  5851. /^imagebic\.com$/,
  5852. /^bunnyforum\.org$/,
  5853. ],
  5854. query: /^\?[pv]=/,
  5855. },
  5856. ready: _.P(helper, false),
  5857. });
  5858. $.register({
  5859. rule: {
  5860. host: /^imgsay\.com$/,
  5861. query: /^\?[pv]=/,
  5862. },
  5863. ready: _.P(helper, true),
  5864. });
  5865. })();
  5866. $.register({
  5867. rule: {
  5868. host: /^imglocker\.com$/,
  5869. path: [
  5870. /^(\/\w+)\/(.+)\.html$/,
  5871. /^(\/\w+)\/(.+)$/,
  5872. ],
  5873. },
  5874. start: function (m) {
  5875. 'use strict';
  5876. var url = _.T('//img.imglocker.com{0}_{1}');
  5877. $.openImage(url(m.path[1], m.path[2]));
  5878. },
  5879. });
  5880. $.register({
  5881. rule: {
  5882. host: [
  5883. /^imgnova\.xyz$/,
  5884. /^www\.hentai-hot\.xyz$/,
  5885. /^www\.hentai-king\.online$/,
  5886. ],
  5887. path: /^\/i\/.+\.php$/,
  5888. query: /f=(.+)$/,
  5889. },
  5890. start: function (m) {
  5891. 'use strict';
  5892. $.openImage('f/' + m.query[1]);
  5893. },
  5894. });
  5895. (function () {
  5896. 'use strict';
  5897. var PATH_RULE = /^\/([0-9a-zA-Z]+)(\.|\/|$)/;
  5898. $.register({
  5899. rule: {
  5900. host: [
  5901. /^img(universal|paying|mega|zeus|monkey|trex|ve|dew|diamond)\.com$/,
  5902. /^(www\.)?imgsee\.me$/,
  5903. /^img(click|maid)\.net$/,
  5904. /^(uploadrr|imageeer|imzdrop|www\.uimgshare|pic-maniac|hulkimge)\.com$/,
  5905. /^imgdrive\.co$/,
  5906. /^cuteimg\.cc$/,
  5907. /^img(tiger|gold)\.org$/,
  5908. /^myimg\.club$/,
  5909. /^foxyimg\.link$/,
  5910. /^(core|iron)img\.net$/,
  5911. ],
  5912. path: PATH_RULE,
  5913. },
  5914. ready: function (m) {
  5915. helper(m.path[1], getNext1);
  5916. },
  5917. });
  5918. $.register({
  5919. rule: {
  5920. host: [
  5921. /^imgview\.net$/,
  5922. /^img(maze|outlet)\.com$/,
  5923. ],
  5924. path: PATH_RULE,
  5925. },
  5926. ready: function () {
  5927. var i = $.$('img.pic');
  5928. if (i) {
  5929. $.openImage(i.src);
  5930. return;
  5931. }
  5932. var d = $('div[id^="imageviewi"]');
  5933. waitDOM(d, function (node) {
  5934. return node.nodeName === 'FORM' && $.$('input[name="id"]', node);
  5935. }).then(function (node) {
  5936. node.submit();
  5937. }).catch(function (e) {
  5938. _.warn(e);
  5939. });
  5940. },
  5941. });
  5942. $.register({
  5943. rule: {
  5944. host: /^img(rock|town)\.net$/,
  5945. path: PATH_RULE,
  5946. },
  5947. ready: function () {
  5948. var i = $.$('img.pic');
  5949. if (i) {
  5950. $.openImage(i.src);
  5951. return;
  5952. }
  5953. var d = $('td:nth-child(2) > center > div[id]');
  5954. var visibleClasses = null;
  5955. waitDOM(d, function (node) {
  5956. if (node.nodeName === 'STYLE') {
  5957. visibleClasses = parseStyle(node);
  5958. return false;
  5959. }
  5960. if (node.nodeName === 'FORM' && node.offsetParent !== null) {
  5961. return visibleClasses.some(function (class_) {
  5962. return node.classList.contains(class_);
  5963. });
  5964. }
  5965. return false;
  5966. }).then(function (node) {
  5967. node.submit();
  5968. }).catch(function (e) {
  5969. _.warn(e);
  5970. });
  5971. },
  5972. });
  5973. $.register({
  5974. rule: {
  5975. host: /^chronos\.to$/,
  5976. path: PATH_RULE,
  5977. },
  5978. ready: function (m) {
  5979. helper(m.path[1], getNext2);
  5980. },
  5981. });
  5982. $.register({
  5983. rule: {
  5984. host: /^imgfiles\.org$/,
  5985. path: PATH_RULE,
  5986. },
  5987. ready: function (m) {
  5988. var i = $.$('img.pic');
  5989. if (i) {
  5990. $.openImage(i.src);
  5991. return;
  5992. }
  5993. var f = $('form');
  5994. f.submit();
  5995. },
  5996. });
  5997. $.register({
  5998. rule: 'http://imgview.net/tpind.php',
  5999. ready: function () {
  6000. var i = $.$('img.pic');
  6001. if (i) {
  6002. $.openImage(i.src, {replace: true});
  6003. return;
  6004. }
  6005. _.wait(500).then(function () {
  6006. var d = $('div[id^="imageviewi"] input[type="submit"][style=""]');
  6007. d = d.parentNode;
  6008. d.submit();
  6009. });
  6010. },
  6011. });
  6012. $.register({
  6013. rule: /^http:\/\/imgdragon\.com\/(getfil\.php|dl)$/,
  6014. ready: function () {
  6015. var i = $.$('img.pic');
  6016. if (i) {
  6017. $.openImage(i.src);
  6018. return;
  6019. }
  6020. _.wait(500).then(function () {
  6021. var f = $('#ContinueFRM');
  6022. f.submit();
  6023. });
  6024. },
  6025. });
  6026. function waitDOM (element, fn) {
  6027. return _.D(function (resolve, reject) {
  6028. var observer = new MutationObserver(function (mutations) {
  6029. mutations.forEach(function (mutation) {
  6030. if (mutation.type !== 'childList') {
  6031. return;
  6032. }
  6033. var result = _.C(mutation.addedNodes).find(function (child) {
  6034. return fn(child) ? child : _.none;
  6035. });
  6036. if (!result) {
  6037. return;
  6038. }
  6039. observer.disconnect();
  6040. resolve(result.payload);
  6041. });
  6042. });
  6043. observer.observe(element, {
  6044. childList: true,
  6045. });
  6046. });
  6047. }
  6048. function parseStyle (style) {
  6049. style = style.textContent;
  6050. var pattern = /\.(\w+)\{visibility:initial;\}/g;
  6051. var rv = null;
  6052. var classes = [];
  6053. while ((rv = pattern.exec(style)) !== null) {
  6054. classes.push(rv[1]);
  6055. }
  6056. return classes;
  6057. }
  6058. function go (id, pre, next) {
  6059. $.openLink('', {
  6060. post: {
  6061. op: 'view',
  6062. id: id,
  6063. pre: pre,
  6064. next: next,
  6065. adb: '0',
  6066. },
  6067. });
  6068. }
  6069. function getNext1 (i) {
  6070. return i.value;
  6071. }
  6072. function getNext2 (i) {
  6073. var next = i.onclick && i.onclick.toString().match(/value='([^']+)'/);
  6074. if (next) {
  6075. next = next[1];
  6076. return next;
  6077. } else {
  6078. return i.value;
  6079. }
  6080. }
  6081. function helper (id, getNext) {
  6082. var recaptcha = $.$('#recaptcha_widget, #captcha');
  6083. if (recaptcha) {
  6084. _.info('stop because recaptcha');
  6085. return;
  6086. }
  6087. var i = $.$('input[name="next"]');
  6088. if (i) {
  6089. var next = getNext(i);
  6090. go(id, $('input[name="pre"]').value, next);
  6091. return;
  6092. }
  6093. i = $.$('img.pic');
  6094. if (i) {
  6095. $.openImage(i.src);
  6096. return;
  6097. }
  6098. _.info('do nothing');
  6099. }
  6100. })();
  6101. $.register({
  6102. rule: {
  6103. host: /^(imgsure|picexposed)\.com$/,
  6104. },
  6105. ready: function () {
  6106. 'use strict';
  6107. var i = $('img.pic');
  6108. $.openImage(i.src);
  6109. },
  6110. });
  6111. $.register({
  6112. rule: 'http://imgtheif.com/image/*.html',
  6113. ready: function () {
  6114. 'use strict';
  6115. var a = $('div.content-container a');
  6116. $.openImage(a.href);
  6117. },
  6118. });
  6119. $.register({
  6120. rule: {
  6121. host: /^imgvault\.pw$/,
  6122. path: /^\/view-image\//,
  6123. },
  6124. ready: function () {
  6125. 'use strict';
  6126. var a = $('article div.span7 a[target="_blank"]');
  6127. $.openImage(a.href);
  6128. },
  6129. });
  6130. $.register({
  6131. rule: 'http://ipic.su/?page=img&pic=*',
  6132. ready: function () {
  6133. 'use strict';
  6134. var i = $('#fz');
  6135. $.openImage(i.src);
  6136. },
  6137. });
  6138. $.register({
  6139. rule: {
  6140. host: /^javcity\.com$/,
  6141. },
  6142. ready: function () {
  6143. 'use strict';
  6144. var a = $('.entry-content > h1:nth-child(1) > a:nth-child(1)');
  6145. var url = a.onclick.toString();
  6146. url = url.match(/window\.open\('([^']+)'\)/);
  6147. if (!url) {
  6148. _.info('pattern changed')
  6149. return;
  6150. }
  6151. $.openImage(url[1]);
  6152. },
  6153. });
  6154. $.register({
  6155. rule: {
  6156. host: /keptarolo\.hu$/,
  6157. path: /^(\/[^\/]+\/[^\/]+\.jpg)$/,
  6158. },
  6159. start: function (m) {
  6160. 'use strict';
  6161. $.openImage('http://www.keptarolo.hu/kep' + m.path[1]);
  6162. },
  6163. });
  6164. $.register({
  6165. rule: {
  6166. host: /^lostpic\.net$/,
  6167. query: /^\?photo=\d+$/,
  6168. },
  6169. ready: function () {
  6170. 'use strict';
  6171. var i = $('img.notinline.circle');
  6172. $.openImage(i.src);
  6173. },
  6174. });
  6175. (function () {
  6176. 'use strict';
  6177. function helper (m) {
  6178. $.openImage('/images/' + m.query[1]);
  6179. }
  6180. $.register({
  6181. rule: {
  6182. host: [
  6183. /^(hentai-hosting|miragepics|funextra\.hostzi|imgrex|cdn\.javtotal|img3x)\.com$/,
  6184. /^bilder\.nixhelp\.de$/,
  6185. /^imagecurl\.(com|org)$/,
  6186. /^imagevau\.eu$/,
  6187. /^img\.deli\.sh$/,
  6188. /^img(dream|soo|nm|silo)\.net$/,
  6189. /^imgsicily\.it$/,
  6190. /^www\.imghere\.net$/,
  6191. ],
  6192. path: /^\/viewer\.php$/,
  6193. query: /file=([^&]+)/,
  6194. },
  6195. start: helper,
  6196. });
  6197. $.register({
  6198. rule: {
  6199. host: /^(dwimg|imgsin|www\.pictureshoster)\.com$/,
  6200. path: /^\/viewer\.php$/,
  6201. query: /file=([^&]+)/,
  6202. },
  6203. start: function (m) {
  6204. $.openImage('/files/' + m.query[1]);
  6205. },
  6206. });
  6207. $.register({
  6208. rule: {
  6209. host: [
  6210. /img(nip|central|cream)\.com$/,
  6211. /imageview\.me|244pix\.com|postimg\.net$/,
  6212. ],
  6213. path: /^\/viewerr.*\.php$/,
  6214. query: /file=([^&]+)/,
  6215. },
  6216. start: helper,
  6217. });
  6218. $.register({
  6219. rule: [
  6220. 'http://www.overpic.net/viewer.php?file=*',
  6221. ],
  6222. ready: function () {
  6223. var i = $('#main_img');
  6224. $.openImage(i.src);
  6225. },
  6226. });
  6227. $.register({
  6228. rule: {
  6229. host: /(empireload|loadsanook)\.com$/,
  6230. query: /file=([^&]+)/,
  6231. },
  6232. start: function (m) {
  6233. $.openImage('files/' + m.query[1]);
  6234. },
  6235. });
  6236. $.register({
  6237. rule: {
  6238. host: /^dumppix\.com$/,
  6239. path: /^\/viewer\.php$/,
  6240. query: /file=([^&]+)/,
  6241. },
  6242. start: function (m) {
  6243. $.openImage('/images/' + m.query[1], {
  6244. referer: true,
  6245. });
  6246. },
  6247. });
  6248. $.register({
  6249. rule: {
  6250. host: /^xxxhost\.me$/,
  6251. path: /^\/viewer\d+\.php$/,
  6252. query: /file=([^&]+)/,
  6253. },
  6254. start: function (m) {
  6255. $.openImage('files/' + m.query[1]);
  6256. },
  6257. });
  6258. })();
  6259. $.register({
  6260. rule: {
  6261. host: /^www\.mrjh\.org$/,
  6262. path: /^\/gallery\.php$/,
  6263. query: /^\?entry=(.+)$/,
  6264. },
  6265. ready: function (m) {
  6266. 'use strict';
  6267. var url = m.query[1];
  6268. $.openImage('/' + url);
  6269. },
  6270. });
  6271. $.register({
  6272. rule: {
  6273. host: /^www\.noelshack\.com$/
  6274. },
  6275. ready: function () {
  6276. var i = $('#elt_to_aff');
  6277. $.openImage(i.src);
  6278. },
  6279. });
  6280. $.register({
  6281. rule: 'http://pic-money.ru/*.html',
  6282. ready: function () {
  6283. 'use strict';
  6284. var f = document.forms[0];
  6285. var sig = $('input[name="sig"]', f).value;
  6286. var pic_id = $('input[name="pic_id"]', f).value;
  6287. var referer = $('input[name="referer"]', f).value;
  6288. var url = _.T('/pic.jpeg?pic_id={pic_id}&sig={sig}&referer={referer}');
  6289. $.openImage(url({
  6290. sig: sig,
  6291. pic_id: pic_id,
  6292. referer: referer,
  6293. }));
  6294. },
  6295. });
  6296. $.register({
  6297. rule: 'http://www.pic-upload.de/view-*.html',
  6298. ready: function () {
  6299. 'use strict';
  6300. $.removeNodes('.advert');
  6301. var i = $('img.preview_picture_2b, img.original_picture_2b');
  6302. $.openImage(i.src);
  6303. },
  6304. });
  6305. $.register({
  6306. rule: {
  6307. host: /^pic(2profit|p2)\.com$/,
  6308. },
  6309. ready: function () {
  6310. 'use strict';
  6311. var i = $('form > #d1 ~ input[name=bigimg]');
  6312. $.openImage(i.value);
  6313. },
  6314. });
  6315. $.register({
  6316. rule: {
  6317. host: /^pic(4|5)you.ru$/
  6318. },
  6319. ready: function () {
  6320. if ($.$('#d1 > img') != null) {
  6321. var URLparams = location.href.split("/", 5);
  6322. var next = URLparams[0] + '/' + URLparams[1] + '/' + URLparams[2] + '/' + URLparams[3] + '/' + URLparams[4] + '/1/';
  6323. $.setCookie('p4yclick','1');
  6324. $.openLink(next);
  6325. } else {
  6326. var i = $('#d1 img').src;
  6327. $.openImage(i);
  6328. }
  6329. },
  6330. });
  6331. $.register({
  6332. rule: {
  6333. host: /^(www\.)?piccash\.net$/
  6334. },
  6335. ready: function () {
  6336. var i = $('.container > img');
  6337. var m =i.onclick.toString().match(/mshow\('([^']+)'\);/);
  6338. $.openImage(m[1]);
  6339. },
  6340. });
  6341. $.register({
  6342. rule: [
  6343. 'http://amateurfreak.org/share-*.html',
  6344. 'http://amateurfreak.org/share.php?id=*',
  6345. 'http://images.maxigame.by/share-*.html',
  6346. 'http://picfox.org/*',
  6347. 'http://www.euro-pic.eu/share.php?id=*',
  6348. 'http://www.gratisimage.dk/share-*.html',
  6349. 'http://xxx.freeimage.us/share.php?id=*',
  6350. 'http://npicture.net/share-*.html',
  6351. 'http://www.onlinepic.net/share.php?id=*',
  6352. 'http://www.pixsor.com/share.php?id=*',
  6353. 'http://www.pixsor.com/share-*.html',
  6354. 'http://pixsor.com/XXX/share-*.html',
  6355. 'http://holdthemoan.net/x/share-*.html',
  6356. 'http://imgurx.net/x/share-*.html',
  6357. 'http://www.imgz.pw/share-*.html',
  6358. ],
  6359. ready: function () {
  6360. 'use strict';
  6361. var o = $('#iimg');
  6362. $.openImage(o.src);
  6363. },
  6364. });
  6365. $.register({
  6366. rule: 'http://picmoe.net/d.php?id=*',
  6367. ready: function () {
  6368. 'use strict';
  6369. var i = $('img');
  6370. $.openImage(i.src);
  6371. },
  6372. });
  6373. $.register({
  6374. rule: [
  6375. 'http://pics-money.ru/allpicfree/*',
  6376. 'http://www.pics-money.ru/allimage/*',
  6377. ],
  6378. });
  6379. $.register({
  6380. rule: {
  6381. host: /^pics-money\.ru$/,
  6382. path: /^\/v\.php$/,
  6383. },
  6384. ready: function () {
  6385. 'use strict';
  6386. $.removeNodes('iframe');
  6387. var i = $('center img:not([id])');
  6388. $.openImage(i.src);
  6389. },
  6390. });
  6391. $.register({
  6392. rule: {
  6393. host: /^www\.pics-money\.ru$/,
  6394. },
  6395. ready: function () {
  6396. 'use strict';
  6397. $.removeNodes('iframe');
  6398. var i = $('#d1 img');
  6399. i = i.onclick.toString();
  6400. i = i.match(/mshow\('(.+)'\)/);
  6401. i = i[1];
  6402. $.openImage(i);
  6403. },
  6404. });
  6405. $.register({
  6406. rule: 'http://picshare.geenza.com/pics/*',
  6407. ready: function () {
  6408. 'use strict';
  6409. var i = $('#picShare_image_container');
  6410. $.openImage(i.src);
  6411. },
  6412. });
  6413. $.register({
  6414. rule: {
  6415. host: /^picstream\.tv$/,
  6416. path: /^\/.*\/.*\.html$/,
  6417. },
  6418. ready: function () {
  6419. 'use strict';
  6420. var img = $('#view1 > div:nth-child(1) > img:nth-child(1)');
  6421. $.openImage(img.src);
  6422. },
  6423. });
  6424. $.register({
  6425. rule: {
  6426. host: /^(www\.)?pimpandhost\.com$/,
  6427. path: /^\/image\//,
  6428. },
  6429. ready: function () {
  6430. 'use strict';
  6431. var a = $('#image_original');
  6432. var el = document.createElement('div');
  6433. el.innerHTML = a.value;
  6434. var img = $('img', el);
  6435. $.openImage(img.src);
  6436. },
  6437. });
  6438. $.register({
  6439. rule: {
  6440. host: /^pixhub\.eu$/,
  6441. },
  6442. ready: function () {
  6443. 'use strict';
  6444. $.removeNodes('iframe, .adultpage, #FFN_Banner_Holder');
  6445. var i = $('.image-show img');
  6446. $.openImage(i.src);
  6447. },
  6448. });
  6449. $.register({
  6450. rule: {
  6451. host: /^(www\.)?pixroute\.com$/
  6452. },
  6453. ready: function () {
  6454. 'use strict';
  6455. var o = $('.fr4me > div:nth-child(20) > a:nth-child(1) > img:nth-child(1)');
  6456. $.openImage(o.src);
  6457. },
  6458. });
  6459. $.register({
  6460. rule: {
  6461. host: /^www\.pixsense\.net$/,
  6462. path: /^\/site\/v\/\d+$/,
  6463. },
  6464. ready: function () {
  6465. 'use strict';
  6466. var a = $('#myUniqueImg').parentNode;
  6467. $.openLink(a.href);
  6468. },
  6469. });
  6470. $.register({
  6471. rule: {
  6472. host: /^pixxxels\.org$/,
  6473. },
  6474. ready: function () {
  6475. 'use strict';
  6476. var img = $.$('#main-image');
  6477. $.openImage(img.dataset.full);
  6478. },
  6479. });
  6480. $.register({
  6481. rule: {
  6482. host: /^www\.pornimagex\.com$/,
  6483. path: /^\/image\/.*$/,
  6484. },
  6485. ready: function () {
  6486. 'use strict';
  6487. var img = $('#fixed img.border2px');
  6488. $.openImage(img.src);
  6489. },
  6490. });
  6491. $.register({
  6492. rule: {
  6493. host: /^prntscr\.com$/
  6494. },
  6495. ready: function () {
  6496. 'use strict';
  6497. var i = $('#screenshot-image');
  6498. $.openImage(i.src);
  6499. },
  6500. });
  6501. $.register({
  6502. rule: {
  6503. host: /^pronpic\.org$/,
  6504. },
  6505. ready: function () {
  6506. 'use strict';
  6507. var img = $('table.new_table2:nth-child(2) img.link');
  6508. var url = img.src.replace('th_', '');
  6509. $.openImage(url);
  6510. },
  6511. });
  6512. $.register({
  6513. rule: {
  6514. host: /^(qrrro|greenpiccs)\.com$/,
  6515. path: /^(\/images\/.+)\.html$/,
  6516. },
  6517. start: function (m) {
  6518. 'use strict';
  6519. $.openImage(m.path[1]);
  6520. },
  6521. });
  6522. $.register({
  6523. rule: {
  6524. host: /^radikal\.ru$/,
  6525. path: /^\/big\//,
  6526. },
  6527. ready: function () {
  6528. 'use strict';
  6529. var i = $.$('.base-page_center > div:nth-child(2) > img:nth-child(1)');
  6530. $.openImage(i.src);
  6531. },
  6532. });
  6533. (function () {
  6534. 'use strict';
  6535. function action (firstSelector, secondSelector) {
  6536. $.removeNodes('iframe, #adblock_detect, .popupOverlay');
  6537. var node = $.$(firstSelector);
  6538. if (node) {
  6539. _.wait(500).then(function () {
  6540. node.removeAttribute('disabled');
  6541. return _.wait(500);
  6542. }).then(function () {
  6543. node.focus();
  6544. node.click();
  6545. node.click();
  6546. node.click();
  6547. });
  6548. return;
  6549. }
  6550. var i = $(secondSelector);
  6551. $.openImage(i.src);
  6552. }
  6553. var defaultAction = _.P(action, '#continuetoimage > form input', 'img[class^=centred]');
  6554. $.register({
  6555. rule: [
  6556. {
  6557. host: [
  6558. /^image(ontime|corn|picsa|horse|decode)\.com$/,
  6559. /^(zonezeed|zelje|croft|myhot|bok|hostur|greasy|dam)image\.com$/,
  6560. /^img(icy|next|savvy|\.spicyzilla|twyti|xyz|devil|tzar|ban|pu|beer|wet|tornado|kicks|-pay|nimz|binbou|2share|22|cover|hit|main|trial|blank|-uploads|reputa|fapper)\.com$/,
  6561. /^img-(zone|planet)\.com$/,
  6562. /^www\.img(blow|lemon|4sharing)\.com$/,
  6563. /^www\.imagefolks\.com$/,
  6564. /^www\.freephotohostin\.com$/,
  6565. /^www\.hotimage\.uk$/,
  6566. /^xxx(imagenow|screens)\.com$/,
  6567. /^(playimg|picstwist|ericsony|wpc8|uplimg|lexiit|thumbnailus|newimagepost|fapingpics|dimtus|tinizo)\.com$/,
  6568. /^((i|hentai)\.)?imgslip\.com$/,
  6569. /^(i|xxx)\.hentaiyoutube\.com$/,
  6570. /^(go|er)imge\.com$/,
  6571. /^(like\.)?08lkk\.com$/,
  6572. /^(www\.)?\.imgult\.com$/,
  6573. /^nim(plus|zshare)\.com$/,
  6574. /^nudeximg\.com$/,
  6575. /imgseeds?\.com$/,
  6576. /xxxsparrow?\.com$/,
  6577. /^img(serve|coin|fap|candy|master|-view|run|boom|project|python|pics|pix)\.net$/,
  6578. /^(imagesouls|naughtygate|gallerycloud|imagelaser|picture-bang|project-photo|pix-link|funimg|golfpit|xximg)\.net$/,
  6579. /^(shot|adult)img\.org$/,
  6580. /^img(studio|spot)\.org$/,
  6581. /^image(\.adlock|on|team)\.org$/,
  6582. /^(voyeur|drag|teen|mega)image\.org$/,
  6583. /^teenshot\.org$/,
  6584. /^(hotimages|55888)\.eu$/,
  6585. /^img(cloud|mag)\.co$/,
  6586. /^pixup\.us$/,
  6587. /^(bulkimg|photo-up|myimg|pop-img|img-pop|ads-img)\.info$/,
  6588. /^vava\.in$/,
  6589. /^(pixxx|picspornfree|imgload|fapat)\.me$/,
  6590. /^(domaink|pic2pic|porno-pirat|24avarii|loftlm|18pron|imgplus)\.ru$/,
  6591. /^imgease\.re$/,
  6592. /^goimg\.xyz$/,
  6593. /^(pic2pic|picz)\.site$/,
  6594. /^darpix\.ga$/,
  6595. /^sxpics\.nl$/,
  6596. /^darpix\.desi$/,
  6597. /^pic4you\.top$/,
  6598. /^imgsen\.se$/,
  6599. /^ipicture\.su$/,
  6600. ],
  6601. path: /^\/img-.*\.html/,
  6602. },
  6603. {
  6604. host: [
  6605. /^img(run|twyti)\.net$/,
  6606. /^imgtwyti\.com$/,
  6607. /^hentai-(pop|baka)\.com$/,
  6608. /^star-hentai\.com$/,
  6609. /^(jav|img)-hentai\.host$/,
  6610. /^hentai-king\.host$/,
  6611. /^img-king\.xyz$/,
  6612. ],
  6613. path: /^\/[ti]\/img-.*\.html/,
  6614. },
  6615. {
  6616. host: /^imgking\.co$/,
  6617. path: /^\/img4?-.*\.html/,
  6618. },
  6619. {
  6620. host: /^imgbb\.net$/,
  6621. path: /^\/.-.+$/,
  6622. },
  6623. {
  6624. host: /^cdn\.javtotal\.com$/,
  6625. path: /^\/img\/.+$/,
  6626. },
  6627. {
  6628. host: /^imgtor\.pw$/,
  6629. path: /^\/img2\/.+$/,
  6630. },
  6631. {
  6632. host: /^ima\.gy$/,
  6633. path: /^\/i\/.+$/,
  6634. },
  6635. ],
  6636. ready: defaultAction,
  6637. });
  6638. $.register({
  6639. rule: {
  6640. host: /^imgtor\.pw$/,
  6641. path: /^\/img\/.*$/,
  6642. },
  6643. start: function (m) {
  6644. var imageUrl = 'http://' + m.host[0] + m.path[0].replace("img","img2");
  6645. $.openLink(imageUrl);
  6646. },
  6647. });
  6648. $.register({
  6649. rule: {
  6650. host: /^imgrat\.com$/,
  6651. path: /^\/img-.*\.html/,
  6652. },
  6653. ready: _.P(action, '#close', '#main_image img.center-block.img-responsive'),
  6654. });
  6655. $.register({
  6656. rule: {
  6657. host: [
  6658. /^imageporn\.eu$/,
  6659. /^imgzizi\.xyz$/,
  6660. ],
  6661. path: /^\/img-.*\.html/,
  6662. },
  6663. start: function () {
  6664. $.window.document.createElement = null;
  6665. },
  6666. ready: defaultAction,
  6667. });
  6668. $.register({
  6669. rule: {
  6670. host: [
  6671. /^www\.img(adult|wallet)\.com$/,
  6672. /^www\.imgdrive\.net$/,
  6673. /^(www\.)?imgtaxi\.com$/,
  6674. ],
  6675. path: /^\/img-.*\.html$/,
  6676. },
  6677. start: function () {
  6678. var c = $.getCookie('img_c_d') || $.getCookie('img_p_d');
  6679. if (c) {
  6680. return;
  6681. }
  6682. $.post(window.location.href.toString(), {
  6683. cti: 1,
  6684. ref: '',
  6685. rc: 1,
  6686. }).then(function (data) {
  6687. window.location.reload();
  6688. });
  6689. },
  6690. ready: function () {
  6691. $.removeNodes('iframe');
  6692. var node = $.$('#continuetoimage > form input');
  6693. if (node) {
  6694. node.click();
  6695. node.click();
  6696. return;
  6697. }
  6698. $.resetCookies();
  6699. var i = $('img[class^=centred]');
  6700. $.openImage(i.src);
  6701. },
  6702. });
  6703. function helper () {
  6704. $.window.setTimeout = _.nop;
  6705. return $.get(window.location.toString()).then(function (data) {
  6706. return $.toDOM(data);
  6707. });
  6708. }
  6709. $.register({
  6710. rule: {
  6711. host: /^08lkk\.com$/,
  6712. path: /^\/Photo\/img-.+\.html$/,
  6713. },
  6714. start: function () {
  6715. helper().then(function (page) {
  6716. var i = $('img[class^=centred]', page);
  6717. $.openImage(i.src);
  6718. });
  6719. },
  6720. });
  6721. $.register({
  6722. rule: {
  6723. host: /^08lkk\.com$/,
  6724. path: /^\/\d+\/img-.*\.html$/,
  6725. },
  6726. start: function () {
  6727. helper().then(function (page) {
  6728. var bbcode = $.$('#imagecodes input', page);
  6729. bbcode = bbcode.value.match(/.+\[IMG\]([^\[]+)\[\/IMG\].+/);
  6730. bbcode = bbcode[1];
  6731. bbcode = bbcode.replace('small', 'big');
  6732. $.openImage(bbcode);
  6733. });
  6734. },
  6735. });
  6736. $.register({
  6737. rule: [
  6738. {
  6739. host: /^imgking\.co$/,
  6740. path: /^\/imgs-.*\.html/,
  6741. },
  6742. {
  6743. host: [
  6744. /^img(kings|prime)\.com$/,
  6745. /^imagerar\.com$/,
  6746. ],
  6747. path: /^\/img-.*\.html/,
  6748. },
  6749. ],
  6750. ready: function () {
  6751. var url = $.window.linkid;
  6752. $.openImage(url);
  6753. },
  6754. });
  6755. $.register({
  6756. rule: {
  6757. host: /^imgkings\.com$/,
  6758. path: /^\/img2-.*\.html/,
  6759. },
  6760. ready: defaultAction,
  6761. });
  6762. $.register({
  6763. rule: [
  6764. {
  6765. host: /^imagerar\.com$/,
  6766. path: /^\/img2-/,
  6767. },
  6768. {
  6769. host: /^imgking\.co$/,
  6770. path: /^\/img[v3]-.*\.html/,
  6771. },
  6772. {
  6773. host: /^imgprime\.com$/,
  6774. path: /^\/img3-.*\.html$/,
  6775. },
  6776. ],
  6777. ready: function () {
  6778. var i = $('img[alt]');
  6779. $.openImage(i.src);
  6780. },
  6781. });
  6782. $.register({
  6783. rule: {
  6784. host: /^img\.yt$/,
  6785. path: /^\/img-.*\.html/,
  6786. },
  6787. ready: _.P(action, '#continuebutton, #continuetoimage input[type="submit"]', 'img[class^=centred]'),
  6788. });
  6789. })();
  6790. $.register({
  6791. rule: 'http://www.subirimagenes.com/*.html',
  6792. ready: function () {
  6793. 'use strict';
  6794. var i = $('#ImagenVisualizada');
  6795. $.openImage(i.src);
  6796. },
  6797. });
  6798. $.register({
  6799. rule: 'http://tinypic.com/view.php?pic=*',
  6800. ready: function () {
  6801. 'use strict';
  6802. var i = $('#imgElement');
  6803. $.openImage(i.src);
  6804. },
  6805. });
  6806. $.register({
  6807. rule: {
  6808. host: /^www\.turboimagehost\.com$/,
  6809. path: /^\/p\//,
  6810. },
  6811. ready: function () {
  6812. 'use strict';
  6813. var i = $('#imageid');
  6814. $.openImage(i.src);
  6815. },
  6816. });
  6817. $.register({
  6818. rule: 'http://vvcap.net/db/*.htp',
  6819. ready: function () {
  6820. 'use strict';
  6821. var i = $('img');
  6822. $.openImage(i.src, {
  6823. replace: true,
  6824. });
  6825. },
  6826. });
  6827. $.register({
  6828. rule: {
  6829. host: /^x\.pixfarm\.net$/,
  6830. path: /^\/sexy\/\d+\/\d+\/.+\.html$/,
  6831. },
  6832. ready: function () {
  6833. 'use strict';
  6834. var i = $('img');
  6835. $.openImage(i.src);
  6836. },
  6837. });
  6838. $.register({
  6839. rule: {
  6840. host: /\.yfrog\.com$/,
  6841. },
  6842. ready: function () {
  6843. 'use strict';
  6844. if (/^\/z/.test(window.location.pathname)) {
  6845. var i = $('#the-image img');
  6846. $.openImage(i.src);
  6847. return;
  6848. }
  6849. var a = $.$('#continue-link a, #main_image');
  6850. if (a) {
  6851. $.openLink('/z' + window.location.pathname);
  6852. return;
  6853. }
  6854. },
  6855. });
  6856. $.register({
  6857. rule: {
  6858. host: /^akoam\.com$/,
  6859. path: /^\/download\//,
  6860. },
  6861. start: function () {
  6862. 'use strict';
  6863. var location_link = location.hash;
  6864. $.post(location_link).then(function (data) {
  6865. data = JSON.parse(data);
  6866. if (!data.hash_data) {
  6867. _.warn('rule changed');
  6868. return;
  6869. }
  6870. $.openLink(data.direct_link);
  6871. });
  6872. },
  6873. });
  6874. $.register({
  6875. rule: {
  6876. host: /^www\.anafile\.com$/,
  6877. },
  6878. ready: function () {
  6879. 'use strict';
  6880. var b = $.$('#btn_download');
  6881. if (b) {
  6882. b.disabled = false;
  6883. $.removeNodes('div[align=center]');
  6884. return;
  6885. }
  6886. b = $('#plans_free form [type=submit]');
  6887. b.click();
  6888. },
  6889. });
  6890. $.register({
  6891. rule: {
  6892. host: /^(www\.)?arab\.sh$/,
  6893. path: /^\/\w+$/,
  6894. },
  6895. ready: function () {
  6896. 'use strict';
  6897. var f = $('form[name=F1]');
  6898. setTimeout(function() {
  6899. f.submit();
  6900. }, 20000);
  6901. },
  6902. });
  6903. $.register({
  6904. rule: {
  6905. host: /^(www\.)?coolrom\.com$/,
  6906. path: /^\/dlpop\.php$/,
  6907. },
  6908. ready: function () {
  6909. 'use strict';
  6910. var matches = $.searchScripts(/<form method="POST" action="([^"]+)">/);
  6911. $.openLink(matches[1]);
  6912. },
  6913. });
  6914. (function() {
  6915. 'use strict';
  6916. $.register({
  6917. rule: {
  6918. host: /^(www\.)?dl-protect\.com$/,
  6919. path: /\/[A-Z0-9]+/,
  6920. },
  6921. ready: function () {
  6922. if ($.$('#captcha')) {
  6923. return;
  6924. }
  6925. var f = $.$('form[name=ccerure]');
  6926. if (f) {
  6927. var observer = new MutationObserver(function (mutations) {
  6928. var iIn = $('input[id=in]');
  6929. for (var i = 0; i < mutations.length; i++) {
  6930. if (mutations[i].target.value && mutations[i].attributeName === 'value') {
  6931. observer.disconnect();
  6932. iIn.value = "Tracking too much hurts users' privacy";
  6933. if (!canFastRedirect()) {
  6934. return;
  6935. }
  6936. setTimeout(function() {
  6937. f.submit();
  6938. }, 600);
  6939. break;
  6940. }
  6941. }
  6942. });
  6943. var iIn = $('input[id=in]');
  6944. if (iIn.value) {
  6945. setTimeout(function() {
  6946. f.submit();
  6947. }, 600);
  6948. } else {
  6949. observer.observe(iIn, {
  6950. attributes: true,
  6951. });
  6952. }
  6953. return;
  6954. }
  6955. var l = $.$$('#slinks > a');
  6956. if (l.size() === 1) {
  6957. $.openLink(l.at(0).href);
  6958. }
  6959. },
  6960. });
  6961. function canFastRedirect () {
  6962. return !$.$('form[name=ccerure]').onsubmit && !$.$('form[name=ccerure] input[name=pwd]');
  6963. }
  6964. })();
  6965. $.register({
  6966. rule: {
  6967. host: /^(www\.)?embedupload\.com$/,
  6968. path: /^\/$/,
  6969. query: /^\?\w{2}=\w+$/
  6970. },
  6971. ready: function () {
  6972. 'use strict';
  6973. var downloadPage = $('.categories a[target=_blank]');
  6974. $.openLink(downloadPage);
  6975. },
  6976. });
  6977. $.register({
  6978. rule: {
  6979. host: /^www\.fileproject\.com\.br$/,
  6980. path: /^\/files\/+/,
  6981. },
  6982. ready: function () {
  6983. 'use strict';
  6984. var m = $.searchScripts(/<a id="down" href="([^"]+)">/);
  6985. $.openLink(m[1]);
  6986. },
  6987. });
  6988. $.register({
  6989. rule: {
  6990. host: /^(www\.)?(firedrive|putlocker)\.com$/,
  6991. path: /^\/file\/[0-9A-F]+$/,
  6992. },
  6993. ready: function () {
  6994. 'use strict';
  6995. var c = $('#confirm_form');
  6996. c.submit();
  6997. },
  6998. });
  6999. $.register({
  7000. rule: {
  7001. host: /^iori\.us$/,
  7002. },
  7003. ready: function () {
  7004. 'use strict';
  7005. var a = $('#wrapper .tombol a');
  7006. $.openLink(a.href);
  7007. },
  7008. });
  7009. $.register({
  7010. rule: {
  7011. host: /^(www\.)?jheberg\.net$/,
  7012. path: /^\/captcha\//,
  7013. },
  7014. ready: function () {
  7015. 'use strict';
  7016. $('.dl-button').click();
  7017. },
  7018. });
  7019. $.register({
  7020. rule: {
  7021. host: /^(www\.)?jheberg\.net$/,
  7022. path: /^\/redirect\//,
  7023. },
  7024. ready: function () {
  7025. 'use strict';
  7026. $.removeAllTimer();
  7027. var matches = $.searchScripts(/'slug':\s*'([^']+)',\s*'hoster':\s*'([^']+)'/);
  7028. var slug = matches[1];
  7029. var hoster = matches[2];
  7030. $.post('/get/link/', {
  7031. 'slug': slug,
  7032. 'hoster': hoster
  7033. }).then(function(response) {
  7034. var respJSON = _.parseJSON(response);
  7035. $.openLink(respJSON.url);
  7036. });
  7037. },
  7038. });
  7039. $.register({
  7040. rule: {
  7041. host: /^(www\.)?larashare\.com$/,
  7042. path: /^\/do\.php$/,
  7043. query: /id=\d+/,
  7044. },
  7045. start: function () {
  7046. 'use strict';
  7047. $.openLink(document.location.href.replace('id=','down='));
  7048. },
  7049. });
  7050. $.register({
  7051. rule: {
  7052. host: /^(www\.)?maxmirror\.com$/,
  7053. path: /^\/redirect\//,
  7054. },
  7055. ready: function () {
  7056. 'use strict';
  7057. var l = $('#download_url > a');
  7058. $.openLink(l.href);
  7059. },
  7060. });
  7061. $.register({
  7062. rule: {
  7063. host: /^(www\.)?mirrorcreator\.com$/,
  7064. path: /^\/showurl\.php$/,
  7065. },
  7066. ready: function () {
  7067. 'use strict';
  7068. var a = $.$('#redirectlink a');
  7069. if (a) {
  7070. $.openLink(a.href);
  7071. return;
  7072. }
  7073. a = $('#redirectlink > div.redirecturl');
  7074. a = a.innerHTML;
  7075. if (!a.match(/^http/)) {
  7076. throw new _.AdsBypasserError('not a valid URL');
  7077. }
  7078. $.openLink(a);
  7079. },
  7080. });
  7081. $.register({
  7082. rule: {
  7083. host: /^www.mirrorupload.net$/,
  7084. },
  7085. ready: function () {
  7086. 'use strict';
  7087. var accessForm = $('form[name=form_upload]');
  7088. var accessInput = document.createElement('input');
  7089. accessInput.type = 'hidden';
  7090. accessInput.name = 'access';
  7091. accessInput.value = Math.random();
  7092. accessForm.appendChild(accessInput);
  7093. accessForm.submit();
  7094. },
  7095. });
  7096. $.register({
  7097. rule: {
  7098. host: /^www\.multiupfile\.com$/,
  7099. path: /^\/f\//,
  7100. },
  7101. ready: function () {
  7102. 'use strict';
  7103. var f = $('#yw0');
  7104. f.submit();
  7105. },
  7106. });
  7107. $.register({
  7108. rule: {
  7109. host: /^mylinkgen\.com$/,
  7110. path: /^\/p\/(.+)$/,
  7111. },
  7112. start: function (m) {
  7113. 'use strict';
  7114. $.openLink('/g/' + m.path[1]);
  7115. },
  7116. });
  7117. $.register({
  7118. rule: {
  7119. host: /^mylinkgen\.com$/,
  7120. path: /^\/g\//,
  7121. },
  7122. ready: function () {
  7123. 'use strict';
  7124. var a = $('#main-content a.btn.btn-default');
  7125. $.openLink(a.href);
  7126. },
  7127. });
  7128. $.register({
  7129. rule: {
  7130. host: [
  7131. /^openload\.co$/,
  7132. /^oload\.tv$/,
  7133. ],
  7134. path: /^\/f\/.*/,
  7135. },
  7136. start: function (m) {
  7137. $.window.adblock = false;
  7138. $.window.adblock2 = false;
  7139. $.window.popAdsLoaded = true;
  7140. },
  7141. ready: function () {
  7142. 'use strict';
  7143. setTimeout(function () {
  7144. var timer = $('#downloadTimer');
  7145. timer.style.display = 'none';
  7146. var dlCtn = $('#realdl');
  7147. dlCtn.style.display = 'inline-block';
  7148. var dlBtn = $('a', dlCtn);
  7149. var ePath = $('#streamurl');
  7150. dlBtn.href = "/stream/" + ePath.textContent;
  7151. var videoCtn = $.$('.videocontainer');
  7152. if (videoCtn) {
  7153. var overlay = $('#videooverlay', videoCtn);
  7154. overlay.click();
  7155. dlBtn.addEventListener('click', function (evt) {
  7156. evt.preventDefault();
  7157. var iframe = document.createElement('iframe');
  7158. iframe.src = dlBtn.href;
  7159. document.body.appendChild(iframe);
  7160. });
  7161. _.info(_.T('{0} -> {1}')(window.location, dlBtn.href));
  7162. dlBtn.click();
  7163. } else {
  7164. $.openLink(dlBtn.href);
  7165. }
  7166. }, 500);
  7167. }
  7168. });
  7169. $.register({
  7170. rule: {
  7171. host: /^(www\.)?upmirror\.info$/,
  7172. },
  7173. ready: function () {
  7174. 'use strict';
  7175. $.setCookie('user', 'ppp');
  7176. if ($.$('#countDownText')) {
  7177. $.openLink(document.location.toString());
  7178. }
  7179. },
  7180. });
  7181. $.register({
  7182. rule: {
  7183. host: /^(www\.)?vidto\.me$/,
  7184. },
  7185. ready: function () {
  7186. 'use strict';
  7187. var f = $('#btn_download').form;
  7188. setTimeout(function() {
  7189. f.submit();
  7190. }, 6000);
  7191. },
  7192. });
  7193. (function () {
  7194. 'use strict';
  7195. var sUrl = '(\\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])';
  7196. function isLink (text) {
  7197. var rUrl = new RegExp(_.T('^{0}$')(sUrl), 'i');
  7198. return rUrl.test(text);
  7199. }
  7200. function linkify (text) {
  7201. var rUrl = new RegExp(sUrl, 'ig');
  7202. return text.replace(rUrl, function(match) {
  7203. return _.T("<a href='{0}'>{0}</a>")(match);
  7204. });
  7205. }
  7206. $.register({
  7207. rule: {
  7208. host: /^(www\.)?([a-zA-Z0-9]+\.)?binbox\.io$/,
  7209. path: /\/([a-zA-Z0-9]+)/,
  7210. hash: /(?:#([a-zA-Z0-9]+))?/,
  7211. },
  7212. ready: function (m) {
  7213. var sjcl = $.window.sjcl;
  7214. var paste_id = m.path[1];
  7215. var paste_salt = m.hash[1];
  7216. var API_URL = _.T('https://binbox.io/{0}.json')(paste_id);
  7217. $.get(API_URL, false, {
  7218. Origin: _.none,
  7219. Referer: _.none,
  7220. Cookie: 'referrer=1',
  7221. 'X-Requested-With': _.none,
  7222. }).then(function (pasteInfo) {
  7223. pasteInfo = _.parseJSON(pasteInfo);
  7224. if (!pasteInfo.ok) {
  7225. throw new _.AdsBypasserError("error when getting paste information");
  7226. }
  7227. if (pasteInfo.paste.url) {
  7228. $.openLink(pasteInfo.paste.url);
  7229. return;
  7230. }
  7231. var raw_paste = sjcl.decrypt(paste_salt, pasteInfo.paste.text);
  7232. if (isLink(raw_paste)) {
  7233. $.openLink(raw_paste);
  7234. return;
  7235. }
  7236. var elm = document.createElement('pre');
  7237. elm.id = 'paste-text';
  7238. elm.innerHTML = linkify(raw_paste);
  7239. var frame = $('#paste-frame, #captcha-page');
  7240. frame.parentNode.replaceChild(elm, frame);
  7241. });
  7242. },
  7243. });
  7244. })();
  7245. $.register({
  7246. rule: {
  7247. host: /^(www\.)?pasted\.co$/,
  7248. path: /^\/\w+$/,
  7249. },
  7250. ready: function () {
  7251. 'use strict';
  7252. $.removeNodes('#captcha_overlay');
  7253. },
  7254. });
  7255. (function (context, factory) {
  7256. if (typeof module === 'object' && typeof module.exports === 'object') {
  7257. module.exports = function (context, GM) {
  7258. var _ = require('lodash');
  7259. var core = require('./core.js');
  7260. var misc = require('./misc.js');
  7261. var dispatcher = require('./dispatcher.js');
  7262. var modules = [misc, dispatcher].map(function (v) {
  7263. return v.call(null, context, GM);
  7264. });
  7265. var $ = _.assign.apply(_, modules);
  7266. return factory(context, GM, core, $);
  7267. };
  7268. } else {
  7269. factory(context, {
  7270. openInTab: GM_openInTab,
  7271. registerMenuCommand: GM_registerMenuCommand,
  7272. }, context._, context.$);
  7273. }
  7274. }(this, function (context, GM, _, $) {
  7275. 'use strict';
  7276. var window = context.window;
  7277. var document = window.document;
  7278. var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;
  7279. function disableWindowOpen () {
  7280. $.window.open = function () {
  7281. return {
  7282. closed: false,
  7283. };
  7284. };
  7285. $.window.alert = _.nop;
  7286. $.window.confirm = _.nop;
  7287. }
  7288. function disableLeavePrompt (element) {
  7289. if (!element) {
  7290. return;
  7291. }
  7292. var seal = {
  7293. set: function () {
  7294. _.info('blocked onbeforeunload');
  7295. },
  7296. };
  7297. element.onbeforeunload = undefined;
  7298. if (isSafari) {
  7299. element.__defineSetter__('onbeforeunload', seal.set);
  7300. } else {
  7301. $.window.Object.defineProperty(element, 'onbeforeunload', {
  7302. configurable: true,
  7303. enumerable: false,
  7304. get: undefined,
  7305. set: seal.set,
  7306. });
  7307. }
  7308. var oael = element.addEventListener;
  7309. var nael = function (type) {
  7310. if (type === 'beforeunload') {
  7311. _.info('blocked addEventListener onbeforeunload');
  7312. return;
  7313. }
  7314. return oael.apply(this, arguments);
  7315. };
  7316. element.addEventListener = nael;
  7317. }
  7318. function changeTitle () {
  7319. document.title += ' - AdsBypasser';
  7320. }
  7321. function beforeDOMReady (handler) {
  7322. _.info('working on\n%s \nwith\n%s', window.location.toString(), JSON.stringify($.config));
  7323. disableLeavePrompt($.window);
  7324. disableWindowOpen();
  7325. handler.start();
  7326. }
  7327. function afterDOMReady (handler) {
  7328. disableLeavePrompt($.window.document.body);
  7329. changeTitle();
  7330. handler.ready();
  7331. }
  7332. function waitDOM () {
  7333. return _.D(function (resolve, reject) {
  7334. if (document.readyState !== 'loading') {
  7335. resolve();
  7336. return;
  7337. }
  7338. document.addEventListener('DOMContentLoaded', function () {
  7339. resolve();
  7340. });
  7341. });
  7342. }
  7343. $._main = function () {
  7344. var findHandler = $._findHandler;
  7345. delete $._main;
  7346. delete $._findHandler;
  7347. if (unsafeWindow.top !== unsafeWindow.self) {
  7348. return;
  7349. }
  7350. GM.registerMenuCommand('AdsBypasser - Configure', function () {
  7351. GM.openInTab('https://adsbypasser.github.io/configure.html');
  7352. });
  7353. var handler = findHandler(true);
  7354. if (handler) {
  7355. if ($.config.logLevel <= 0) {
  7356. _._quiet = true;
  7357. }
  7358. beforeDOMReady(handler);
  7359. waitDOM().then(function () {
  7360. afterDOMReady(handler);
  7361. });
  7362. return;
  7363. }
  7364. if ($.config.logLevel < 2) {
  7365. _._quiet = true;
  7366. }
  7367. _.info('does not match location on `%s`, will try HTML content', window.location.toString());
  7368. waitDOM().then(function () {
  7369. handler = findHandler(false);
  7370. if (!handler) {
  7371. _.info('does not match HTML content on `%s`', window.location.toString());
  7372. return;
  7373. }
  7374. beforeDOMReady(handler);
  7375. afterDOMReady(handler);
  7376. });
  7377. };
  7378. return $;
  7379. }));
  7380. $._main();