AdsBypasser

Bypass Ads

目前為 2017-02-14 提交的版本,檢視 最新版本

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