AdsBypasser

Bypass Ads

目前为 2014-10-05 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name AdsBypasser
  3. // @namespace AdsBypasser
  4. // @description Bypass Ads
  5. // @copyright 2012+, Wei-Cheng Pan (legnaleurc)
  6. // @version 5.4.0
  7. // @license BSD
  8. // @grant unsafeWindow
  9. // @grant GM_xmlhttpRequest
  10. // @grant GM_addStyle
  11. // @grant GM_getResourceText
  12. // @grant GM_getResourceURL
  13. // @grant GM_getValue
  14. // @grant GM_openInTab
  15. // @grant GM_registerMenuCommand
  16. // @grant GM_setValue
  17. // @run-at document-start
  18. // @resource alignCenter https://raw.githubusercontent.com/adsbypasser/adsbypasser/v5.4.0/css/align_center.css
  19. // @resource scaleImage https://raw.githubusercontent.com/adsbypasser/adsbypasser/v5.4.0/css/scale_image.css
  20. // @resource bgImage https://raw.githubusercontent.com/adsbypasser/adsbypasser/v5.4.0/img/imagedoc-darknoise.png
  21. // @include http://*
  22. // @include https://*
  23. // ==/UserScript==
  24.  
  25. var _ = typeof module !== 'undefined' ? module.exports : {};
  26. (function () {
  27. 'use strict';
  28. function setupStack () {
  29. if (Error.captureStackTrace) {
  30. Error.captureStackTrace(this, this.constructor);
  31. } else if (!this.hasOwnProperty('stack')) {
  32. var stack = (new Error()).stack.split('\n').slice(2);
  33. var e = stack[0].match(/^.*@(.*):(\d*)$/);
  34. this.fileName = e[1];
  35. this.lineNumber = parseInt(e[2], 10);
  36. this.stack = stack.join('\n');
  37. }
  38. }
  39. function AdsBypasserError (message) {
  40. setupStack.call(this);
  41. this.message = message;
  42. }
  43. AdsBypasserError.prototype = Object.create(Error.prototype);
  44. AdsBypasserError.prototype.constructor = AdsBypasserError;
  45. AdsBypasserError.prototype.name = 'AdsBypasserError';
  46. AdsBypasserError.extend = function (protoProps, staticProps) {
  47. var parent = this, child = function () {
  48. setupStack.call(this);
  49. protoProps.constructor.apply(this, arguments);
  50. };
  51. extend(child, parent, staticProps);
  52. child.prototype = Object.create(parent.prototype);
  53. extend(child.prototype, protoProps);
  54. child.prototype.constructor = child;
  55. child.super = parent.prototype;
  56. return child;
  57. };
  58. AdsBypasserError.super = null;
  59. _.AdsBypasserError = AdsBypasserError;
  60. function any (c, fn) {
  61. if (c.some) {
  62. return c.some(fn);
  63. }
  64. if (typeof c.length === 'number') {
  65. return Array.prototype.some.call(c, fn);
  66. }
  67. return Object.keys(c).some(function (k) {
  68. return fn(c[k], k, c);
  69. });
  70. }
  71. function all (c, fn) {
  72. if (c.every) {
  73. return c.every(fn);
  74. }
  75. if (typeof c.length === 'number') {
  76. return Array.prototype.every.call(c, fn);
  77. }
  78. return Object.keys(c).every(function (k) {
  79. return fn(c[k], k, c);
  80. });
  81. }
  82. function each (c, fn) {
  83. if (c.forEach) {
  84. c.forEach(fn);
  85. } else if (typeof c.length === 'number') {
  86. Array.prototype.forEach.call(c, fn);
  87. } else {
  88. Object.keys(c).forEach(function (k) {
  89. fn(c[k], k, c);
  90. });
  91. }
  92. }
  93. function map (c, fn) {
  94. if (c.map) {
  95. return c.map(fn);
  96. }
  97. if (typeof c.length === 'number') {
  98. return Array.prototype.map.call(c, fn);
  99. }
  100. return Object.keys(c).map(function (k) {
  101. return fn(c[k], k, c);
  102. });
  103. }
  104. function extend(c) {
  105. Array.prototype.slice.call(arguments, 1).forEach(function (source) {
  106. if (!source) {
  107. return;
  108. }
  109. _.C(source).each(function (v, k) {
  110. c[k] = v;
  111. });
  112. });
  113. return c;
  114. }
  115. function CollectionProxy (collection) {
  116. this._c = collection;
  117. }
  118. CollectionProxy.prototype.size = function () {
  119. if (typeof this._c.length === 'number') {
  120. return this._c.length;
  121. }
  122. return Object.keys(c).length;
  123. };
  124. CollectionProxy.prototype.at = function (k) {
  125. return this._c[k];
  126. };
  127. CollectionProxy.prototype.each = function (fn) {
  128. each(this._c, fn);
  129. return this;
  130. };
  131. CollectionProxy.prototype.find = function (fn) {
  132. var result;
  133. any(this._c, function (value, index, self) {
  134. var tmp = fn(value, index, self);
  135. if (tmp !== _.nop) {
  136. result = {
  137. key: index,
  138. value: value,
  139. payload: tmp,
  140. };
  141. return true;
  142. }
  143. return false;
  144. });
  145. return result;
  146. };
  147. CollectionProxy.prototype.all = function (fn) {
  148. return all(this._c, fn);
  149. };
  150. CollectionProxy.prototype.map = function (fn) {
  151. return map(this._c, fn);
  152. };
  153. _.C = function (collection) {
  154. return new CollectionProxy(collection);
  155. };
  156. _.T = function (s) {
  157. if (typeof s === 'string') {
  158. } else if (s instanceof String) {
  159. s = s.toString();
  160. } else {
  161. throw new AdsBypasserError('template must be a string');
  162. }
  163. var T = {
  164. '{{': '{',
  165. '}}': '}',
  166. };
  167. return function () {
  168. var args = Array.prototype.slice.call(arguments);
  169. var kwargs = args[args.length-1];
  170. return s.replace(/\{\{|\}\}|\{([^\}]+)\}/g, function (m, key) {
  171. if (T.hasOwnProperty(m)) {
  172. return T[m];
  173. }
  174. if (args.hasOwnProperty(key)) {
  175. return args[key];
  176. }
  177. if (kwargs.hasOwnProperty(key)) {
  178. return kwargs[key];
  179. }
  180. return m;
  181. });
  182. };
  183. };
  184. _.P = function (fn) {
  185. if (typeof fn !== 'function') {
  186. throw new _.AdsBypasserError('must give a function');
  187. }
  188. var slice = Array.prototype.slice;
  189. var args = slice.call(arguments, 1);
  190. return function () {
  191. return fn.apply(this, args.concat(slice.call(arguments)));
  192. };
  193. };
  194. _.nop = function () {
  195. };
  196. function log (method, args) {
  197. args = Array.prototype.slice.call(args);
  198. if (typeof args[0] === 'string' || args[0] instanceof String) {
  199. args[0] = 'AdsBypasser: ' + args[0];
  200. } else {
  201. args.unshift('AdsBypasser:');
  202. }
  203. var f = console[method];
  204. if (typeof f === 'function') {
  205. f.apply(console, $.inject(args));
  206. }
  207. }
  208. _.info = function () {
  209. log('info', arguments);
  210. };
  211. _.warn = function () {
  212. log('warn', arguments);
  213. };
  214. })();
  215.  
  216. var $;
  217. (function () {
  218. 'use strict';
  219. function bootstrap (context) {
  220. var _ = context._;
  221. var window = context.window;
  222. var unsafeWindow = context.unsafeWindow;
  223. var GM = context.GM;
  224. var document = window.document;
  225. var DomNotFoundError = _.AdsBypasserError.extend({
  226. name: 'DomNotFoundError',
  227. constructor: function (selector) {
  228. DomNotFoundError.super.constructor.call(this, _.T('`{0}` not found')(selector));
  229. },
  230. });
  231. var $ = function (selector, context) {
  232. if (!context || !context.querySelector) {
  233. context = document;
  234. }
  235. var n = context.querySelector(selector);
  236. if (!n) {
  237. throw new DomNotFoundError(selector);
  238. }
  239. return n;
  240. };
  241. $.$ = function (selector, context) {
  242. try {
  243. return $(selector, context);
  244. } catch (e) {
  245. return null;
  246. }
  247. };
  248. $.$$ = function (selector, context) {
  249. if (!context || !context.querySelectorAll) {
  250. context = document;
  251. }
  252. var ns = context.querySelectorAll(selector);
  253. return _.C(ns);
  254. };
  255. function deepJoin (prefix, object) {
  256. return _.C(object).map(function (v, k) {
  257. var key = _.T('{0}[{1}]')(prefix, k);
  258. if (typeof v === 'object') {
  259. return deepJoin(key, v);
  260. }
  261. return _.T('{0}={1}').apply(this, [key, v].map(encodeURIComponent));
  262. }).join('&');
  263. }
  264. function toQuery (data) {
  265. if (typeof data === 'string') {
  266. return data;
  267. }
  268. if (data instanceof String) {
  269. return data.toString();
  270. }
  271. return _.C(data).map(function (v, k) {
  272. if (typeof v === 'object') {
  273. return deepJoin(k, v);
  274. }
  275. return _.T('{0}={1}').apply(this, [k, v].map(encodeURIComponent));
  276. }).join('&');
  277. }
  278. function ajax (method, url, data, headers, callback) {
  279. var l = document.createElement('a');
  280. l.href = url;
  281. var reqHost = l.hostname;
  282. headers.Host = reqHost || window.location.host;
  283. headers.Origin = window.location.origin;
  284. headers.Referer = window.location.href;
  285. headers['X-Requested-With'] = 'XMLHttpRequest';
  286. var controller = GM.xmlhttpRequest({
  287. method: method,
  288. url: url,
  289. data: data,
  290. headers: headers,
  291. onload: function (response) {
  292. var headers = {
  293. get: function (key) {
  294. return this[key.toLowerCase()];
  295. },
  296. };
  297. response.responseHeaders.split(/[\r\n]+/g).filter(function (v) {
  298. return v.length !== 0;
  299. }).map(function (v) {
  300. return v.split(/:\s+/);
  301. }).forEach(function (v) {
  302. headers[v[0].toLowerCase()] = v[1];
  303. });
  304. callback(response.responseText, headers);
  305. },
  306. });
  307. return controller;
  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. $.get = function (url, data, callback, headers) {
  319. data = toQuery(data);
  320. data = data!==''? '?' + data : '';
  321. headers = headers || {};
  322. return ajax('GET', url + data, '', headers, callback);
  323. };
  324. $.post = function (url, data, callback, headers) {
  325. data = toQuery(data);
  326. var h = {
  327. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  328. 'Content-Length': data.length,
  329. };
  330. if (headers) {
  331. _.C(headers).each(function (v, k) {
  332. h[k] = v;
  333. });
  334. }
  335. return ajax('POST', url, data, h, callback);
  336. };
  337. function go (path, params, method) {
  338. method = method || 'post';
  339. var form = document.createElement('form');
  340. form.method = method;
  341. form.action = path;
  342. _.C(params).each(function (value, key) {
  343. var input = document.createElement('input');
  344. input.type = 'hidden';
  345. input.name = key;
  346. input.value = value;
  347. form.appendChild(input);
  348. });
  349. document.body.appendChild(form);
  350. form.submit();
  351. }
  352. $.openLinkByPost = function (url, data) {
  353. go(url, data, 'post');
  354. };
  355. $.openLink = function (to) {
  356. if (!to) {
  357. _.warn('false URL');
  358. return;
  359. }
  360. var from = window.location.toString();
  361. _.info(_.T('{0} -> {1}')(from, to));
  362. window.top.location.replace(to);
  363. };
  364. $.openLinkWithReferer = function (to) {
  365. if (!to) {
  366. _.warn('false URL');
  367. return;
  368. }
  369. var from = window.location.toString();
  370. _.info(_.T('{0} -> {1}')(from, to));
  371. window.location.href = to;
  372. };
  373. $.openImage = function (imgSrc) {
  374. if (config.redirectImage) {
  375. $.openLink(imgSrc);
  376. }
  377. };
  378. $.removeAllTimer = function () {
  379. var intervalID = window.setInterval(_.nop, 10);
  380. while (intervalID > 0) {
  381. window.clearInterval(intervalID--);
  382. }
  383. };
  384. $.enableScrolling = function () {
  385. var o = document.compatMode === 'CSS1Compat' ? document.documentElement : document.body;
  386. o.style.overflow = '';
  387. };
  388. function toggleShrinking () {
  389. this.classList.toggle('adsbypasser-shrinked');
  390. }
  391. function checkScaling () {
  392. var nw = this.naturalWidth;
  393. var nh = this.naturalHeight;
  394. var cw = document.documentElement.clientWidth;
  395. var ch = document.documentElement.clientHeight;
  396. if ((nw > cw || nh > ch) && !this.classList.contains('adsbypasser-resizable')) {
  397. this.classList.add('adsbypasser-resizable');
  398. this.classList.add('adsbypasser-shrinked');
  399. this.addEventListener('click', toggleShrinking);
  400. } else {
  401. this.removeEventListener('click', toggleShrinking);
  402. this.classList.remove('adsbypasser-shrinked');
  403. this.classList.remove('adsbypasser-resizable');
  404. }
  405. }
  406. function scaleImage (i) {
  407. var style = GM.getResourceText('scaleImage');
  408. GM.addStyle(style);
  409. if (i.naturalWidth && i.naturalHeight) {
  410. checkScaling.call(i);
  411. } else {
  412. i.addEventListener('load', checkScaling);
  413. }
  414. var h;
  415. window.addEventListener('resize', function () {
  416. window.clearTimeout(h);
  417. h = window.setTimeout(checkScaling.bind(i), 100);
  418. });
  419. }
  420. function changeBackground () {
  421. var bgImage = GM.getResourceURL('bgImage');
  422. document.body.style.backgroundColor = '#222222';
  423. document.body.style.backgroundImage = _.T('url(\'{0}\')')(bgImage);
  424. }
  425. function alignCenter () {
  426. var style = GM.getResourceText('alignCenter');
  427. GM.addStyle(style);
  428. }
  429. function injectStyle (d, i) {
  430. $.removeNodes('style, link[rel=stylesheet]');
  431. d.id = 'adsbypasser-wrapper';
  432. i.id = 'adsbypasser-image';
  433. }
  434. $.replace = function (imgSrc) {
  435. if (!config.redirectImage) {
  436. return;
  437. }
  438. if (!imgSrc) {
  439. _.warn('false url');
  440. return;
  441. }
  442. _.info(_.T('replacing body with `{0}` ...')(imgSrc));
  443. $.removeAllTimer();
  444. $.enableScrolling();
  445. document.body = document.createElement('body');
  446. var d = document.createElement('div');
  447. document.body.appendChild(d);
  448. var i = document.createElement('img');
  449. i.src = imgSrc;
  450. d.appendChild(i);
  451. if (config.alignCenter || config.scaleImage) {
  452. injectStyle(d, i);
  453. }
  454. if (config.alignCenter) {
  455. alignCenter();
  456. }
  457. if (config.changeBackground) {
  458. changeBackground();
  459. }
  460. if (config.scaleImage) {
  461. scaleImage(i);
  462. }
  463. };
  464. $.removeNodes = function (selector, context) {
  465. $.$$(selector, context).each(function (e) {
  466. e.parentNode.removeChild(e);
  467. });
  468. };
  469. function searchScriptsByRegExp (pattern, context) {
  470. var m = $.$$('script', context).find(function (s) {
  471. var m = s.innerHTML.match(pattern);
  472. if (!m) {
  473. return _.nop;
  474. }
  475. return m;
  476. });
  477. if (!m) {
  478. return null;
  479. }
  480. return m.payload;
  481. }
  482. function searchScriptsByString (pattern, context) {
  483. var m = $.$$('script', context).find(function (s) {
  484. var m = s.innerHTML.indexOf(pattern);
  485. if (m < 0) {
  486. return _.nop;
  487. }
  488. return m;
  489. });
  490. if (!m) {
  491. return null;
  492. }
  493. return m.value.innerHTML;
  494. }
  495. $.searchScripts = function (pattern, context) {
  496. if (pattern instanceof RegExp) {
  497. return searchScriptsByRegExp(pattern, context);
  498. } else if (typeof pattern === 'string') {
  499. return searchScriptsByString(pattern, context);
  500. } else {
  501. return null;
  502. }
  503. };
  504. $.setCookie = function (key, value) {
  505. var now = new Date();
  506. now.setTime(now.getTime() + 3600 * 1000);
  507. var tpl = _.T('{0}={1};path=/;');
  508. document.cookie = tpl(key, value, now.toUTCString());
  509. };
  510. $.getCookie = function (key) {
  511. var c = _.C(document.cookie.split(';')).find(function (v) {
  512. var k = v.replace(/^\s*(\w+)=.+$/, '$1');
  513. if (k !== key) {
  514. return _.nop;
  515. }
  516. });
  517. if (!c) {
  518. return null;
  519. }
  520. c = c.value.replace(/^\s*\w+=([^;]+).+$/, '$1');
  521. if (!c) {
  522. return null;
  523. }
  524. return c;
  525. };
  526. $.resetCookies = function () {
  527. var a = document.domain;
  528. var b = document.domain.replace(/^www\./, '');
  529. var c = document.domain.replace(/^(\w+\.)+?(\w+\.\w+)$/, '$2');
  530. var d = (new Date(1e3)).toUTCString();
  531. _.C(document.cookie.split(';')).each(function (v) {
  532. var k = v.replace(/^\s*(\w+)=.+$/, '$1');
  533. document.cookie = _.T('{0}=;expires={1};')(k, d);
  534. document.cookie = _.T('{0}=;path=/;expires={1};')(k, d);
  535. var e = _.T('{0}=;path=/;domain={1};expires={2};');
  536. document.cookie = e(k, a, d);
  537. document.cookie = e(k, b, d);
  538. document.cookie = e(k, c, d);
  539. });
  540. };
  541. $.captcha = function (imgSrc, cb) {
  542. if (!config.externalServerSupport) {
  543. return;
  544. }
  545. var a = document.createElement('canvas');
  546. var b = a.getContext('2d');
  547. var c = new Image();
  548. c.src = imgSrc;
  549. c.onload = function () {
  550. a.width = c.width;
  551. a.height = c.height;
  552. b.drawImage(c, 0, 0);
  553. var d = a.toDataURL();
  554. var e = d.substr(d.indexOf(',') + 1);
  555. $.post('http://www.wcpan.info/cgi-bin/captcha.cgi', {
  556. i: e,
  557. }, cb);
  558. };
  559. };
  560. function injectClone (vaccine) {
  561. var injected;
  562. if (typeof cloneInto !== 'function') {
  563. injected = vaccine;
  564. } else {
  565. injected = cloneInto(vaccine, unsafeWindow, {
  566. cloneFunctions: true,
  567. });
  568. }
  569. return injected;
  570. }
  571. function injectFunction (vaccine) {
  572. var injected;
  573. if (typeof exportFunction !== 'function') {
  574. injected = vaccine;
  575. } else {
  576. try {
  577. injected = exportFunction(vaccine, unsafeWindow);
  578. } catch(e) {
  579. console.error(e);
  580. }
  581. }
  582. return injected;
  583. }
  584. function injectReference () {
  585. var injected;
  586. if (typeof createObjectIn !== 'function') {
  587. injected = {};
  588. } else {
  589. injected = createObjectIn(unsafeWindow);
  590. }
  591. return injected;
  592. }
  593. $.inject = function (vaccine) {
  594. if (typeof vaccine === 'function') {
  595. return injectFunction(vaccine);
  596. } else if (typeof vaccine === 'undefined') {
  597. return injectReference();
  598. } else {
  599. return injectClone(vaccine);
  600. }
  601. };
  602. var patterns = [];
  603. $.register = function (pattern) {
  604. patterns.push(pattern);
  605. };
  606. function load () {
  607. var tmp = {
  608. version: GM.getValue('version', 0),
  609. alignCenter: GM.getValue('align_center'),
  610. changeBackground: GM.getValue('change_background'),
  611. externalServerSupport: GM.getValue('external_server_support'),
  612. redirectImage: GM.getValue('redirect_image'),
  613. scaleImage: GM.getValue('scale_image'),
  614. };
  615. fixup(tmp);
  616. save(tmp);
  617. return tmp;
  618. }
  619. function save (c) {
  620. GM.setValue('version', c.version);
  621. GM.setValue('align_center', c.alignCenter);
  622. GM.setValue('change_background', c.changeBackground);
  623. GM.setValue('external_server_support', c.externalServerSupport);
  624. GM.setValue('redirect_image', c.redirectImage);
  625. GM.setValue('scale_image', c.scaleImage);
  626. }
  627. function fixup (c) {
  628. var patches = [
  629. function (c) {
  630. var ac = typeof c.alignCenter !== 'undefined';
  631. if (typeof c.changeBackground === 'undefined') {
  632. c.changeBackground = ac ? c.alignCenter : true;
  633. }
  634. if (typeof c.scaleImage === 'undefined') {
  635. c.scaleImage = ac ? c.alignCenter : true;
  636. }
  637. if (!ac) {
  638. c.alignCenter = true;
  639. }
  640. if (typeof c.redirectImage === 'undefined') {
  641. c.redirectImage = true;
  642. }
  643. },
  644. function (c) {
  645. if (typeof c.externalServerSupport === 'undefined') {
  646. c.externalServerSupport = false;
  647. }
  648. },
  649. ];
  650. while (c.version < patches.length) {
  651. patches[c.version](c);
  652. ++c.version;
  653. }
  654. }
  655. var config = null;
  656. $.register({
  657. rule: {
  658. host: /^adsbypasser\.github\.io$/,
  659. path: /^\/configure\.html$/,
  660. },
  661. ready: function () {
  662. unsafeWindow.commit = $.inject(function (data) {
  663. data.version = config.version;
  664. _.C(data).each(function (v, k) {
  665. config[k] = v;
  666. });
  667. setTimeout(function () {
  668. save(data);
  669. }, 0);
  670. });
  671. unsafeWindow.render($.inject({
  672. version: config.version,
  673. options: {
  674. alignCenter: {
  675. type: 'checkbox',
  676. value: config.alignCenter,
  677. label: 'Align Center',
  678. help: 'Align image to the center if possible. (default: enabled)',
  679. },
  680. changeBackground: {
  681. type: 'checkbox',
  682. value: config.changeBackground,
  683. label: 'Change Background',
  684. help: 'Use Firefox-like image background if possible. (default: enabled)',
  685. },
  686. redirectImage: {
  687. type: 'checkbox',
  688. value: config.redirectImage,
  689. label: 'Redirect Image',
  690. help: [
  691. 'Directly open image link if possible. (default: enabled)',
  692. 'If disabled, redirection will only works on link shortener sites.',
  693. ].join('<br/>\n'),
  694. },
  695. scaleImage: {
  696. type: 'checkbox',
  697. value: config.scaleImage,
  698. label: 'Scale Image',
  699. help: 'When image loaded, scale it to fit window if possible. (default: enabled)',
  700. },
  701. externalServerSupport: {
  702. type: 'checkbox',
  703. value: config.externalServerSupport,
  704. label: 'External Server Support',
  705. help: [
  706. 'Send URL information to external server to enhance features (e.g.: captcha resolving). (default: disabled)',
  707. 'Affected sites:',
  708. 'urlz.so (captcha)',
  709. ].join('<br/>\n'),
  710. },
  711. },
  712. }));
  713. },
  714. });
  715. function dispatchByObject (rule, url_6) {
  716. var matched = {};
  717. var passed = _.C(rule).all(function (pattern, part) {
  718. if (pattern instanceof RegExp) {
  719. matched[part] = url_6[part].match(pattern);
  720. } else if (pattern instanceof Array) {
  721. var r = _.C(pattern).find(function (p) {
  722. var m = url_6[part].match(p);
  723. return m || _.nop;
  724. });
  725. matched[part] = r ? r.payload : null;
  726. }
  727. return !!matched[part];
  728. });
  729. return passed ? matched : null;
  730. }
  731. function dispatchByRegExp (rule, url_1) {
  732. return url_1.match(rule);
  733. }
  734. function dispatchByArray (byLocation, rules, url_1, url_3, url_6) {
  735. var tmp = _.C(rules).find(function (rule) {
  736. var m = dispatch(byLocation, rule, url_1, url_3, url_6);
  737. if (!m) {
  738. return _.nop;
  739. }
  740. return m;
  741. });
  742. return tmp ? tmp.payload : null;
  743. }
  744. function dispatchByString (rule, url_3) {
  745. var scheme = /\*|https?|file|ftp|chrome-extension/;
  746. var host = /\*|(\*\.)?([^\/*]+)/;
  747. var path = /\/.*/;
  748. var up = new RegExp(_.T('^({scheme})://({host})?({path})$')({
  749. scheme: scheme.source,
  750. host: host.source,
  751. path: path.source,
  752. }));
  753. var matched = rule.match(up);
  754. if (!matched) {
  755. return null;
  756. }
  757. scheme = matched[1];
  758. host = matched[2];
  759. var wc = matched[3];
  760. var sd = matched[4];
  761. path = matched[5];
  762. if (scheme === '*' && !/https?/.test(url_3.scheme)) {
  763. return null;
  764. } else if (scheme !== url_3.scheme) {
  765. return null;
  766. }
  767. if (scheme !== 'file' && host !== '*') {
  768. if (wc) {
  769. up = url_3.host.indexOf(sd);
  770. if (up < 0 || up + sd.length !== url_3.host.length) {
  771. return null;
  772. }
  773. } else if (host !== url_3.host) {
  774. return null;
  775. }
  776. }
  777. path = new RegExp(_.T('^{0}$')(path.replace(/[*.\[\]?+#]/g, function (c) {
  778. if (c === '*') {
  779. return '.*';
  780. }
  781. return '\\' + c;
  782. })));
  783. if (!path.test(url_3.path)) {
  784. return null;
  785. }
  786. return url_3;
  787. }
  788. function dispatchByFunction (rule, url_1, url_3, url_6) {
  789. return rule(url_1, url_3, url_6);
  790. }
  791. function dispatch (byLocation, rule, url_1, url_3, url_6) {
  792. if (rule instanceof Array) {
  793. return dispatchByArray(byLocation, rule, url_1, url_3, url_6);
  794. }
  795. if (!byLocation) {
  796. if (typeof rule !== 'function') {
  797. return null;
  798. }
  799. return dispatchByFunction(rule, url_1, url_3, url_6);
  800. }
  801. if (rule instanceof RegExp) {
  802. return dispatchByRegExp(rule, url_1);
  803. }
  804. if (typeof rule === 'string' || rule instanceof String) {
  805. return dispatchByString(rule, url_3);
  806. }
  807. if (typeof rule === 'function') {
  808. return null;
  809. }
  810. return dispatchByObject(rule, url_6);
  811. }
  812. function findHandler (byLocation) {
  813. var url_1 = window.location.toString();
  814. var url_3 = {
  815. scheme: window.location.protocol.slice(0, -1),
  816. host: window.location.host,
  817. path: window.location.pathname + window.location.search + window.location.hash,
  818. };
  819. var url_6 = {
  820. scheme: window.location.protocol,
  821. host: window.location.hostname,
  822. port: window.location.port,
  823. path: window.location.pathname,
  824. query: window.location.search,
  825. hash: window.location.hash,
  826. };
  827. var pattern = _.C(patterns).find(function (pattern) {
  828. var m = dispatch(byLocation, pattern.rule, url_1, url_3, url_6);
  829. if (!m) {
  830. return _.nop;
  831. }
  832. return m;
  833. });
  834. if (!pattern) {
  835. return null;
  836. }
  837. var matched = pattern.payload;
  838. pattern = pattern.value;
  839. if (!pattern.start && !pattern.ready) {
  840. return null;
  841. }
  842. return {
  843. start: pattern.start ? _.P(pattern.start, matched) : _.nop,
  844. ready: pattern.ready ? _.P(pattern.ready, matched) : _.nop,
  845. };
  846. }
  847. function disableWindowOpen () {
  848. unsafeWindow.open = _.nop;
  849. }
  850. function disableLeavePrompt () {
  851. var seal = {
  852. set: function () {
  853. _.info('blocked onbeforeunload');
  854. },
  855. };
  856. _.C([unsafeWindow, unsafeWindow.document.body]).each(function (o) {
  857. if (!o) {
  858. return;
  859. }
  860. o.onbeforeunload = undefined;
  861. Object.defineProperty(o, 'onbeforeunload', seal);
  862. });
  863. }
  864. $._main = function (isNodeJS) {
  865. delete $._main;
  866. if (isNodeJS) {
  867. config = load();
  868. return;
  869. }
  870. if (window.top !== window.self) {
  871. return;
  872. }
  873. var handler = findHandler(true);
  874. if (handler) {
  875. config = load();
  876. _.info('working on\n%s \nwith\n%o', window.location.toString(), config);
  877. disableWindowOpen();
  878. handler.start();
  879. document.addEventListener('DOMContentLoaded', function () {
  880. disableLeavePrompt();
  881. handler.ready();
  882. });
  883. } else {
  884. _.info('does not match location on `%s`, will try HTML content', window.location.toString());
  885. document.addEventListener('DOMContentLoaded', function () {
  886. handler = findHandler(false);
  887. if (!handler) {
  888. _.info('does not match HTML content on `%s`', window.location.toString());
  889. return;
  890. }
  891. config = load();
  892. _.info('working on\n%s \nwith\n%o', window.location.toString(), config);
  893. disableWindowOpen();
  894. disableLeavePrompt();
  895. handler.ready();
  896. });
  897. }
  898. };
  899. GM.registerMenuCommand('AdsBypasser - Configure', function () {
  900. GM.openInTab('https://adsbypasser.github.io/configure.html');
  901. });
  902. return $;
  903. }
  904. if (typeof module !== 'undefined') {
  905. module.exports = bootstrap;
  906. } else {
  907. $ = bootstrap({
  908. _: _,
  909. window: window,
  910. unsafeWindow: unsafeWindow,
  911. GM: {
  912. getValue: GM_getValue,
  913. setValue: GM_setValue,
  914. xmlhttpRequest: GM_xmlhttpRequest,
  915. getResourceText: GM_getResourceText,
  916. addStyle: GM_addStyle,
  917. getResourceURL: GM_getResourceURL,
  918. openInTab: GM_openInTab,
  919. registerMenuCommand: GM_registerMenuCommand,
  920. },
  921. });
  922. }
  923. })();
  924.  
  925. $.register({
  926. rule: {
  927. host: /^www\.4shared\.com$/,
  928. path: /^\/(mp3|get|rar|zip|file|android|software|program)\//,
  929. },
  930. ready: function () {
  931. 'use strict';
  932. $.get('http://www.4server.info/find.php', {
  933. data: window.location.href,
  934. }, function (data) {
  935. var d = $.toDOM(data);
  936. var c = $('meta[http-equiv=refresh]', d);
  937. var b = c.content.match(/URL=(.+)$/);
  938. var a = b[1];
  939. $.openLink(a);
  940. });
  941. },
  942. });
  943.  
  944. (function() {
  945. 'use strict';
  946. $.register({
  947. rule: {
  948. host: /^(www\.)?dl-protect\.com$/,
  949. path: /\/[A-Z0-9]+/,
  950. },
  951. ready: function () {
  952. var f = $.$('form[name=ccerure]');
  953. if (f) {
  954. var observer = new MutationObserver(function (mutations) {
  955. var iIn = $('input[id=in]');
  956. for (var i = 0; i < mutations.length; i++) {
  957. if (mutations[i].target.value && mutations[i].attributeName === 'value') {
  958. observer.disconnect();
  959. iIn.value = "Tracking too much hurts users' privacy";
  960. if (!canFastRedirect()) {
  961. return;
  962. }
  963. setTimeout(function() {
  964. f.submit();
  965. }, 600);
  966. break;
  967. }
  968. }
  969. });
  970. var iIn = $('input[id=in]');
  971. if (iIn.value) {
  972. setTimeout(function() {
  973. f.submit();
  974. }, 600);
  975. } else {
  976. observer.observe(iIn, {
  977. attributes: true,
  978. });
  979. }
  980. return;
  981. }
  982. var l = $.$$('#slinks > a');
  983. if (l.size() === 1) {
  984. $.openLink(l.at(0).href);
  985. }
  986. },
  987. });
  988. function canFastRedirect () {
  989. return !$.$('form[name=ccerure]').onsubmit && !$.$('form[name=ccerure] input[name=pwd]');
  990. }
  991. })();
  992.  
  993. $.register({
  994. rule: {
  995. host: /^(www\.)?(firedrive|putlocker)\.com$/,
  996. path: /^\/file\/[0-9A-F]+$/,
  997. },
  998. ready: function () {
  999. 'use strict';
  1000. var c = $('#confirm_form');
  1001. c.submit();
  1002. },
  1003. });
  1004.  
  1005. $.register({
  1006. rule: {
  1007. host: /^(www\.)?mirrorcreator\.com$/,
  1008. path: /^\/showlink\.php$/,
  1009. },
  1010. ready: function () {
  1011. 'use strict';
  1012. var a = $.$('#redirectlink a');
  1013. if (a) {
  1014. $.openLink(a.href);
  1015. return;
  1016. }
  1017. a = $('#redirectlink > div.redirecturl');
  1018. a = a.innerHTML;
  1019. if (!a.match(/^http/)) {
  1020. throw new _.AdsBypasserError('not a valid URL');
  1021. }
  1022. $.openLink(a);
  1023. },
  1024. });
  1025.  
  1026. $.register({
  1027. rule: {
  1028. host: /^www.mirrorupload.net$/,
  1029. },
  1030. ready: function () {
  1031. 'use strict';
  1032. var accessForm = $('form[name=form_upload]');
  1033. var accessInput = document.createElement('input');
  1034. accessInput.type = 'hidden';
  1035. accessInput.name = 'access';
  1036. accessInput.value = Math.random();
  1037. accessForm.appendChild(accessInput);
  1038. accessForm.submit();
  1039. },
  1040. });
  1041.  
  1042. $.register({
  1043. rule: {
  1044. host: /^1dl\.biz$/,
  1045. path: /^\/(\w)\.php$/,
  1046. query: /^\?(\d+)$/,
  1047. },
  1048. ready: function () {
  1049. 'use strict';
  1050. var a = $('div.tor a');
  1051. a.click();
  1052. },
  1053. });
  1054.  
  1055. $.register({
  1056. rule: {
  1057. host: /^1pics\.ru$/,
  1058. },
  1059. ready: function () {
  1060. 'use strict';
  1061. var img = $('img[alt$="1Pics.Ru"]');
  1062. $.openImage(img.src);
  1063. },
  1064. });
  1065.  
  1066. $.register({
  1067. rule: {
  1068. host: /^www\.(2i\.(sk|cz)|2imgs\.com)$/,
  1069. },
  1070. ready: function () {
  1071. 'use strict';
  1072. var img = $('#wrap3 img');
  1073. $.openImage(img.src);
  1074. },
  1075. });
  1076.  
  1077. $.register({
  1078. rule: [
  1079. 'http://*.abload.de/image.php?img=*',
  1080. 'http://fastpic.ru/view/*.html',
  1081. 'http://www.imageup.ru/*/*/*.html',
  1082. 'http://itmages.ru/image/view/*/*', // different layout same handler
  1083. ],
  1084. ready: function () {
  1085. 'use strict';
  1086. var i = $('#image');
  1087. $.openImage(i.src);
  1088. },
  1089. });
  1090.  
  1091. $.register({
  1092. rule: {
  1093. host: /alabout\.com$/,
  1094. },
  1095. ready: function () {
  1096. 'use strict';
  1097. $.$$('a').each(function (a) {
  1098. if (/http:\/\/(www\.)?alabout\.com\/j\.phtml\?url=/.test(a.href)) {
  1099. a.href = a.textContent;
  1100. }
  1101. });
  1102. },
  1103. });
  1104.  
  1105. $.register({
  1106. rule: {
  1107. host: /^freeimgup\.com$/,
  1108. path: /^\/xxx/,
  1109. query: /^\?v=([^&]+)/,
  1110. },
  1111. start: function (m) {
  1112. 'use strict';
  1113. $.openImage('/xxx/images/' + m.query[1]);
  1114. },
  1115. });
  1116. $.register({
  1117. rule: {
  1118. host: /^(b4he|freeimgup|fullimg)\.com|fastpics\.net|ifap\.co$/,
  1119. query: /^\?v=([^&]+)/,
  1120. },
  1121. start: function (m) {
  1122. 'use strict';
  1123. $.openImage('/images/' + m.query[1]);
  1124. },
  1125. });
  1126.  
  1127. $.register({
  1128. rule: {
  1129. host: /^bayimg\.com$/,
  1130. },
  1131. ready: function () {
  1132. 'use strict';
  1133. var i = $('#mainImage');
  1134. $.openImage(i.src);
  1135. },
  1136. });
  1137.  
  1138. $.register({
  1139. rule: {
  1140. host: /^beeimg\.com$/,
  1141. },
  1142. ready: function () {
  1143. 'use strict';
  1144. var img = $('img.img-responsive');
  1145. $.openImage(img.src);
  1146. },
  1147. });
  1148.  
  1149. $.register({
  1150. rule: 'http://www.bilder-space.de/*.htm',
  1151. ready: function () {
  1152. 'use strict';
  1153. $.removeNodes('iframe');
  1154. var img = $('img.picture');
  1155. $.openImage(img.src);
  1156. },
  1157. });
  1158.  
  1159. $.register({
  1160. rule: 'http://www.bilder-upload.eu/show.php?file=*',
  1161. ready: function () {
  1162. 'use strict';
  1163. var i = $('input[type=image]');
  1164. $.openImage(i.src);
  1165. },
  1166. });
  1167.  
  1168. $.register({
  1169. rule: 'http://blackcatpix.com/v.php?*',
  1170. ready: function () {
  1171. 'use strict';
  1172. var img = $('td center img');
  1173. $.openImage(img.src);
  1174. },
  1175. });
  1176.  
  1177. $.register({
  1178. rule: 'http://www.casimages.com/img.php?*',
  1179. ready: function () {
  1180. 'use strict';
  1181. var img = $('td a img');
  1182. $.openImage(img.src);
  1183. },
  1184. });
  1185.  
  1186. $.register({
  1187. rule: {
  1188. host: /^www\.x45x\.info|(imadul|mypixxx\.lonestarnaughtygirls)\.com|ghanaimages\.co|imgurban\.info|d69\.in$/,
  1189. query: /\?p[mt]=(.+)/,
  1190. },
  1191. start: function (m) {
  1192. 'use strict';
  1193. $.openImage('/?di=' + m.query[1]);
  1194. },
  1195. });
  1196.  
  1197. $.register({
  1198. rule: 'http://javelite.tk/viewer.php?id=*',
  1199. ready: function () {
  1200. 'use strict';
  1201. var i = $('table img');
  1202. $.openImage(i.src);
  1203. },
  1204. });
  1205.  
  1206. $.register({
  1207. rule: {
  1208. host: /^imgchili\.(com|net)|www\.pixhost\.org$/,
  1209. path: /^\/show\//,
  1210. },
  1211. ready: function () {
  1212. 'use strict';
  1213. $.removeNodes('iframe, #ad');
  1214. try {
  1215. $('#all').style.display = '';
  1216. } catch (e) {
  1217. }
  1218. var o = $('#show_image');
  1219. $.openImage(o.src);
  1220. },
  1221. });
  1222.  
  1223. $.register({
  1224. rule: 'http://cubeupload.com/im/*',
  1225. ready: function () {
  1226. 'use strict';
  1227. var img = $('img.galleryBigImg');
  1228. $.openImage(img.src);
  1229. },
  1230. });
  1231.  
  1232. $.register({
  1233. rule: {
  1234. host: /^(depic\.me|(www\.)?picamatic\.com)$/,
  1235. },
  1236. ready: function () {
  1237. 'use strict';
  1238. var i = $('#pic');
  1239. $.openImage(i.src);
  1240. },
  1241. });
  1242.  
  1243. $.register({
  1244. rule: {
  1245. host: /^img(dino|tiger)\.com$/,
  1246. path: /^\/viewer\.php$/,
  1247. query: /^\?file=/,
  1248. },
  1249. ready: function () {
  1250. 'use strict';
  1251. var o = $('#cursor_lupa');
  1252. $.openImage(o.src);
  1253. },
  1254. });
  1255.  
  1256. $.register({
  1257. rule: 'http://*.directupload.net/file/*.htm',
  1258. ready: function () {
  1259. 'use strict';
  1260. var i = $('#ImgFrame');
  1261. $.openImage(i.src);
  1262. },
  1263. });
  1264.  
  1265. $.register({
  1266. rule: {
  1267. host: /^emptypix\.com|overdream\.cz$/,
  1268. path: /^\/image\//,
  1269. },
  1270. ready: function () {
  1271. 'use strict';
  1272. var img = $('#full_image');
  1273. $.openImage(img.src);
  1274. },
  1275. });
  1276.  
  1277. $.register({
  1278. rule: 'http://www.fotolink.su/v.php?id=*',
  1279. ready: function () {
  1280. 'use strict';
  1281. var i = $('#content img');
  1282. $.openImage(i.src);
  1283. },
  1284. });
  1285.  
  1286. (function () {
  1287. 'use strict';
  1288. function run () {
  1289. var i = $('#img_obj');
  1290. $.openImage(i.src);
  1291. }
  1292. $.register({
  1293. rule: 'http://fotoo.pl/show.php?img=*.html',
  1294. ready: run,
  1295. });
  1296. $.register({
  1297. rule: {
  1298. host: /^www\.(fotoszok\.pl|imagestime)\.com$/,
  1299. path: /^\/show\.php\/.*\.html$/,
  1300. },
  1301. ready: run,
  1302. });
  1303. })();
  1304.  
  1305. $.register({
  1306. rule: 'http://www.fotosik.pl/pokaz_obrazek/pelny/*.html',
  1307. ready: function () {
  1308. 'use strict';
  1309. var i = $('a.noborder img');
  1310. $.openImage(i.src);
  1311. },
  1312. });
  1313.  
  1314. $.register({
  1315. rule: {
  1316. host: /^freakimage\.com|www\.hostpic\.org$/,
  1317. path: /^\/view\.php$/,
  1318. query: /^\?filename=([^&]+)/,
  1319. },
  1320. start: function (m) {
  1321. 'use strict';
  1322. $.openImage('/images/' + m.query[1]);
  1323. },
  1324. });
  1325.  
  1326. $.register({
  1327. rule: [
  1328. 'http://funkyimg.com/viewer.php?img=*',
  1329. 'http://funkyimg.com/view/*',
  1330. ],
  1331. ready: function () {
  1332. 'use strict';
  1333. var i = $('#viewer img');
  1334. $.openImage(i.src);
  1335. },
  1336. });
  1337.  
  1338. (function () {
  1339. 'use strict';
  1340. var hostRule = /^goimagehost\.com$/;
  1341. $.register({
  1342. rule: {
  1343. host: hostRule,
  1344. path: /^\/xxx\/images\//,
  1345. },
  1346. });
  1347. $.register({
  1348. rule: {
  1349. host: hostRule,
  1350. path: /^\/xxx\/(.+)/,
  1351. },
  1352. start: function (m) {
  1353. $.openImage('/xxx/images/' + m.path[1]);
  1354. },
  1355. });
  1356. $.register({
  1357. rule: {
  1358. host: hostRule,
  1359. query: /^\?v=(.+)/,
  1360. },
  1361. start: function (m) {
  1362. $.openImage('/xxx/images/' + m.query[1]);
  1363. },
  1364. });
  1365. })();
  1366.  
  1367. $.register({
  1368. rule: {
  1369. host: /www\.(h-animes|adultmove)\.info/,
  1370. path: /^\/.+\/.+\/.+\.html$/,
  1371. },
  1372. ready: function () {
  1373. 'use strict';
  1374. var a = $('.dlbutton2 > a');
  1375. $.openImage(a.href);
  1376. },
  1377. });
  1378.  
  1379. $.register({
  1380. rule: 'http://www.hostingpics.net/viewer.php?id=*',
  1381. ready: function () {
  1382. 'use strict';
  1383. var i = $('#img_viewer');
  1384. $.openImage(i.src);
  1385. },
  1386. });
  1387.  
  1388. $.register({
  1389. rule: {
  1390. host: /^ichan\.org$/,
  1391. path: /^\/image\.php$/,
  1392. query: /path=(.+)$/,
  1393. },
  1394. start: function (m) {
  1395. 'use strict';
  1396. $.openImage('/' + m.query[1]);
  1397. },
  1398. });
  1399. $.register({
  1400. rule: {
  1401. host: /ichan\.org$/,
  1402. },
  1403. ready: function () {
  1404. 'use strict';
  1405. $.$$('a').each(function (a) {
  1406. if (a.href.indexOf('/url/http://') > -1) {
  1407. a.href = a.href.replace(/http:\/\/.+\/url\/(?=http:\/\/)/, '');
  1408. }
  1409. });
  1410. },
  1411. });
  1412.  
  1413. $.register({
  1414. rule: 'http://ifotos.pl/zobacz/*',
  1415. ready: function () {
  1416. 'use strict';
  1417. var m = $('meta[property="og:image"]');
  1418. $.openImage(m.content);
  1419. },
  1420. });
  1421.  
  1422. $.register({
  1423. rule: {
  1424. host: /^ima\.so$/,
  1425. },
  1426. ready: function () {
  1427. 'use strict';
  1428. var a = $('#image_block a');
  1429. $.openImage(a.href);
  1430. },
  1431. });
  1432.  
  1433. $.register({
  1434. rule: [
  1435. 'http://image18.org/show/*',
  1436. 'http://screenlist.ru/details.php?image_id=*',
  1437. 'http://www.imagenetz.de/*/*.html',
  1438. ],
  1439. ready: function () {
  1440. 'use strict';
  1441. var img = $('#picture');
  1442. $.openImage(img.src);
  1443. },
  1444. });
  1445.  
  1446. $.register({
  1447. rule: {
  1448. host: /^image2you\.ru$/,
  1449. path: /^\/\d+\/\d+/,
  1450. },
  1451. ready: function () {
  1452. 'use strict';
  1453. var i = $.$('div.t_tips2 div > img');
  1454. if (!i) {
  1455. $.openLinkByPost('', {
  1456. _confirm: '',
  1457. });
  1458. return;
  1459. }
  1460. $.openImage(i.src);
  1461. },
  1462. });
  1463.  
  1464. $.register({
  1465. rule: 'http://imagearn.com/image.php?id=*',
  1466. ready: function () {
  1467. 'use strict';
  1468. var i = $('#img');
  1469. $.openImage(i.src);
  1470. },
  1471. });
  1472.  
  1473. $.register({
  1474. rule: 'http://www.imagebam.com/image/*',
  1475. ready: function () {
  1476. 'use strict';
  1477. var o = $('#imageContainer img[id]');
  1478. $.replace(o.src);
  1479. },
  1480. });
  1481.  
  1482. $.register({
  1483. rule: {
  1484. host: /^imageban\.(ru|net)$/,
  1485. path: /^\/show\/\d{4}\/\d{2}\/\d{2}\/.+/,
  1486. },
  1487. ready: function () {
  1488. 'use strict';
  1489. var i = $('#img_obj');
  1490. $.openImage(i.src);
  1491. },
  1492. });
  1493.  
  1494. $.register({
  1495. rule: {
  1496. host: /^imageheli\.com|imgtube\.net|pixliv\.com$/,
  1497. path: /^\/img-([a-zA-Z0-9\-]+)\..+$/,
  1498. },
  1499. ready: function () {
  1500. 'use strict';
  1501. var a = $.$('a[rel="lightbox"]');
  1502. if (!a) {
  1503. $.openLinkByPost('', {
  1504. browser_fingerprint: '',
  1505. ads: '0',
  1506. });
  1507. return;
  1508. }
  1509. $.openImage(a.href);
  1510. },
  1511. });
  1512.  
  1513. $.register({
  1514. rule: 'http://www.imagehousing.com/image/*',
  1515. ready: function () {
  1516. 'use strict';
  1517. var i = $('td.text_item img');
  1518. $.openImage(i.src);
  1519. },
  1520. });
  1521.  
  1522. $.register({
  1523. rule: 'http://imageno.com/*.html',
  1524. ready: function () {
  1525. 'use strict';
  1526. var i = $('#image_div img');
  1527. $.openImage(i.src);
  1528. },
  1529. });
  1530.  
  1531. $.register({
  1532. rule: 'http://imagepix.org/image/*.html',
  1533. ready: function () {
  1534. 'use strict';
  1535. var i = $('img[border="0"]');
  1536. $.openImage(i.src);
  1537. },
  1538. });
  1539.  
  1540. (function () {
  1541. 'use strict';
  1542. function run () {
  1543. var o = $('#download_box img[id]');
  1544. $.openImage(o.src);
  1545. }
  1546. $.register({
  1547. rule: {
  1548. host: /^www\.imageporter\.com$/,
  1549. path: /^\/\w{12}\/.*\.html$/,
  1550. },
  1551. ready: run,
  1552. });
  1553. $.register({
  1554. rule: {
  1555. host: /^(www\.)?(image(carry|dunk|porter|switch)|pic(leet|turedip|tureturn)|imgspice)\.com|(piclambo|yankoimages)\.net$/,
  1556. },
  1557. ready: run,
  1558. });
  1559. })();
  1560.  
  1561. $.register({
  1562. rule: {
  1563. host: /^imagescream\.com$/,
  1564. path: /^\/img\/soft\//,
  1565. },
  1566. ready: function () {
  1567. 'use strict';
  1568. var i = $('#shortURL-content img');
  1569. $.openImage(i.src);
  1570. },
  1571. });
  1572. $.register({
  1573. rule: {
  1574. host: /^(imagescream|anonpic|picturevip)\.com$/,
  1575. query: /^\?v=/,
  1576. },
  1577. ready: function () {
  1578. 'use strict';
  1579. var i = $('#imagen img');
  1580. $.openImage(i.src);
  1581. },
  1582. });
  1583.  
  1584. (function () {
  1585. 'use strict';
  1586. var host = /^imageshack\.us$/;
  1587. $.register({
  1588. rule: {
  1589. host: host,
  1590. path: /^\/photo\/.+\/(.+)\/([^\/]+)/,
  1591. },
  1592. start: function (m) {
  1593. $.openImage(_.T('/f/{0}/{1}/')(m.path[1], m.path[2]));
  1594. },
  1595. });
  1596. $.register({
  1597. rule: {
  1598. host: host,
  1599. path: /^\/f\/.+\/[^\/]+/,
  1600. },
  1601. ready: function () {
  1602. var i = $('#fullimg');
  1603. $.openImage(i.src);
  1604. },
  1605. });
  1606. })();
  1607.  
  1608. $.register({
  1609. rule: 'http://imageshost.ru/photo/*/id*.html',
  1610. ready: function () {
  1611. 'use strict';
  1612. var a = $('#bphoto a');
  1613. $.openImage(a.href);
  1614. },
  1615. });
  1616.  
  1617. (function () {
  1618. 'use strict';
  1619. function run () {
  1620. unsafeWindow.$ = undefined;
  1621. var i = $('img.pic');
  1622. $.replace(i.src);
  1623. }
  1624. $.register({
  1625. rule: {
  1626. host: /^imagenpic\.com$/,
  1627. path: /^\/.*\/.+\.html$/,
  1628. },
  1629. ready: run,
  1630. });
  1631. $.register({
  1632. rule: {
  1633. host: /^image(twist|cherry)\.com$/,
  1634. },
  1635. ready: run,
  1636. });
  1637. })();
  1638.  
  1639. $.register({
  1640. rule: 'http://imageupper.com/i/?*',
  1641. ready: function () {
  1642. 'use strict';
  1643. var i = $('#img');
  1644. $.openImage(i.src);
  1645. },
  1646. });
  1647.  
  1648. $.register({
  1649. rule: [
  1650. 'http://*.imagevenue.com/img.php?*',
  1651. 'http://hotchyx.com/d/adult-image-hosting-view-08.php?id=*',
  1652. 'http://www.hostingfailov.com/photo/*',
  1653. ],
  1654. ready: function () {
  1655. 'use strict';
  1656. var i = $('#thepic');
  1657. $.openImage(i.src);
  1658. },
  1659. });
  1660.  
  1661. $.register({
  1662. rule: {
  1663. host: /^imagezilla\.net$/,
  1664. path: /^\/show\/(.+)$/,
  1665. },
  1666. start: function (m) {
  1667. 'use strict';
  1668. $.openImage('/images2/' + m.path[1]);
  1669. },
  1670. });
  1671.  
  1672. $.register({
  1673. rule: {
  1674. host: /^imagik\.fr$/,
  1675. path: /^\/view(-rl)?\/(.+)/,
  1676. },
  1677. start: function (m) {
  1678. 'use strict';
  1679. $.openImage('/uploads/' + m.path[2]);
  1680. },
  1681. });
  1682.  
  1683. $.register({
  1684. rule: 'http://img.3ezy.net/*.htm',
  1685. ready: function () {
  1686. 'use strict';
  1687. var l = $('link[rel="image_src"]');
  1688. $.openImage(l.href);
  1689. },
  1690. });
  1691.  
  1692. $.register({
  1693. rule: {
  1694. host: /^img\.acianetmedia\.com$/,
  1695. path: /^\/(image\/)?[^.]+$/,
  1696. },
  1697. ready: function () {
  1698. 'use strict';
  1699. var img = $('#full_image, #shortURL-content img');
  1700. $.openImage(img.src);
  1701. },
  1702. });
  1703.  
  1704. $.register({
  1705. rule: 'http://img1.imagilive.com/*/*',
  1706. ready: function () {
  1707. 'use strict';
  1708. var a = $.$('#page a.button');
  1709. if (a) {
  1710. $.redirect(a.href);
  1711. return;
  1712. }
  1713. var i = $('#page > img:not([id])');
  1714. $.openImage(i.src);
  1715. },
  1716. });
  1717.  
  1718. $.register({
  1719. rule: {
  1720. host: /^img3x\.net$/,
  1721. },
  1722. ready: function () {
  1723. 'use strict';
  1724. var f = $.$('form');
  1725. if (f) {
  1726. f.submit();
  1727. return;
  1728. }
  1729. f = $('#show_image');
  1730. $.openImage(f.src);
  1731. },
  1732. });
  1733.  
  1734. $.register({
  1735. rule: {
  1736. host: /^www\.img(babes|flare)\.com$/,
  1737. },
  1738. ready: function () {
  1739. 'use strict';
  1740. var i = $('#this_image');
  1741. $.openImage(i.src);
  1742. },
  1743. });
  1744.  
  1745. $.register({
  1746. rule: {
  1747. host: /^imgbar\.net$/,
  1748. path: /^\/img_show\.php$/,
  1749. query: /^\?view_id=/,
  1750. },
  1751. ready: function () {
  1752. 'use strict';
  1753. var i = $('center img');
  1754. $.openImage(i.src);
  1755. },
  1756. });
  1757. $.register({
  1758. rule: {
  1759. host: /^imgbar\.net$/,
  1760. },
  1761. ready: function () {
  1762. 'use strict';
  1763. var i = $('div.panel.top form input[name=sid]');
  1764. $.openLink('/img_show.php?view_id=' + i.value);
  1765. },
  1766. });
  1767.  
  1768. $.register({
  1769. rule: {
  1770. host: /^imgbin\.me$/,
  1771. path: /^\/view\/([A-Z]+)$/,
  1772. },
  1773. start: function (m) {
  1774. 'use strict';
  1775. var tpl = _.T('/image/{0}.jpg');
  1776. $.openImage(tpl(m.path[1]));
  1777. },
  1778. });
  1779.  
  1780. $.register({
  1781. rule: {
  1782. host: /^imgbox\.com$/,
  1783. path: /^\/[\d\w]+$/,
  1784. },
  1785. ready: function () {
  1786. 'use strict';
  1787. $.removeNodes('iframe');
  1788. var i = $('#img');
  1789. $.openImage(i.src);
  1790. },
  1791. });
  1792.  
  1793. (function () {
  1794. 'use strict';
  1795. var host = /^(img(fantasy|leech)|imagedomino)\.com$/;
  1796. $.register({
  1797. rule: {
  1798. host: host,
  1799. query: /^\?p=/,
  1800. },
  1801. ready: function () {
  1802. var i = $('#container-home img');
  1803. $.openImage(i.src);
  1804. },
  1805. });
  1806. $.register({
  1807. rule: {
  1808. host: host,
  1809. query: /^\?v=/,
  1810. },
  1811. ready: function () {
  1812. if (unsafeWindow.confirmAge) {
  1813. unsafeWindow.confirmAge(1);
  1814. return;
  1815. }
  1816. var i = $('#container-home img');
  1817. $.openImage(i.src);
  1818. },
  1819. });
  1820. })();
  1821.  
  1822. $.register({
  1823. rule: {
  1824. host: /^imglocker\.com$/,
  1825. path: [
  1826. /^(\/\w+)\/(.+)\.html$/,
  1827. /^(\/\w+)\/(.+)$/,
  1828. ],
  1829. },
  1830. start: function (m) {
  1831. 'use strict';
  1832. var url = _.T('//img.imglocker.com{0}_{1}');
  1833. $.openImage(url(m.path[1], m.path[2]));
  1834. },
  1835. });
  1836.  
  1837. $.register({
  1838. rule: [
  1839. {
  1840. host: [
  1841. /^img(paying|mega)\.com$/,
  1842. /^(www\.)?imgsee\.me$/,
  1843. /^imgclick\.net$/,
  1844. ],
  1845. path: /^\/([^\/]+)\/[^\/]+\.[^\/]{3,4}$/,
  1846. },
  1847. ],
  1848. ready: function () {
  1849. 'use strict';
  1850. var i = $.$('img.pic');
  1851. if (!i) {
  1852. i = $('form');
  1853. i.submit();
  1854. return;
  1855. }
  1856. $.openImage(i.src);
  1857. },
  1858. });
  1859.  
  1860. (function () {
  1861. 'use strict';
  1862. function handler () {
  1863. $.removeNodes('iframe');
  1864. var node = $.$('#continuetoimage > form input');
  1865. if (node) {
  1866. node.click();
  1867. node.click();
  1868. return;
  1869. }
  1870. var o = $('img[alt="image"]');
  1871. $.openImage(o.src);
  1872. }
  1873. $.register({
  1874. rule: {
  1875. host: [
  1876. /^(img(rill|next|savvy|\.spicyzilla|twyti)|image(corn|picsa)|www\.(imagefolks|imgblow)|hosturimage|img-zone)\.com$/,
  1877. /^img(candy|master|-view|run)\.net$/,
  1878. /^imgcloud\.co|pixup\.us$/,
  1879. /^(www\.)?\.imgult\.com$/,
  1880. /^bulkimg\.info$/,
  1881. /^(image\.adlock|imgspot)\.org$/,
  1882. /^img\.yt$/,
  1883. /^vava\.in$/,
  1884. ],
  1885. path: /^\/img-.*\.html$/,
  1886. },
  1887. ready: handler,
  1888. });
  1889. $.register({
  1890. rule: {
  1891. host: /^08lkk\.com$/,
  1892. path: /^\/\d+\/img-.*\.html$/,
  1893. },
  1894. start: function () {
  1895. unsafeWindow.setTimeout = $.inject(_.nop);
  1896. $.get(window.location.toString(), {}, function (data) {
  1897. var a = $.toDOM(data);
  1898. var bbcode = $.$('#imagecodes input', a);
  1899. bbcode = bbcode.value.match(/.+\[IMG\]([^\[]+)\[\/IMG\].+/);
  1900. bbcode = bbcode[1];
  1901. bbcode = bbcode.replace('small', 'big');
  1902. $.openImage(bbcode);
  1903. });
  1904. },
  1905. });
  1906. })();
  1907.  
  1908. $.register({
  1909. rule: {
  1910. host: /^imgseeds\.com$/,
  1911. },
  1912. ready: function () {
  1913. 'use strict';
  1914. var img = $('#img1');
  1915. $.openImage(img.src);
  1916. },
  1917. });
  1918.  
  1919. $.register({
  1920. rule: {
  1921. host: /^(imgsure|picexposed)\.com$/,
  1922. },
  1923. ready: function () {
  1924. 'use strict';
  1925. var i = $('img.pic');
  1926. $.openImage(i.src);
  1927. },
  1928. });
  1929.  
  1930. $.register({
  1931. rule: 'http://imgtheif.com/image/*.html',
  1932. ready: function () {
  1933. 'use strict';
  1934. var a = $('div.content-container a');
  1935. $.openImage(a.href);
  1936. },
  1937. });
  1938.  
  1939. $.register({
  1940. rule: {
  1941. host: /^imgvault\.pw$/,
  1942. path: /^\/view-image\//,
  1943. },
  1944. ready: function () {
  1945. 'use strict';
  1946. var a = $('article div.span7 a[target="_blank"]');
  1947. $.openImage(a.href);
  1948. },
  1949. });
  1950.  
  1951. $.register({
  1952. rule: 'http://ipic.su/?page=img&pic=*',
  1953. ready: function () {
  1954. 'use strict';
  1955. var i = $('#fz');
  1956. $.openImage(i.src);
  1957. },
  1958. });
  1959.  
  1960. $.register({
  1961. rule: {
  1962. host: /keptarolo\.hu$/,
  1963. path: /^(\/[^\/]+\/[^\/]+\.jpg)$/,
  1964. },
  1965. start: function (m) {
  1966. 'use strict';
  1967. $.openImage('http://www.keptarolo.hu/kep' + m.path[1]);
  1968. },
  1969. });
  1970.  
  1971. $.register({
  1972. rule: {
  1973. host: /^lostpic\.net$/,
  1974. query: /^\?photo=\d+$/,
  1975. },
  1976. ready: function () {
  1977. 'use strict';
  1978. var i = $('img.notinline.circle');
  1979. $.openImage(i.src);
  1980. },
  1981. });
  1982.  
  1983. (function () {
  1984. 'use strict';
  1985. function helper (m) {
  1986. $.openImage('/images/' + m.query[1]);
  1987. }
  1988. $.register({
  1989. rule: {
  1990. host: [
  1991. /^(hentai-hosting|miragepics|funextra\.hostzi|img(rex|banana))\.com$/,
  1992. /^bilder\.nixhelp\.de$/,
  1993. /^imagecurl\.(com|org)$/,
  1994. /^imagevau\.eu$/,
  1995. /^img\.deli\.sh$/,
  1996. /^imgking\.us$/,
  1997. /^image(pong|back)\.info$/,
  1998. /^imgdream\.net$/,
  1999. /^photoup\.biz$/,
  2000. ],
  2001. path: /^\/viewer\.php$/,
  2002. query: /file=([^&]+)/,
  2003. },
  2004. start: helper,
  2005. });
  2006. $.register({
  2007. rule: {
  2008. host: /^(dwimg|imgsin|www\.pictureshoster)\.com$/,
  2009. path: /^\/viewer\.php$/,
  2010. query: /file=([^&]+)/,
  2011. },
  2012. start: function (m) {
  2013. $.openImage('/files/' + m.query[1]);
  2014. },
  2015. });
  2016. $.register({
  2017. rule: {
  2018. host: /imageview\.me|244pix\.com|imgnip\.com|postimg\.net$/,
  2019. path: /^\/viewerr.*\.php$/,
  2020. query: /file=([^&]+)/,
  2021. },
  2022. start: helper,
  2023. });
  2024. $.register({
  2025. rule: {
  2026. host: /^catpic\.biz$/,
  2027. path: /^(\/\w)?\/viewer\.php$/,
  2028. query: /file=([^&]+)/,
  2029. },
  2030. start: function (m) {
  2031. var url = _.T('{0}/images/{1}');
  2032. $.openImage(url(m.path[1] || '', m.query[1]));
  2033. },
  2034. });
  2035. $.register({
  2036. rule: [
  2037. 'http://www.overpic.net/viewer.php?file=*',
  2038. ],
  2039. ready: function () {
  2040. var i = $('#main_img');
  2041. $.openImage(i.src);
  2042. },
  2043. });
  2044. })();
  2045.  
  2046. $.register({
  2047. rule: {
  2048. host: /^www\.mrjh\.org$/,
  2049. path: /^\/gallery\.php$/,
  2050. query: /^\?entry=(.+)$/,
  2051. },
  2052. ready: function (m) {
  2053. 'use strict';
  2054. var url = m.query[1];
  2055. $.openImage('/' + url);
  2056. },
  2057. });
  2058.  
  2059. $.register({
  2060. rule: {
  2061. host: /^www\.noelshack\.com$/
  2062. },
  2063. ready: function () {
  2064. var i = $('#elt_to_aff');
  2065. $.openImage(i.src);
  2066. },
  2067. });
  2068.  
  2069. $.register({
  2070. rule: 'http://pic-money.ru/*.html',
  2071. ready: function () {
  2072. 'use strict';
  2073. var f = document.forms[0];
  2074. var sig = $('input[name="sig"]', f).value;
  2075. var pic_id = $('input[name="pic_id"]', f).value;
  2076. var referer = $('input[name="referer"]', f).value;
  2077. var url = _.T('/pic.jpeg?pic_id={pic_id}&sig={sig}&referer={referer}');
  2078. $.openImage(url({
  2079. sig: sig,
  2080. pic_id: pic_id,
  2081. referer: referer,
  2082. }));
  2083. },
  2084. });
  2085.  
  2086. $.register({
  2087. rule: 'http://www.pic-upload.de/view-*.html',
  2088. ready: function () {
  2089. 'use strict';
  2090. $.removeNodes('.advert');
  2091. var i = $('img.preview_picture_2b, img.original_picture_2b');
  2092. $.openImage(i.src);
  2093. },
  2094. });
  2095.  
  2096. $.register({
  2097. rule: {
  2098. host: /^pic(2profit|p2)\.com$/,
  2099. },
  2100. ready: function () {
  2101. 'use strict';
  2102. var i = $('form > #d1 ~ input[name=bigimg]');
  2103. $.openImage(i.value);
  2104. },
  2105. });
  2106.  
  2107. $.register({
  2108. rule: {
  2109. host: /^pic(4|5)you.ru$/
  2110. },
  2111. ready: function () {
  2112. if ($.$('#d1 > img') != null) {
  2113. var URLparams = location.href.split("/", 5);
  2114. var next = URLparams[0] + '/' + URLparams[1] + '/' + URLparams[2] + '/' + URLparams[3] + '/' + URLparams[4] + '/1/';
  2115. $.setCookie('p4yclick','1');
  2116. $.openLink(next);
  2117. } else {
  2118. var i = $('#d1 img').src;
  2119. $.openImage(i);
  2120. }
  2121. },
  2122. });
  2123.  
  2124. $.register({
  2125. rule: {
  2126. host: /^(www\.)?piccash\.net$/
  2127. },
  2128. ready: function () {
  2129. var i = $('.container > img');
  2130. var m =i.onclick.toString().match(/mshow\('([^']+)'\);/);
  2131. $.openImage(m[1]);
  2132. },
  2133. });
  2134.  
  2135. $.register({
  2136. rule: [
  2137. 'http://amateurfreak.org/share-*.html',
  2138. 'http://amateurfreak.org/share.php?id=*',
  2139. 'http://images.maxigame.by/share-*.html',
  2140. 'http://picfox.org/*',
  2141. 'http://www.euro-pic.eu/share.php?id=*',
  2142. 'http://www.gratisimage.dk/share-*.html',
  2143. 'http://xxx.freeimage.us/share.php?id=*',
  2144. 'http://npicture.net/share-*.html',
  2145. 'http://www.onlinepic.net/share.php?id=*',
  2146. 'http://www.pixsor.com/share.php?id=*',
  2147. ],
  2148. ready: function () {
  2149. 'use strict';
  2150. var o = $('#iimg');
  2151. $.openImage(o.src);
  2152. },
  2153. });
  2154.  
  2155. $.register({
  2156. rule: 'http://picmoe.net/d.php?id=*',
  2157. ready: function () {
  2158. 'use strict';
  2159. var i = $('img');
  2160. $.openImage(i.src);
  2161. },
  2162. });
  2163.  
  2164. $.register({
  2165. rule: [
  2166. 'http://pics-money.ru/allpicfree/*',
  2167. 'http://www.pics-money.ru/allimage/*',
  2168. ],
  2169. });
  2170. $.register({
  2171. rule: {
  2172. host: /^pics-money\.ru$/,
  2173. path: /^\/v\.php$/,
  2174. },
  2175. ready: function () {
  2176. 'use strict';
  2177. $.removeNodes('iframe');
  2178. var i = $('center img:not([id])');
  2179. $.openImage(i.src);
  2180. },
  2181. });
  2182. $.register({
  2183. rule: {
  2184. host: /^www\.pics-money\.ru$/,
  2185. },
  2186. ready: function () {
  2187. 'use strict';
  2188. $.removeNodes('iframe');
  2189. var i = $('#d1 img');
  2190. i = i.onclick.toString();
  2191. i = i.match(/mshow\('(.+)'\)/);
  2192. i = i[1];
  2193. $.openImage(i);
  2194. },
  2195. });
  2196.  
  2197. $.register({
  2198. rule: 'http://picshare.geenza.com/pics/*',
  2199. ready: function () {
  2200. 'use strict';
  2201. var i = $('#picShare_image_container');
  2202. $.openImage(i.src);
  2203. },
  2204. });
  2205.  
  2206. $.register({
  2207. rule: {
  2208. host: /^pixhub\.eu$/,
  2209. },
  2210. ready: function () {
  2211. 'use strict';
  2212. $.removeNodes('iframe, .adultpage, #FFN_Banner_Holder');
  2213. var i = $('.image-show img');
  2214. $.openImage(i.src);
  2215. },
  2216. });
  2217.  
  2218. $.register({
  2219. rule: {
  2220. host: /^(www\.)?pixroute\.com$/
  2221. },
  2222. ready: function () {
  2223. 'use strict';
  2224. var o = $('body > center > div > center:nth-child(12) > div > a > img');
  2225. $.openImage(o.src);
  2226. },
  2227. });
  2228.  
  2229. $.register({
  2230. rule: {
  2231. host: /^www\.pornimagex\.com$/,
  2232. path: /^\/image\/.*$/,
  2233. },
  2234. ready: function () {
  2235. 'use strict';
  2236. var img = $('#fixed img.border2px');
  2237. $.openImage(img.src);
  2238. },
  2239. });
  2240.  
  2241. $.register({
  2242. rule: {
  2243. host: /^postimg\.org$/,
  2244. },
  2245. ready: function () {
  2246. 'use strict';
  2247. var i = $('body > center > img');
  2248. $.openImage(i.src);
  2249. },
  2250. });
  2251.  
  2252. $.register({
  2253. rule: {
  2254. host: /^prntscr\.com$/
  2255. },
  2256. ready: function () {
  2257. 'use strict';
  2258. var i = $('#screenshot-image');
  2259. $.openImage(i.src);
  2260. },
  2261. });
  2262.  
  2263. $.register({
  2264. rule: {
  2265. host: /^pronpic\.org$/,
  2266. },
  2267. ready: function () {
  2268. 'use strict';
  2269. var img = $('table.new_table2:nth-child(2) img.link');
  2270. var url = img.src.replace('th_', '');
  2271. $.openImage(url);
  2272. },
  2273. });
  2274.  
  2275. $.register({
  2276. rule: {
  2277. host: /^qrrro\.com$/,
  2278. path: /^(\/images\/.+)\.html$/,
  2279. },
  2280. start: function (m) {
  2281. 'use strict';
  2282. $.openImage(m.path[1]);
  2283. },
  2284. });
  2285.  
  2286. (function () {
  2287. 'use strict';
  2288. function ready () {
  2289. var i = $('img[class^=centred]');
  2290. $.openImage(i.src);
  2291. }
  2292. $.register({
  2293. rule: [
  2294. {
  2295. host: [
  2296. /^(image(decode|ontime)|(zonezeed|zelje|croft|myhot|dam)image|pic(\.apollon-fervor|stwist)|www\.imglemon|ericsony)\.com$/,
  2297. /^(img(serve|coin|fap)|gallerycloud)\.net$/,
  2298. /^hotimages\.eu$/,
  2299. /^(imgstudio|dragimage|imagelook)\.org$/,
  2300. ],
  2301. path: /^\/img-.*\.html$/,
  2302. },
  2303. {
  2304. host: /^imgrun\.net$/,
  2305. path: /^\/t\/img-.*\.html$/,
  2306. },
  2307. ],
  2308. ready: ready,
  2309. });
  2310. $.register({
  2311. rule: {
  2312. host: /^www.img(adult|taxi).com$/,
  2313. path: /^\/img-.*\.html$/,
  2314. },
  2315. start: function () {
  2316. var c = $.getCookie('user');
  2317. if (c) {
  2318. return;
  2319. }
  2320. $.setCookie('user', 'true');
  2321. window.location.reload();
  2322. },
  2323. ready: ready,
  2324. });
  2325. $.register({
  2326. rule: {
  2327. host: /^08lkk\.com$/,
  2328. path: /^\/Photo\/img-.+\.html$/,
  2329. },
  2330. start: function () {
  2331. unsafeWindow.setTimeout = $.inject(_.nop);
  2332. $.get(window.location.toString(), {}, function (data) {
  2333. var a = $.toDOM(data);
  2334. var i = $('img[class^=centred]', a);
  2335. $.openImage(i.src);
  2336. });
  2337. },
  2338. });
  2339. })();
  2340.  
  2341. (function () {
  2342. 'use strict';
  2343. $.register({
  2344. rule: {
  2345. host: /^www\.imagesnake\.com$/,
  2346. path: /^\/index\.php$/,
  2347. query: /^\?/,
  2348. },
  2349. ready: function () {
  2350. var a = $('#tablewraper a:nth-child(2)');
  2351. $.openImage(a.href);
  2352. },
  2353. });
  2354. function run () {
  2355. var i = $('#img_obj');
  2356. $.openImage(i.src);
  2357. }
  2358. $.register({
  2359. rule: {
  2360. host: /^www\.(imagesnake|freebunker|imgcarry)\.com$/,
  2361. path: /^\/show\//,
  2362. },
  2363. ready: run,
  2364. });
  2365. $.register({
  2366. rule: {
  2367. host: /^www\.imagefruit\.com$/,
  2368. path: /^\/(img|show)\/.+/,
  2369. },
  2370. ready: run,
  2371. });
  2372. })();
  2373.  
  2374. $.register({
  2375. rule: 'http://www.subirimagenes.com/*.html',
  2376. ready: function () {
  2377. 'use strict';
  2378. var i = $('#ImagenVisualizada');
  2379. $.openImage(i.src);
  2380. },
  2381. });
  2382.  
  2383. $.register({
  2384. rule: 'http://tinypic.com/view.php?pic=*',
  2385. ready: function () {
  2386. 'use strict';
  2387. var i = $('#imgElement');
  2388. $.openImage(i.src);
  2389. },
  2390. });
  2391.  
  2392. $.register({
  2393. rule: {
  2394. host: /^www\.turboimagehost\.com$/,
  2395. },
  2396. ready: function () {
  2397. 'use strict';
  2398. var i = $('#imageid');
  2399. $.openImage(i.src);
  2400. },
  2401. });
  2402.  
  2403. $.register({
  2404. rule: 'http://vvcap.net/db/*.htp',
  2405. ready: function () {
  2406. 'use strict';
  2407. var i = $('img');
  2408. $.replace(i.src);
  2409. },
  2410. });
  2411.  
  2412. $.register({
  2413. rule: {
  2414. host: /^x\.pixfarm\.net$/,
  2415. path: /^\/sexy\/\d+\/\d+\/.+\.html$/,
  2416. },
  2417. ready: function () {
  2418. 'use strict';
  2419. var i = $('img');
  2420. $.openImage(i.src);
  2421. },
  2422. });
  2423.  
  2424. $.register({
  2425. rule: {
  2426. host: /\.yfrog\.com$/,
  2427. },
  2428. ready: function () {
  2429. 'use strict';
  2430. if (/^\/z/.test(window.location.pathname)) {
  2431. var i = $('#the-image img');
  2432. $.openImage(i.src);
  2433. return;
  2434. }
  2435. var a = $.$('#continue-link a, #main_image');
  2436. if (a) {
  2437. $.openLink('/z' + window.location.pathname);
  2438. return;
  2439. }
  2440. },
  2441. });
  2442.  
  2443. $.register({
  2444. rule: {
  2445. host: /^01\.nl$/,
  2446. },
  2447. ready: function () {
  2448. 'use strict';
  2449. var f = $('iframe#redirectframe');
  2450. $.openLink(f.src);
  2451. },
  2452. });
  2453.  
  2454. $.register({
  2455. rule: {
  2456. host: /^(www\.)?1be\.biz$/,
  2457. path: /^\/s\.php$/,
  2458. query: /^\?(.+)/,
  2459. },
  2460. start: function (m) {
  2461. 'use strict';
  2462. $.openLink(m.query[1]);
  2463. },
  2464. });
  2465.  
  2466. $.register({
  2467. rule: {
  2468. host: /^(www\.)?1tiny\.net$/,
  2469. path: /\/\w+/
  2470. },
  2471. ready: function () {
  2472. 'use strict';
  2473. var rUrl = /window\.location='([^']+)';/;
  2474. var directUrl = $.$$('script').find(function (script) {
  2475. var m = rUrl.exec(script.innerHTML);
  2476. if (!m) {
  2477. return _.nop;
  2478. }
  2479. return m[1];
  2480. });
  2481. if (!directUrl) {
  2482. throw new _.AdsBypasserError('script content changed');
  2483. }
  2484. $.openLink(directUrl.payload);
  2485. },
  2486. });
  2487.  
  2488. $.register({
  2489. rule: {
  2490. host: /^2ty\.cc$/,
  2491. path: /^\/.+/,
  2492. },
  2493. ready: function () {
  2494. 'use strict';
  2495. $.removeNodes('iframe');
  2496. var a = $('#close');
  2497. $.openLink(a.href);
  2498. },
  2499. });
  2500.  
  2501. $.register({
  2502. rule: {
  2503. host: /^(www\.)?3ra\.be$/,
  2504. },
  2505. ready: function () {
  2506. 'use strict';
  2507. $.removeNodes('iframe');
  2508. var f = unsafeWindow.fc;
  2509. if (!f) {
  2510. throw new _.AdsBypasserError('window.fc is undefined');
  2511. }
  2512. f = f.toString();
  2513. f = f.match(/href="([^"]*)/);
  2514. if (!f) {
  2515. throw new _.AdsBypasserError('url pattern outdated');
  2516. }
  2517. $.openLink(f[1]);
  2518. },
  2519. });
  2520.  
  2521. $.register({
  2522. rule: {
  2523. host: /^(www\.)?4fun\.tw$/,
  2524. },
  2525. ready: function () {
  2526. 'use strict';
  2527. var i = $('#original_url');
  2528. $.openLink(i.value);
  2529. },
  2530. });
  2531.  
  2532. (function () {
  2533. 'use strict';
  2534. $.register({
  2535. rule: {
  2536. host: /^ad7.biz$/,
  2537. path: /^\/\d+\/(.*)$/,
  2538. },
  2539. start: function (m) {
  2540. $.removeNodes('iframe');
  2541. var redirectLink = m.path[1];
  2542. if (!redirectLink.match(/^https?:\/\//)) {
  2543. redirectLink = "http://" + redirectLink;
  2544. }
  2545. $.openLink(redirectLink);
  2546. },
  2547. });
  2548. $.register({
  2549. rule: {
  2550. host: /^ad7.biz$/,
  2551. path: /^\/\w+$/,
  2552. },
  2553. ready: function () {
  2554. $.removeNodes('iframe');
  2555. var script = $.searchScripts('var r_url');
  2556. var url = script.match(/&url=([^&]+)/);
  2557. url = url[1];
  2558. $.openLink(url);
  2559. },
  2560. });
  2561. })();
  2562.  
  2563. $.register({
  2564. rule: {
  2565. host: /^(www\.)?adb\.ug$/,
  2566. path: /^(?!\/(?:privacy|terms|contact(\/.*)?|#.*)?$).*$/
  2567. },
  2568. ready: function () {
  2569. 'use strict';
  2570. $.removeNodes('iframe');
  2571. var m = $.searchScripts(/top\.location\.href="([^"]+)"/);
  2572. if (m) {
  2573. $.openLink(m[1]);
  2574. return;
  2575. }
  2576. m = $.searchScripts(/\{_args.+\}\}/);
  2577. if (!m) {
  2578. throw new _.AdsBypasserError('script content changed');
  2579. }
  2580. m = eval('(' + m[0] + ')');
  2581. var url = window.location.pathname + '/skip_timer';
  2582. var i = setInterval(function () {
  2583. $.post(url, m, function (text) {
  2584. var jj = JSON.parse(text);
  2585. if (!jj.errors && jj.messages) {
  2586. clearInterval(i);
  2587. $.openLink(jj.messages.url);
  2588. }
  2589. });
  2590. }, 1000);
  2591. },
  2592. });
  2593.  
  2594. (function () {
  2595. 'use strict';
  2596. $.register({
  2597. rule: {
  2598. path: /\/locked$/,
  2599. query: /url=([^&]+)/,
  2600. },
  2601. start: function (m) {
  2602. $.resetCookies();
  2603. $.openLink('/' + m.query[1]);
  2604. },
  2605. });
  2606. $.register({
  2607. rule: function () {
  2608. var h = $.$('html[id="adfly_html"]');
  2609. var b = $.$('body[id="home"]');
  2610. if (h && b) {
  2611. return true;
  2612. } else {
  2613. return null;
  2614. }
  2615. },
  2616. ready: function () {
  2617. var h = $.$('#adfly_html'), b = $.$('#home');
  2618. if (!h || !b || h.nodeName !== 'HTML' || b.nodeName !== 'BODY') {
  2619. return;
  2620. }
  2621. $.removeNodes('iframe');
  2622. unsafeWindow.cookieCheck = $.inject(_.nop);
  2623. h = unsafeWindow.eu;
  2624. if (!h) {
  2625. h = $('#adfly_bar');
  2626. unsafeWindow.close_bar();
  2627. return;
  2628. }
  2629. var a = h.indexOf('!HiTommy');
  2630. if (a >= 0) {
  2631. h = h.substring(0, a);
  2632. }
  2633. a = '';
  2634. b = '';
  2635. for (var i = 0; i < h.length; ++i) {
  2636. if (i % 2 === 0) {
  2637. a = a + h.charAt(i);
  2638. } else {
  2639. b = h.charAt(i) + b;
  2640. }
  2641. }
  2642. h = atob(a + b);
  2643. h = h.substr(2);
  2644. if (location.hash) {
  2645. h += location.hash;
  2646. }
  2647. $.openLinkWithReferer(h);
  2648. },
  2649. });
  2650. $.register({
  2651. rule: 'http://ad7.biz/*',
  2652. ready: function () {
  2653. $.removeNodes('iframe');
  2654. $.resetCookies();
  2655. var script = $.$$('script').find(function (v) {
  2656. if (v.innerHTML.indexOf('var r_url') < 0) {
  2657. return _.nop;
  2658. }
  2659. return v.innerHTML;
  2660. });
  2661. var url = script.payload.match(/&url=([^&]+)/);
  2662. url = url[1];
  2663. $.openLink(url);
  2664. },
  2665. });
  2666. })();
  2667.  
  2668. $.register({
  2669. rule: 'http://adfoc.us/*',
  2670. ready: function () {
  2671. 'use strict';
  2672. var root = document.body;
  2673. var observer = new MutationObserver(function (mutations) {
  2674. var o = $.$('#showSkip');
  2675. if (o) {
  2676. observer.disconnect();
  2677. o = o.querySelector('a');
  2678. $.openLink(o.href);
  2679. }
  2680. });
  2681. observer.observe(root, {
  2682. childList: true,
  2683. subtree: true,
  2684. });
  2685. },
  2686. });
  2687.  
  2688. $.register({
  2689. rule: {
  2690. host: /^(www\.)?adjet\.biz$/,
  2691. },
  2692. ready: function () {
  2693. 'use strict';
  2694. var m = $.searchScripts(/href=(\S+)/);
  2695. if (!m) {
  2696. throw new _.AdsBypasserError('site changed');
  2697. }
  2698. $.openLink(m[1]);
  2699. },
  2700. });
  2701.  
  2702. $.register({
  2703. rule: {
  2704. host: /^adlock\.org$/,
  2705. },
  2706. ready: function () {
  2707. 'use strict';
  2708. var a = $.$('#xre a.xxr');
  2709. if (a) {
  2710. $.openLink(a.href);
  2711. return;
  2712. }
  2713. a = unsafeWindow.fileLocation;
  2714. if (a) {
  2715. $.openLink(a);
  2716. }
  2717. },
  2718. });
  2719.  
  2720. $.register({
  2721. rule: {
  2722. host: /^(www\.)?adlot\.us$/,
  2723. },
  2724. ready: function () {
  2725. 'use strict';
  2726. $.removeNodes('iframe');
  2727. var script = $.$$('script').find(function (v) {
  2728. if (v.innerHTML.indexOf('form') < 0) {
  2729. return _.nop;
  2730. }
  2731. return v.innerHTML;
  2732. });
  2733. var p = /name='([^']+)' value='([^']+)'/g;
  2734. var opt = {
  2735. image: ' ',
  2736. };
  2737. var tmp = null;
  2738. while (tmp = p.exec(script.payload)) {
  2739. opt[tmp[1]] = tmp[2];
  2740. }
  2741. $.openLinkByPost('', opt);
  2742. },
  2743. });
  2744.  
  2745. $.register({
  2746. rule: {
  2747. host: /^(www\.)?ah-informatique\.com$/,
  2748. path: /^\/ZipUrl/,
  2749. },
  2750. ready: function () {
  2751. 'use strict';
  2752. var a = $('#zip3 a');
  2753. $.openLink(a.href);
  2754. },
  2755. });
  2756.  
  2757. $.register({
  2758. rule: {
  2759. host: /^aka\.gr$/
  2760. },
  2761. ready: function () {
  2762. 'use strict';
  2763. var l = $('iframe#yourls-frame');
  2764. $.openLink(l.src);
  2765. },
  2766. });
  2767.  
  2768. $.register({
  2769. rule: {
  2770. host: /^anonymbucks\.com$/,
  2771. },
  2772. ready: function () {
  2773. 'use strict';
  2774. var a = $('#boton-continuar');
  2775. a.click();
  2776. },
  2777. });
  2778.  
  2779. (function () {
  2780. 'use strict';
  2781. $.register({
  2782. rule: {
  2783. host: /^bc\.vc$/,
  2784. query: /^.+(https?:\/\/.+)/,
  2785. },
  2786. start: function (m) {
  2787. $.openLink(m.query[1]);
  2788. },
  2789. });
  2790. $.register({
  2791. rule: {
  2792. host: /^bc\.vc$/,
  2793. path: /^.+(https?:\/\/.+)$/,
  2794. },
  2795. start: function (m) {
  2796. $.openLink(m.path[1]);
  2797. },
  2798. });
  2799. function decompress (script, unzip) {
  2800. if (!unzip) {
  2801. return script;
  2802. }
  2803. var matches = script.match(/eval(.*)/);
  2804. matches = matches[1];
  2805. script = eval(matches);
  2806. return script;
  2807. }
  2808. function searchScript (unzip) {
  2809. var content = $.$$('script').find(function (script) {
  2810. if (script.innerHTML.indexOf('make_log') < 0) {
  2811. return _.nop;
  2812. }
  2813. return script.innerHTML;
  2814. });
  2815. if (content) {
  2816. return {
  2817. direct: false,
  2818. script: decompress(content.payload, unzip),
  2819. };
  2820. }
  2821. content = $.$$('script').find(function (script) {
  2822. if (script.innerHTML.indexOf('click_log') < 0) {
  2823. return _.nop;
  2824. }
  2825. return script.innerHTML;
  2826. });
  2827. if (content) {
  2828. return {
  2829. direct: true,
  2830. script: decompress(content.payload, unzip),
  2831. };
  2832. }
  2833. throw _.AdsBypasserError('script changed');
  2834. }
  2835. function knockServer (script, dirtyFix) {
  2836. var matches = script.match(/\$.post\('([^']*)'[^{]+(\{opt:'make_log'[^}]+\}\}),/i);
  2837. var make_url = matches[1];
  2838. var make_opts = eval('(' + matches[2] + ')');
  2839. var i = setInterval(function () {
  2840. $.post(make_url, make_opts, function (text) {
  2841. if (dirtyFix) {
  2842. text = text.match(/\{.+\}/)[0];
  2843. }
  2844. var jj = JSON.parse(text);
  2845. if (jj.message) {
  2846. clearInterval(i);
  2847. $.openLink(jj.message.url);
  2848. }
  2849. });
  2850. }, 1000);
  2851. }
  2852. function knockServer2 (script) {
  2853. var post = unsafeWindow.$.post;
  2854. unsafeWindow.$.post = $.inject(function (a, b, c) {
  2855. if (typeof c !== 'function') {
  2856. return;
  2857. }
  2858. setTimeout(function () {
  2859. var data = {
  2860. error: false,
  2861. message: {
  2862. url: '#',
  2863. },
  2864. };
  2865. c(JSON.stringify(data));
  2866. }, 1000);
  2867. });
  2868. var matches = script.match(/\$.post\('([^']*)'[^{]+(\{opt:'make_log'[^}]+\}\}),/i);
  2869. var make_url = matches[1];
  2870. var make_opts = eval('(' + matches[2] + ')');
  2871. function makeLog () {
  2872. make_opts.opt = 'make_log';
  2873. post(make_url, $.inject(make_opts), $.inject(function (text) {
  2874. var data = JSON.parse(text);
  2875. _.info('make_log', data);
  2876. if (!data.message) {
  2877. checksLog();
  2878. return;
  2879. }
  2880. $.openLink(data.message.url);
  2881. }));
  2882. }
  2883. function checkLog () {
  2884. make_opts.opt = 'check_log';
  2885. post(make_url, $.inject(make_opts), $.inject(function (text) {
  2886. var data = JSON.parse(text);
  2887. _.info('check_log', data);
  2888. if (!data.message) {
  2889. checkLog();
  2890. return;
  2891. }
  2892. makeLog();
  2893. }));
  2894. }
  2895. function checksLog () {
  2896. make_opts.opt = 'checks_log';
  2897. post(make_url, $.inject(make_opts), $.inject(function () {
  2898. _.info('checks_log');
  2899. checkLog();
  2900. }));
  2901. }
  2902. checksLog();
  2903. }
  2904. $.register({
  2905. rule: {
  2906. host: /^bc\.vc$/,
  2907. path: /^\/.+/,
  2908. },
  2909. ready: function () {
  2910. $.removeNodes('iframe');
  2911. var result = searchScript(false);
  2912. if (!result.direct) {
  2913. knockServer2(result.script);
  2914. } else {
  2915. result = result.script.match(/top\.location\.href = '([^']+)'/);
  2916. if (!result) {
  2917. throw new _.AdsBypasserError('script changed');
  2918. }
  2919. result = result[1];
  2920. $.openLink(result);
  2921. }
  2922. },
  2923. });
  2924. function run (dirtyFix) {
  2925. $.removeNodes('iframe');
  2926. var result = searchScript(true);
  2927. if (!result.direct) {
  2928. knockServer(result.script,dirtyFix);
  2929. } else {
  2930. result = result.script.match(/top\.location\.href='([^']+)'/);
  2931. if (!result) {
  2932. throw new _.AdsBypasserError('script changed');
  2933. }
  2934. result = result[1];
  2935. $.openLink(result);
  2936. }
  2937. }
  2938. $.register({
  2939. rule: {
  2940. host: /^adcrun\.ch$/,
  2941. path: /^\/\w+$/,
  2942. },
  2943. ready: function () {
  2944. $.removeNodes('.user_content');
  2945. var rSurveyLink = /http\.open\("GET", "api_ajax\.php\?sid=\d*&ip=[^&]*&longurl=([^"]+)" \+ first_time, (?:true|false)\);/;
  2946. var l = $.searchScripts(rSurveyLink);
  2947. if (l) {
  2948. $.openLink(l[1]);
  2949. return;
  2950. }
  2951. run(true);
  2952. },
  2953. });
  2954. $.register({
  2955. rule: {
  2956. host: [
  2957. /^1tk\.us$/,
  2958. /^gx\.si$/,
  2959. /^adwat\.ch$/,
  2960. /^(fly2url|urlwiz|xafox)\.com$/,
  2961. /^(zpoz|ultry)\.net$/,
  2962. /^(wwy|myam)\.me$/,
  2963. /^ssl\.gs$/,
  2964. /^link\.tl$/,
  2965. /^hit\.us$/,
  2966. /^shortit\.in$/,
  2967. /^(adbla|tl7)\.us$/,
  2968. /^www\.adjet\.eu$/,
  2969. /^srk\.gs$/,
  2970. /^cun\.bz$/,
  2971. /^miniurl\.tk$/,
  2972. ],
  2973. path: /^\/.+/,
  2974. },
  2975. ready: run,
  2976. });
  2977. $.register({
  2978. rule: {
  2979. host: /^adtr\.im|ysear\.ch|xip\.ir$/,
  2980. path: /^\/.+/,
  2981. },
  2982. ready: function () {
  2983. var a = $.$('div.fly_head a.close');
  2984. var f = $.$('iframe.fly_frame');
  2985. if (a && f) {
  2986. $.openLink(f.src);
  2987. } else {
  2988. run();
  2989. }
  2990. },
  2991. });
  2992. $.register({
  2993. rule: {
  2994. host: /^ad5\.eu$/,
  2995. path: /^\/[^.]+$/,
  2996. },
  2997. ready: function() {
  2998. $.removeNodes('iframe');
  2999. var s = searchScript(true);
  3000. var m = s.script.match(/(<form name="form1"method="post".*(?!<\\form>)<\/form>)/);
  3001. if (!m) {return;}
  3002. m = m[1];
  3003. var tz = -(new Date().getTimezoneOffset()/60);
  3004. m = m.replace("'+timezone+'",tz);
  3005. var d = document.createElement('div');
  3006. d.setAttribute('id','AdsBypasserFTW');
  3007. d.setAttribute('style', 'display:none;');
  3008. d.innerHTML = m;
  3009. document.body.appendChild(d);
  3010. $('#AdsBypasserFTW > form[name=form1]').submit();
  3011. },
  3012. });
  3013. $.register({
  3014. rule: {
  3015. host: /^tr5\.in$/,
  3016. path: /^\/.+/,
  3017. },
  3018. ready: function () {
  3019. run(true);
  3020. },
  3021. });
  3022. })();
  3023.  
  3024. $.register({
  3025. rule: 'http://www.bild.me/bild.php?file=*',
  3026. ready: function () {
  3027. 'use strict';
  3028. var i = $('#Bild');
  3029. $.openLink(i.src);
  3030. },
  3031. });
  3032.  
  3033. $.register({
  3034. rule: 'http://bildr.no/view/*',
  3035. ready: function () {
  3036. 'use strict';
  3037. var i = $('img.bilde');
  3038. $.openLink(i.src);
  3039. },
  3040. });
  3041.  
  3042. $.register({
  3043. rule: {
  3044. host: /^(www\.)?(buz|vzt)url\.com$/,
  3045. },
  3046. ready: function () {
  3047. 'use strict';
  3048. var frame = $('frame[scrolling=yes]');
  3049. $.openLink(frame.src);
  3050. },
  3051. });
  3052.  
  3053. $.register({
  3054. rule: {
  3055. host: /^(cf|ex|xt)\d\.(me|co)$/,
  3056. },
  3057. ready: function (m) {
  3058. 'use strict';
  3059. $.removeNodes('iframe');
  3060. var a = $('#skip_button');
  3061. $.openLink(a.href);
  3062. },
  3063. });
  3064.  
  3065. $.register({
  3066. rule: {
  3067. host: /^cf\.ly$/,
  3068. path: /^\/[^\/]+$/,
  3069. },
  3070. start: function (m) {
  3071. 'use strict';
  3072. $.removeNodes('iframe');
  3073. $.openLink('/skip' + m.path[0]);
  3074. },
  3075. });
  3076.  
  3077. $.register({
  3078. rule: {
  3079. host: /^(www\.)?cli\.gs$/,
  3080. },
  3081. ready: function () {
  3082. 'use strict';
  3083. var a = $('a.RedirectLink');
  3084. $.openLink(a.href);
  3085. },
  3086. });
  3087.  
  3088. $.register({
  3089. rule: {
  3090. host: /^(www\.)?(coin-ads\.com|shortin\.tk)$/,
  3091. path: /^\/.+/,
  3092. },
  3093. ready: function () {
  3094. 'use strict';
  3095. var m = $.searchScripts(/window\.location\.replace/);
  3096. if (m) {
  3097. return;
  3098. }
  3099. m = $.searchScripts(/countdownArea\.innerHTML = "([^"]+)"/);
  3100. if (!m) {
  3101. throw new _.AdsBypasserError('pattern changed');
  3102. }
  3103. m = m[1];
  3104. var d = $.$('#area');
  3105. if (d) {
  3106. d.innerHTML = m;
  3107. d = $('.skip', d);
  3108. d.click();
  3109. return;
  3110. }
  3111. d = $('#site');
  3112. $.openLink(d.src);
  3113. },
  3114. });
  3115.  
  3116. (function () {
  3117. 'use strict';
  3118. $.register({
  3119. rule: {
  3120. host: /^(?:(\w+)\.)?(coinurl\.com|cur\.lv)$/,
  3121. path: /^\/[-\w]+$/
  3122. },
  3123. ready: function (m) {
  3124. $.removeNodes('iframe');
  3125. if (m.host[1] == null) {
  3126. var mainFrame = 'http://cur.lv/redirect_curlv.php?code=' + escape(window.location.pathname.substring(1));
  3127. } else {
  3128. var mainFrame = 'http://cur.lv/redirect_curlv.php?zone=' + m.host[1] + '&name=' + escape(window.location.pathname.substring(1));
  3129. }
  3130. $.get(mainFrame, {}, function(mainFrameContent) {
  3131. try {
  3132. var docMainFrame = $.toDOM(mainFrameContent);
  3133. } catch (e) {
  3134. throw new _.AdsBypasserError('main frame changed');
  3135. }
  3136. var rExtractLink = /onclick="open_url\('([^']+)',\s*'go'\)/;
  3137. var innerFrames = $.$$('frameset > frame', docMainFrame).each(function (currFrame) {
  3138. var currFrameAddr = window.location.origin + '/' + currFrame.getAttribute('src');
  3139. $.get(currFrameAddr, {}, function(currFrameContent) {
  3140. var aRealLink = rExtractLink.exec(currFrameContent);
  3141. if (aRealLink == null || aRealLink[1] == null) {return;}
  3142. var realLink = aRealLink[1];
  3143. $.openLink(realLink);
  3144. });
  3145. });
  3146. });
  3147. },
  3148. });
  3149. })();
  3150.  
  3151. $.register({
  3152. rule: {
  3153. host: /^comyonet\.com$/,
  3154. },
  3155. ready: function () {
  3156. 'use strict';
  3157. var input = $('input[name="enter"]');
  3158. input.click();
  3159. },
  3160. });
  3161.  
  3162. $.register({
  3163. rule: {
  3164. host: /^(www\.)?dapat\.in$/,
  3165. },
  3166. ready: function () {
  3167. 'use strict';
  3168. var f = $('iframe[name=pagetext]');
  3169. $.openLink(f.src);
  3170. },
  3171. });
  3172.  
  3173. $.register({
  3174. rule: {
  3175. host: /^(www\.)?dd\.ma$/,
  3176. },
  3177. ready: function (m) {
  3178. 'use strict';
  3179. var i = $.$('#mainframe');
  3180. if (i) {
  3181. $.openLink(i.src);
  3182. return;
  3183. }
  3184. var a = $('#btn_open a');
  3185. $.openLink(a.href);
  3186. },
  3187. });
  3188.  
  3189. $.register({
  3190. rule: 'http://www.dumppix.com/viewer.php?*',
  3191. ready: function () {
  3192. 'use strict';
  3193. var i = $.$('#boring');
  3194. if (i) {
  3195. $.openLink(i.src);
  3196. return;
  3197. }
  3198. i = $('table td:nth-child(1) a');
  3199. $.openLink(i.href);
  3200. },
  3201. });
  3202.  
  3203. $.register({
  3204. rule: {
  3205. host: /^durl\.me$/,
  3206. },
  3207. ready: function () {
  3208. 'use strict';
  3209. var a = $('a[class="proceedBtn"]');
  3210. $.openLink(a.href);
  3211. },
  3212. });
  3213.  
  3214. $.register({
  3215. rule: {
  3216. host: /easyurl\.net|(atu|clickthru|redirects|readthis)\.ca|goshrink\.com$/,
  3217. },
  3218. ready: function () {
  3219. 'use strict';
  3220. var f = $('frame[name=main]');
  3221. $.openLink(f.src);
  3222. },
  3223. });
  3224.  
  3225. $.register({
  3226. rule: {
  3227. host: /^ethi\.in$/,
  3228. path: /^\/i\/\d+$/,
  3229. },
  3230. ready: function () {
  3231. 'use strict';
  3232. var a = $('#wrapper > .tombol > a[target="_blank"]');
  3233. $.openLink(a.href);
  3234. },
  3235. });
  3236.  
  3237. $.register({
  3238. rule: {
  3239. host: /^(www\.)?filoops.info$/
  3240. },
  3241. ready: function () {
  3242. 'use strict';
  3243. var a = $('#text > center a, #text > div[align=center] a');
  3244. $.openLink(a.href);
  3245. },
  3246. });
  3247.  
  3248. $.register({
  3249. rule: {
  3250. host: /^fit\.sh$/,
  3251. },
  3252. ready: function () {
  3253. 'use strict';
  3254. $.removeNodes('.container-body');
  3255. var m = $.searchScripts(/token="([^"]+)"/);
  3256. if (!m) {
  3257. throw new _.AdsBypasserError('site changed');
  3258. }
  3259. m = m[1];
  3260. var interLink = '/go/' + m + '?a=' + window.location.hash.substr(1);
  3261. setTimeout(function () {
  3262. $.openLink(interLink);
  3263. }, 6000);
  3264. },
  3265. });
  3266.  
  3267. (function () {
  3268. 'use strict';
  3269. $.register({
  3270. rule: {
  3271. host: /^(www\.)?fundurl\.com$/,
  3272. query: /i=([^&]+)/,
  3273. },
  3274. start: function (m) {
  3275. $.openLink(m.query[1]);
  3276. },
  3277. });
  3278. $.register({
  3279. rule: {
  3280. host: /^(www\.)?fundurl\.com$/,
  3281. path: /^\/(go-\w+|load\.php)$/,
  3282. },
  3283. ready: function () {
  3284. var f = $('iframe[name=fpage3]');
  3285. $.openLink(f.src);
  3286. },
  3287. });
  3288. })();
  3289.  
  3290. $.register({
  3291. rule: {
  3292. host: /^gkurl\.us$/,
  3293. },
  3294. ready: function () {
  3295. 'use strict';
  3296. var iframe = $('#gkurl-frame');
  3297. $.openLink(iframe.src);
  3298. },
  3299. });
  3300.  
  3301. $.register({
  3302. rule: {
  3303. host: /^u\.go2\.me$/,
  3304. },
  3305. ready: function () {
  3306. 'use strict';
  3307. var iframe = $('iframe');
  3308. $.openLink(iframe.src);
  3309. },
  3310. });
  3311.  
  3312. $.register({
  3313. rule: {
  3314. host: /^hotshorturl\.com$/,
  3315. },
  3316. ready: function () {
  3317. 'use strict';
  3318. var frame = $('frame[scrolling=yes]');
  3319. $.openLink(frame.src);
  3320. },
  3321. });
  3322.  
  3323. $.register({
  3324. rule: {
  3325. host: /^(www\.)?(ilix\.in|priva\.us)$/,
  3326. path: /\/(\w+)/,
  3327. },
  3328. ready: function (m) {
  3329. 'use strict';
  3330. var realHost = 'ilix.in';
  3331. if (m.host[2] !== realHost) {
  3332. var realURL = location.href.replace(m.host[2], realHost);
  3333. $.openLink(realURL);
  3334. return;
  3335. }
  3336. var f = $.$('iframe[name=ifram]');
  3337. if (f) {
  3338. $.openLink(f.src);
  3339. return;
  3340. }
  3341. if (!$.$('img#captcha')) {
  3342. $('form[name=frm]').submit();
  3343. }
  3344. },
  3345. });
  3346.  
  3347. $.register({
  3348. rule: {
  3349. host: /^ity\.im$/,
  3350. },
  3351. ready: function () {
  3352. 'use strict';
  3353. var f = $.$('#main');
  3354. if (f) {
  3355. $.openLink(f.src);
  3356. return;
  3357. }
  3358. f = $.$$('frame').find(function (frame) {
  3359. if (frame.src.indexOf('interheader.php') < 0) {
  3360. return _.nop;
  3361. }
  3362. return frame.src;
  3363. });
  3364. if (f) {
  3365. $.openLink(f.payload);
  3366. return;
  3367. }
  3368. f = $.searchScripts(/krypted=([^&]+)/);
  3369. if (!f) {
  3370. throw new _.AdsBypasserError('site changed');
  3371. }
  3372. f = f[1];
  3373. var data = unsafeWindow.des('ksnslmtmk0v4Pdviusajqu', unsafeWindow.hexToString(f), 0, 0);
  3374. if (data) {
  3375. $.openLink('http://ity.im/1104_21_50846_' + data);
  3376. }
  3377. },
  3378. });
  3379.  
  3380. $.register({
  3381. rule: {
  3382. host: /^(www\.)?kingofshrink\.com$/,
  3383. },
  3384. ready: function () {
  3385. 'use strict';
  3386. var l = $('#textresult > a');
  3387. $.openLink(l.href);
  3388. },
  3389. });
  3390.  
  3391. $.register({
  3392. rule: 'http://www.lienscash.com/l/*',
  3393. ready: function () {
  3394. 'use strict';
  3395. var a = $('#redir_btn');
  3396. $.openLink(a.href);
  3397. },
  3398. });
  3399.  
  3400. $.register({
  3401. rule: {
  3402. host: /^(www\.)?\w+\.link-protector\.com$/,
  3403. },
  3404. ready: function (m) {
  3405. 'use strict';
  3406. var f = $('form[style="font-weight:normal;font-size:12;font-family:Verdana;"]');
  3407. $.openLink(f.action);
  3408. },
  3409. });
  3410.  
  3411. $.register({
  3412. rule: {
  3413. host: /\.link2dollar\.com$/,
  3414. path: /^\/\d+$/,
  3415. },
  3416. ready: function () {
  3417. 'use strict';
  3418. var m = $.searchScripts(/var rlink = '([^']+)';/);
  3419. if (!m) {
  3420. throw new _.AdsBypasserError('site changed');
  3421. }
  3422. m = m[1];
  3423. $.openLink(m);
  3424. },
  3425. });
  3426.  
  3427. $.register({
  3428. rule: {
  3429. host: /^link2you\.ru$/,
  3430. path: /^\/\d+\/(.+)$/,
  3431. },
  3432. start: function (m) {
  3433. 'use strict';
  3434. var url = m.path[1];
  3435. if (!url.match(/^https?:\/\//)) {
  3436. url = '//' + url;
  3437. }
  3438. $.openLink(url);
  3439. },
  3440. });
  3441.  
  3442. (function() {
  3443. 'use strict';
  3444. var hostRules = [
  3445. /^(([\w]{8}|www)\.)?(allanalpass|cash4files|drstickyfingers|fapoff|freegaysitepass|(gone|tube)viral|(pic|tna)bucks|whackyvidz)\.com$/,
  3446. /^(([\w]{8}|www)\.)?(a[mn]y|deb|dyo|sexpalace)\.gs$/,
  3447. /^(([\w]{8}|www)\.)?(filesonthe|poontown|seriousdeals|ultrafiles|urlbeat)\.net$/,
  3448. /^(([\w]{8}|www)\.)?freean\.us$/,
  3449. /^(([\w]{8}|www)\.)?galleries\.bz$/,
  3450. /^(([\w]{8}|www)\.)?hornywood\.tv$/,
  3451. /^(([\w]{8}|www)\.)?link(babes|bucks)\.com$/,
  3452. /^(([\w]{8}|www)\.)?(megaline|miniurls|qqc|rqq|tinylinks|yyv|zff)\.co$/,
  3453. /^(([\w]{8}|www)\.)?(these(blog|forum)s)\.com$/,
  3454. /^(([\w]{8}|www)\.)?youfap\.me$/,
  3455. /^warning-this-linkcode-will-cease-working-soon\.www\.linkbucksdns\.com$/,
  3456. ];
  3457. function findToken (context) {
  3458. var script = $.$$('script', context).find(function (n) {
  3459. if (n.innerHTML.indexOf('window[\'init\' + \'Lb\' + \'js\' + \'\']') < 0) {
  3460. return _.nop;
  3461. }
  3462. return n.innerHTML;
  3463. });
  3464. if (!script) {
  3465. _.warn('pattern changed');
  3466. return null;
  3467. }
  3468. script = script.payload;
  3469. var m = script.match(/AdPopUrl\s*:\s*'.+\?ref=([\w\d]+)'/);
  3470. var token = m[1];
  3471. m = script.match(/=\s*(\d+);/);
  3472. var ak = parseInt(m[1], 10);
  3473. var re = /\+\s*(\d+);/g;
  3474. var tmp = null;
  3475. while((m = re.exec(script)) !== null) {
  3476. tmp = m[1];
  3477. }
  3478. ak += parseInt(tmp, 10);
  3479. return {
  3480. t: token,
  3481. aK: ak,
  3482. };
  3483. }
  3484. function sendRequest (token) {
  3485. _.info('sending token: %o', token);
  3486. var i = setInterval(function () {
  3487. $.get('/intermission/loadTargetUrl', token, function (text) {
  3488. var data = JSON.parse(text);
  3489. _.info('response: %o', data);
  3490. if (!data.Success && data.Errors[0] === 'Invalid token') {
  3491. _.info('got invalid token');
  3492. clearInterval(i);
  3493. $.get(window.location.toString(), {}, function (text) {
  3494. var d = $.toDOM(text);
  3495. var t = findToken(d);
  3496. sendRequest(t);
  3497. });
  3498. return;
  3499. }
  3500. if (data.Success && !data.AdBlockSpotted && data.Url) {
  3501. clearInterval(i);
  3502. $.openLink(data.Url);
  3503. return;
  3504. }
  3505. });
  3506. }, 1000);
  3507. }
  3508. $.register({
  3509. rule: {
  3510. host: hostRules,
  3511. path: /^\/\w+\/url\/(.*)$/,
  3512. },
  3513. ready: function(m) {
  3514. $.removeAllTimer();
  3515. $.resetCookies();
  3516. $.removeNodes('iframe');
  3517. if (m.path[1] !== null) {
  3518. $.openLink(m.path[1] + window.location.search);
  3519. }
  3520. }
  3521. });
  3522. $.register({
  3523. rule: {
  3524. host: hostRules,
  3525. },
  3526. ready: function () {
  3527. $.removeAllTimer();
  3528. $.resetCookies();
  3529. $.removeNodes('iframe');
  3530. if (window.location.pathname.indexOf('verify') >= 0) {
  3531. $.openLink('../');
  3532. return;
  3533. }
  3534. var token = findToken(document);
  3535. sendRequest(token);
  3536. },
  3537. });
  3538. })();
  3539.  
  3540. $.register({
  3541. rule: {
  3542. host: /^linkshrink\.net$/,
  3543. path: /^\/[a-zA-Z0-9]+$/,
  3544. },
  3545. ready: function () {
  3546. 'use strict';
  3547. var a = $.searchScripts(/class="bt" href="([^"]+)"/);
  3548. if (!a) {
  3549. _.warn('pattern changed');
  3550. return;
  3551. }
  3552. $.openLink(a[1]);
  3553. },
  3554. });
  3555.  
  3556. $.register({
  3557. rule: 'http://lix.in/-*',
  3558. ready: function () {
  3559. 'use strict';
  3560. var i = $.$('#ibdc');
  3561. if (i) {
  3562. return;
  3563. }
  3564. i = $.$('form');
  3565. if (i) {
  3566. i.submit();
  3567. return;
  3568. }
  3569. i = $('iframe');
  3570. $.openLink(i.src);
  3571. },
  3572. });
  3573.  
  3574. $.register({
  3575. rule: {
  3576. host: /^lnk\.in$/,
  3577. },
  3578. ready: function () {
  3579. 'use strict';
  3580. var a = $('#divRedirectText a');
  3581. $.openLink(a.innerHTML);
  3582. },
  3583. });
  3584.  
  3585. $.register({
  3586. rule: {
  3587. host: /^(rd?)lnk\.co|reducelnk\.com$/,
  3588. path: /^\/[^.]+$/,
  3589. },
  3590. ready: function () {
  3591. 'use strict';
  3592. var f = $.$('iframe#dest');
  3593. if (f) {
  3594. $.openLink(f.src);
  3595. return;
  3596. }
  3597. $.removeNodes('iframe');
  3598. var o = $.$('#urlholder');
  3599. if (o) {
  3600. $.openLink(o.value);
  3601. return;
  3602. }
  3603. o = $.$('#skipBtn');
  3604. if (o) {
  3605. o = o.querySelector('a');
  3606. $.openLink(o.href);
  3607. return;
  3608. }
  3609. o = document.title.replace(/(LNK.co|Linkbee)\s*:\s*/, '');
  3610. $.openLink(o);
  3611. },
  3612. });
  3613.  
  3614. $.register({
  3615. rule: {
  3616. host: /^lnx\.lu|url\.fm|z\.gs$/,
  3617. },
  3618. ready: function () {
  3619. 'use strict';
  3620. var a = $('#clickbtn a');
  3621. $.openLink(a.href);
  3622. },
  3623. });
  3624.  
  3625. $.register({
  3626. rule: [
  3627. 'http://madlink.sk/',
  3628. 'http://madlink.sk/*.html',
  3629. ],
  3630. });
  3631. $.register({
  3632. rule: 'http://madlink.sk/*',
  3633. start: function (m) {
  3634. 'use strict';
  3635. $.removeNodes('iframe');
  3636. $.post('/ajax/check_redirect.php', {
  3637. link: m[1],
  3638. }, function (text) {
  3639. $.openLink(text);
  3640. });
  3641. },
  3642. });
  3643.  
  3644. $.register({
  3645. rule: {
  3646. host: /^mantap\.in$/,
  3647. },
  3648. ready: function () {
  3649. 'use strict';
  3650. var a = $('a.redirect, a[target=_blank][rel=nofollow]');
  3651. $.openLink(a.href);
  3652. },
  3653. });
  3654.  
  3655. $.register({
  3656. rule: {
  3657. host: /^moe\.god\.jp$/,
  3658. },
  3659. ready: function () {
  3660. 'use strict';
  3661. var a = $('div div center a');
  3662. $.openLink(a.href);
  3663. },
  3664. });
  3665.  
  3666. $.register({
  3667. rule: {
  3668. host: /^mt0\.org$/,
  3669. path: /^\/[^\/]+\/$/,
  3670. },
  3671. ready: function () {
  3672. 'use strict';
  3673. $.removeNodes('frame[name=bottom]');
  3674. var f = $('frame[name=top]');
  3675. var i = setInterval(function () {
  3676. var a = $.$('div a', f.contentDocument);
  3677. if (!a) {
  3678. return;
  3679. }
  3680. clearInterval(i);
  3681. $.openLink(a.href)
  3682. }, 1000);
  3683. },
  3684. });
  3685.  
  3686. $.register({
  3687. rule: 'http://my-link.pro/*',
  3688. ready: function () {
  3689. 'use strict';
  3690. var i = $('iframe[scrolling=auto]');
  3691. if (i) {
  3692. $.openLink(i.src);
  3693. }
  3694. },
  3695. });
  3696.  
  3697. $.register({
  3698. rule: {
  3699. host: /^nsfw\.in$/,
  3700. },
  3701. ready: function () {
  3702. 'use strict';
  3703. var a = $('#long_url a');
  3704. $.openLink(a.href);
  3705. },
  3706. });
  3707.  
  3708. $.register({
  3709. rule: {
  3710. host: /^nutshellurl\.com$/,
  3711. },
  3712. ready: function () {
  3713. 'use strict';
  3714. var iframe = $('iframe');
  3715. $.openLink(iframe.src);
  3716. },
  3717. });
  3718.  
  3719. $.register({
  3720. rule: {
  3721. host: /^oxyl\.me$/,
  3722. },
  3723. ready: function () {
  3724. 'use strict';
  3725. var l = $.$$('.links-container.result-form > a.result-a');
  3726. if (l.size() > 1) {
  3727. return;
  3728. }
  3729. $.openLink(l.at(0).href);
  3730. },
  3731. });
  3732.  
  3733. $.register({
  3734. rule: {
  3735. host: /^p\.pw$/,
  3736. },
  3737. ready: function () {
  3738. 'use strict';
  3739. $.removeNodes('iframe');
  3740. var m = $.searchScripts(/window\.location = "(.*)";/);
  3741. m = m[1];
  3742. $.openLink(m);
  3743. },
  3744. });
  3745.  
  3746. $.register({
  3747. rule: {
  3748. host: /^ref\.so$/,
  3749. },
  3750. ready: function () {
  3751. 'use strict';
  3752. $.removeNodes('iframe');
  3753. var a = $('#btn_open a');
  3754. $.openLink(a.href);
  3755. },
  3756. });
  3757.  
  3758. $.register({
  3759. rule: 'http://reffbux.com/refflinx/view/*',
  3760. ready: function () {
  3761. 'use strict';
  3762. $.removeNodes('iframe');
  3763. var m = $.searchScripts(/skip_this_ad_(\d+)_(\d+)/);
  3764. var id = m[1];
  3765. var share = m[2];
  3766. var location = window.location.toString();
  3767. $.post('http://reffbux.com/refflinx/register', {
  3768. id: id,
  3769. share: share,
  3770. fp: 0,
  3771. location: location,
  3772. referer: '',
  3773. }, function (text) {
  3774. var m = text.match(/'([^']+)'/);
  3775. if (!m) {
  3776. throw new _.AdsBypasserError('pattern changed');
  3777. }
  3778. $.openLink(m[1]);
  3779. });
  3780. },
  3781. });
  3782.  
  3783. $.register({
  3784. rule: 'http://richlink.com/app/webscr?cmd=_click&key=*',
  3785. ready: function () {
  3786. 'use strict';
  3787. var f = $('frameset');
  3788. f = f.onload.toString();
  3789. f = f.match(/url=([^&]+)/);
  3790. if (f) {
  3791. f = decodeURIComponent(f[1]);
  3792. } else {
  3793. f = $('frame[name=site]');
  3794. f = f.src;
  3795. }
  3796. $.openLink(f);
  3797. },
  3798. });
  3799.  
  3800. $.register({
  3801. rule: 'http://rijaliti.info/*.php',
  3802. ready: function () {
  3803. 'use strict';
  3804. var a = $('#main td[align="center"] a');
  3805. $.openLink(a.href);
  3806. },
  3807. });
  3808.  
  3809. $.register({
  3810. rule: {
  3811. host: /^riurl\.com$/,
  3812. path: /^\/.+/,
  3813. },
  3814. ready: function () {
  3815. 'use strict';
  3816. var s = $.$('body script');
  3817. if (s) {
  3818. s = s.innerHTML.indexOf('window.location.replace');
  3819. if (s >= 0) {
  3820. return;
  3821. }
  3822. }
  3823. $.openLinkByPost('', {
  3824. hidden: '1',
  3825. image: ' ',
  3826. });
  3827. },
  3828. });
  3829.  
  3830. $.register({
  3831. rule: {
  3832. host: /^preview\.rlu\.ru$/,
  3833. },
  3834. ready: function () {
  3835. 'use strict';
  3836. var a = $('#content > .long_url > a');
  3837. $.openLink(a.href);
  3838. },
  3839. });
  3840.  
  3841. $.register({
  3842. rule: {
  3843. host: /^robo\.us$/,
  3844. },
  3845. ready: function () {
  3846. 'use strict';
  3847. $.removeNodes('iframe');
  3848. var url = atob(unsafeWindow.fl);
  3849. $.openLink(url);
  3850. },
  3851. });
  3852.  
  3853. $.register({
  3854. rule: {
  3855. host: /^(www\.)?safeurl\.eu$/,
  3856. path: /\/\w+/,
  3857. },
  3858. ready: function () {
  3859. 'use strict';
  3860. var directUrl = $.searchScripts(/window\.open\("([^"]+)"\);/);
  3861. if (!directUrl) {
  3862. throw new _.AdsBypasserError('script content changed');
  3863. }
  3864. directUrl = directUrl[1];
  3865. $.openLink(directUrl);
  3866. },
  3867. });
  3868.  
  3869. $.register({
  3870. rule: {
  3871. host: /^(www\.)?(apploadz\.ru|seomafia\.net)$/
  3872. },
  3873. ready: function () {
  3874. 'use strict';
  3875. $.removeNodes('iframe');
  3876. var a = $('table a');
  3877. $.openLink(a.href);
  3878. },
  3879. });
  3880.  
  3881. $.register({
  3882. rule: /http:\/\/setlinks\.us\/(p|t|d).*/,
  3883. ready: function () {
  3884. 'use strict';
  3885. var k = $.searchScripts(/window\.location='([^']+)'/);
  3886. if (k) {
  3887. $.openLink(k[1]);
  3888. return;
  3889. }
  3890. var aLinks = $.$$('div.links-container.result-form:not(.p-links-container) > span.dlinks > a');
  3891. if (aLinks.size() === 1) {
  3892. $.openLink(aLinks.at(0).href);
  3893. return;
  3894. }
  3895. k = $('img[alt=captcha]');
  3896. $.captcha(k.src, function (a) {
  3897. var b = $('#captcha');
  3898. var c = $('input[name=Submit]');
  3899. b.value = a;
  3900. c.click();
  3901. });
  3902. },
  3903. });
  3904.  
  3905. (function () {
  3906. 'use strict';
  3907. function afterGotSessionId (sessionId) {
  3908. var X_NewRelic_ID = $.searchScripts(/xpid:"([^"]+)"/);
  3909. var Fingerprint = unsafeWindow.Fingerprint;
  3910. var browserToken = null;
  3911. if (Fingerprint) {
  3912. browserToken = (new Fingerprint($.inject({canvas: !0}))).get();
  3913. } else {
  3914. browserToken = Math.round((new Date()).getTime() / 1000);
  3915. }
  3916. var data = "sessionId=" + sessionId + "&browserToken=" + browserToken;
  3917. var header = {
  3918. Accept: 'application/json, text/javascript',
  3919. };
  3920. if (X_NewRelic_ID) {
  3921. header['X-NewRelic-ID'] = X_NewRelic_ID;
  3922. }
  3923. var i = setInterval(function () {
  3924. $.get('/adSession/callback', data, function (text) {
  3925. var r = JSON.parse(text);
  3926. if (r.status == "ok" && r.destinationUrl) {
  3927. clearInterval(i);
  3928. $.openLink(r.destinationUrl);
  3929. }
  3930. }, header);
  3931. }, 1000);
  3932. }
  3933. $.register({
  3934. rule: {
  3935. host: /^sh\.st|dh10thbvu\.com|u2ks\.com$/,
  3936. path: /^\/[\d\w]+/,
  3937. },
  3938. ready: function () {
  3939. $.removeNodes('iframe');
  3940. var m = $.searchScripts(/sessionId: "([\d\w]+)",/);
  3941. if (m) {
  3942. afterGotSessionId(m[1]);
  3943. return;
  3944. }
  3945. var o = new MutationObserver(function (mutations) {
  3946. mutations.forEach(function (mutation) {
  3947. var m = $.searchScripts(/sessionId: "([\d\w]+)",/);
  3948. if (m) {
  3949. o.disconnect();
  3950. afterGotSessionId(m[1]);
  3951. }
  3952. });
  3953. });
  3954. o.observe(document.body, {
  3955. childList: true,
  3956. });
  3957. },
  3958. });
  3959. })();
  3960.  
  3961. $.register({
  3962. rule: {
  3963. host: /^(www\.)?similarsites\.com$/,
  3964. path: /^\/goto\/([^?]+)/
  3965. },
  3966. ready: function (m) {
  3967. 'use strict';
  3968. var l = m.path[1];
  3969. if (!/^https?:\/\//.test(l)) {
  3970. l = 'http://' + l;
  3971. }
  3972. $.openLink(l);
  3973. },
  3974. });
  3975.  
  3976. $.register({
  3977. rule: {
  3978. host: /^stash-coins\.com$/,
  3979. },
  3980. start: function () {
  3981. 'use strict';
  3982. var url = window.location.toString();
  3983. var i = url.lastIndexOf('http');
  3984. url = url.substr(i);
  3985. $.openLink(url);
  3986. },
  3987. });
  3988.  
  3989. $.register({
  3990. rule: {
  3991. host: /^(www\.)?sylnk\.net$/,
  3992. query: /link=([^&]+)/
  3993. },
  3994. ready: function (m) {
  3995. 'use strict';
  3996. var rawLink = atob(m.query[1]);
  3997. $.openLink(rawLink);
  3998. },
  3999. });
  4000.  
  4001. $.register({
  4002. rule: {
  4003. host: /^thinfi\.com$/,
  4004. },
  4005. ready: function () {
  4006. 'use strict';
  4007. var a = $('div p a');
  4008. $.openLink(a.href);
  4009. },
  4010. });
  4011.  
  4012. $.register({
  4013. rule: {
  4014. host: /^tinyarrows\.com$/,
  4015. path: /^\/preview\.php$/,
  4016. query: /^\?page=([^&]+)/,
  4017. },
  4018. start: function (m) {
  4019. 'use strict';
  4020. $.openLink(decodeURIComponent(m.query[1]));
  4021. },
  4022. });
  4023.  
  4024. $.register({
  4025. rule: {
  4026. host: /^(www\.)?typ\.me$/,
  4027. },
  4028. ready: function (m) {
  4029. 'use strict';
  4030. var a = $('#skipAdBtn');
  4031. $.openLink(a.href);
  4032. },
  4033. });
  4034.  
  4035. $.register({
  4036. rule: {
  4037. host: /^(www\.)?ultshare\.com$/,
  4038. path: /^\/(?:(?:\d-)?(\d+)|index\.php)$/,
  4039. query: /^(?:\?a=\d&c=(\d+))?$/
  4040. },
  4041. ready: function (m) {
  4042. 'use strict';
  4043. var linkId = m.path[1]?m.path[1]:m.query[1];
  4044. var directLink = '/3-' + linkId;
  4045. $.openLink(directLink);
  4046. },
  4047. });
  4048.  
  4049. $.register({
  4050. rule: {
  4051. host: /^unfake\.it$/,
  4052. },
  4053. ready: function () {
  4054. 'use strict';
  4055. var frame = $('frame');
  4056. var i = frame.src.lastIndexOf('http://');
  4057. $.openLink(frame.src.substr(i));
  4058. },
  4059. });
  4060.  
  4061. $.register({
  4062. rule: {
  4063. host: /^(www\.)?(upan|gxp)\.so$/,
  4064. path: /^\/\w+$/,
  4065. },
  4066. ready: function () {
  4067. 'use strict';
  4068. var a = $('table.td_line a[onclick="down_process_s();"]');
  4069. $.openLink(a.href);
  4070. },
  4071. });
  4072.  
  4073. $.register({
  4074. rule: {
  4075. host: /^url\.ie$/,
  4076. },
  4077. ready: function () {
  4078. 'use strict';
  4079. var a = $('a[title="Link to original URL"]');
  4080. $.openLink(a.href);
  4081. },
  4082. });
  4083.  
  4084. $.register({
  4085. rule: {
  4086. host: /urlcash\.(com|net|org)|(bat5|detonating|celebclk|eightteen|smilinglinks|peekatmygirlfriend|pornyhost|clb1|urlgalleries)\.com|looble\.net|xxxs\.org$/,
  4087. },
  4088. ready: function () {
  4089. 'use strict';
  4090. if (unsafeWindow && unsafeWindow.linkDestUrl) {
  4091. $.openLink(unsafeWindow.linkDestUrl);
  4092. return;
  4093. }
  4094. var matches = document.body.innerHTML.match(/linkDestUrl = '(.+)'/);
  4095. if (matches) {
  4096. $.openLink(matches[1]);
  4097. return;
  4098. }
  4099. },
  4100. });
  4101.  
  4102. $.register({
  4103. rule: {
  4104. host: /^(www\.)?(urlcow|miniurl)\.com$/,
  4105. },
  4106. ready: function () {
  4107. 'use strict';
  4108. var m = $.searchScripts(/window\.location = "([^"]+)"/);
  4109. if (!m) {
  4110. throw new _.AdsBypasserError('site changed');
  4111. }
  4112. $.openLink(m[1]);
  4113. },
  4114. });
  4115.  
  4116. $.register({
  4117. rule: {
  4118. host: /^urlinn\.com$/,
  4119. },
  4120. ready: function () {
  4121. 'use strict';
  4122. var m = $('META[HTTP-EQUIV=refresh]').getAttribute('CONTENT').match(/url='([^']+)'/);
  4123. if (m) {
  4124. $.openLink(m[1]);
  4125. }
  4126. },
  4127. });
  4128.  
  4129. $.register({
  4130. rule: {
  4131. host: /^urlms\.com$/,
  4132. },
  4133. ready: function () {
  4134. 'use strict';
  4135. var iframe = $('#content');
  4136. $.openLink(iframe.src);
  4137. },
  4138. });
  4139.  
  4140. $.register({
  4141. rule: 'http://urlz.so/l/*',
  4142. ready: function () {
  4143. 'use strict';
  4144. var i = $.$('td > a');
  4145. if (i) {
  4146. i = i.href;
  4147. var m = i.match(/javascript:declocation\('(.+)'\);/);
  4148. if (m) {
  4149. i = atob(m[1]);
  4150. }
  4151. $.openLink(i);
  4152. return;
  4153. }
  4154. i = $('img');
  4155. $.captcha(i.src, function (a) {
  4156. var b = $('input[name=captcha]');
  4157. var c = $('input[name=submit]');
  4158. b.value = a;
  4159. c.click();
  4160. });
  4161. },
  4162. });
  4163.  
  4164. $.register({
  4165. rule: {
  4166. host: /^www\.viidii\.info$/,
  4167. },
  4168. ready: function () {
  4169. 'use strict';
  4170. var o = $('#directlink');
  4171. $.openLink(o.href);
  4172. },
  4173. });
  4174.  
  4175. $.register({
  4176. rule: {
  4177. host: /^(www\.)?vir\.al$/,
  4178. },
  4179. ready: function () {
  4180. 'use strict';
  4181. var m = $.searchScripts(/var target_url = '([^']+)';/);
  4182. if (!m) {
  4183. throw new _.AdsBypasserError('site changed');
  4184. }
  4185. $.openLink(m[1]);
  4186. },
  4187. });
  4188.  
  4189. $.register({
  4190. rule: {
  4191. host: /^(www\.)?wzzq\.me$/,
  4192. },
  4193. ready: function () {
  4194. 'use strict';
  4195. try {
  4196. var l = $('#img_loading_table2 div.wz_img_hit a[target=_blank]').href;
  4197. $.openLink(l);
  4198. } catch (e) {
  4199. }
  4200. },
  4201. });
  4202.  
  4203. $.register({
  4204. rule: {
  4205. host: /^xlink.me$/
  4206. },
  4207. ready: function () {
  4208. 'use strict';
  4209. var a = $('#main_form > center > a');
  4210. if (!a) {return;}
  4211. $.openLink(a.href);
  4212. },
  4213. });
  4214.  
  4215. $.register({
  4216. rule: 'http://yep.it/preview.php?p=*',
  4217. ready: function () {
  4218. 'use strict';
  4219. var link = $('font[color="grey"]').innerHTML;
  4220. $.openLink(link);
  4221. },
  4222. });
  4223.  
  4224. $.register({
  4225. rule: 'http://www.yooclick.com/l/*',
  4226. ready: function () {
  4227. 'use strict';
  4228. $.removeNodes('iframe');
  4229. var uniq = unsafeWindow.uniq || unsafeWindow.uniqi;
  4230. if (!uniq) {return;}
  4231. var path = window.location.pathname;
  4232. var url = _.T('{0}?ajax=true&adblock=false&old=false&framed=false&uniq={1}')(path, uniq);
  4233. var getURL = function() {
  4234. $.get(url, {
  4235. }, function (text) {
  4236. 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);
  4237. if (goodURL) {
  4238. $.openLink(text);
  4239. } else {
  4240. setTimeout(getURL, 500);
  4241. }
  4242. });
  4243. }
  4244. getURL();
  4245. },
  4246. });
  4247.  
  4248. $.register({
  4249. rule: 'http://zo.mu/redirector/process?link=*',
  4250. ready: function () {
  4251. 'use strict';
  4252. $.removeNodes('iframe');
  4253. window.location.reload();
  4254. },
  4255. });
  4256.  
  4257. $.register({
  4258. rule: {
  4259. host: /^zzz\.gl$/,
  4260. },
  4261. ready: function () {
  4262. 'use strict';
  4263. var m = $.searchScripts(/var domainurl = '([^']+)';/);
  4264. if (!m) {
  4265. throw new _.AdsBypasserError('site changed');
  4266. }
  4267. $.openLink(m[1]);
  4268. },
  4269. });
  4270.  
  4271. (function () {
  4272. 'use strict';
  4273. var sUrl = '(\\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])';
  4274. function isLink (text) {
  4275. var rUrl = new RegExp(_.T('^{0}$')(sUrl), 'i');
  4276. return rUrl.test(text);
  4277. }
  4278. function linkify (text) {
  4279. var rUrl = new RegExp(sUrl, 'ig');
  4280. return text.replace(rUrl, function(match) {
  4281. return _.T("<a href='{0}'>{0}</a>")(match);
  4282. });
  4283. }
  4284. $.register({
  4285. rule: {
  4286. host: /^(www\.)?([a-zA-Z0-9]+\.)?binbox\.io$/,
  4287. path: /\/([a-zA-Z0-9]+)/,
  4288. hash: /#([a-zA-Z0-9]+)/,
  4289. },
  4290. ready: function (m) {
  4291. var sjcl = unsafeWindow.sjcl;
  4292. var paste_id = m.path[1];
  4293. var paste_salt = m.hash[1];
  4294. var fake_user = 'binbox';
  4295. var API_URL = _.T('https://{0}.binbox.io/{1}.json')(fake_user, paste_id);
  4296. $.get(API_URL, "", function (pasteInfo) {
  4297. pasteInfo = JSON.parse(pasteInfo);
  4298. if (!pasteInfo.ok) {
  4299. throw new _.AdsBypasserError("error when getting paste information");
  4300. }
  4301. var raw_paste = sjcl.decrypt(paste_salt, pasteInfo.paste.text);
  4302. if (isLink(raw_paste)) {
  4303. $.openLink(raw_paste);
  4304. return;
  4305. }
  4306. var elm = document.createElement('pre');
  4307. elm.id = 'paste-text';
  4308. elm.innerHTML = linkify(raw_paste);
  4309. var frame = $('#paste-frame, #captcha-page');
  4310. frame.parentNode.replaceChild(elm, frame);
  4311. });
  4312. },
  4313. });
  4314. $.register({
  4315. rule: {
  4316. host: /^(www\.)?([a-zA-Z0-9]+\.)?binbox\.io$/,
  4317. path: /\/o\/([a-zA-Z0-9]+)/,
  4318. },
  4319. ready: function (m) {
  4320. var direct_link = window.atob(m.path[1]);
  4321. $.openLink(direct_link);
  4322. },
  4323. });
  4324. })();
  4325.  
  4326. $._main();

QingJ © 2025

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