AdsBypasser

Bypass Ads

当前为 2017-01-02 提交的版本,查看 最新版本

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

QingJ © 2025

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