AdsBypasser

Bypass Ads

目前为 2015-09-21 提交的版本。查看 最新版本

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

QingJ © 2025

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