AdsBypasser

Bypass Ads

当前为 2016-10-07 提交的版本,查看 最新版本

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

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址