Sleazy Fork is available in English.

FapFun</span></td>

FAP</span></td>

Fra og med 24.12.2014. Se den nyeste version.

  1.  
  2.  
  3.  
  4. <!DOCTYPE html>
  5. <html lang="en" class="">
  6. <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object# article: http://ogp.me/ns/article# profile: http://ogp.me/ns/profile#">
  7. <meta charset='utf-8'>
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  9. <meta http-equiv="Content-Language" content="en">
  10. <title>FapFun/FapFun.user.js at master · sodomgomora/FapFun · GitHub</title>
  11. <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub">
  12. <link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub">
  13. <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-114.png">
  14. <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114.png">
  15. <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-144.png">
  16. <link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144.png">
  17. <meta property="fb:app_id" content="1401488693436528">
  18.  
  19. <meta content="@github" name="twitter:site" /><meta content="summary" name="twitter:card" /><meta content="sodomgomora/FapFun" name="twitter:title" /><meta content="FapFun - GreaseMonkey Script for Motherless.com" name="twitter:description" /><meta content="https://avatars1.githubusercontent.com/u/10291275?v=3&amp;s=400" name="twitter:image:src" />
  20. <meta content="GitHub" property="og:site_name" /><meta content="object" property="og:type" /><meta content="https://avatars1.githubusercontent.com/u/10291275?v=3&amp;s=400" property="og:image" /><meta content="sodomgomora/FapFun" property="og:title" /><meta content="https://github.com/sodomgomora/FapFun" property="og:url" /><meta content="FapFun - GreaseMonkey Script for Motherless.com" property="og:description" />
  21.  
  22. <meta name="browser-stats-url" content="/_stats">
  23. <link rel="assets" href="https://assets-cdn.github.com/">
  24. <link rel="conduit-xhr" href="https://ghconduit.com:25035">
  25. <meta name="pjax-timeout" content="1000">
  26.  
  27. <meta name="msapplication-TileImage" content="/windows-tile.png">
  28. <meta name="msapplication-TileColor" content="#ffffff">
  29. <meta name="selected-link" value="repo_source" data-pjax-transient>
  30. <meta name="google-analytics" content="UA-3769691-2">
  31.  
  32. <meta content="collector.githubapp.com" name="octolytics-host" /><meta content="collector-cdn.github.com" name="octolytics-script-host" /><meta content="github" name="octolytics-app-id" /><meta content="4A56C041:3911:68CD0D8:549B10FA" name="octolytics-dimension-request_id" />
  33. <meta content="Rails, view, blob#show" name="analytics-event" />
  34.  
  35. <link rel="icon" type="image/x-icon" href="https://assets-cdn.github.com/favicon.ico">
  36.  
  37.  
  38. <meta content="authenticity_token" name="csrf-param" />
  39. <meta content="CvVZUXit0ZM8K+HzsqKzoXB6EZ83KEmWch0ajVb66H2yrqYLRD/MCDNYk+FwIIfjlLdeRK7p4wlvXwZhrc417g==" name="csrf-token" />
  40.  
  41. <link href="https://assets-cdn.github.com/assets/github-9bcf5def7eb44e2a101b20aaecf3707f4b0a10ab8f4d6eebec29371f821c4b29.css" media="all" rel="stylesheet" type="text/css" />
  42. <link href="https://assets-cdn.github.com/assets/github2-988ddda9ae733ab44f308db199cb53eb70c7d0197679297459104380a8d923b3.css" media="all" rel="stylesheet" type="text/css" />
  43.  
  44.  
  45. <meta http-equiv="x-pjax-version" content="8adfdb5fdc7bd044b4c0142729d0410c">
  46.  
  47. <meta name="description" content="FapFun - GreaseMonkey Script for Motherless.com">
  48. <meta name="go-import" content="github.com/sodomgomora/FapFun git https://github.com/sodomgomora/FapFun.git">
  49.  
  50. <meta content="10291275" name="octolytics-dimension-user_id" /><meta content="sodomgomora" name="octolytics-dimension-user_login" /><meta content="28457883" name="octolytics-dimension-repository_id" /><meta content="sodomgomora/FapFun" name="octolytics-dimension-repository_nwo" /><meta content="true" name="octolytics-dimension-repository_public" /><meta content="false" name="octolytics-dimension-repository_is_fork" /><meta content="28457883" name="octolytics-dimension-repository_network_root_id" /><meta content="sodomgomora/FapFun" name="octolytics-dimension-repository_network_root_nwo" />
  51. <link href="https://github.com/sodomgomora/FapFun/commits/master.atom" rel="alternate" title="Recent Commits to FapFun:master" type="application/atom+xml">
  52.  
  53. </head>
  54.  
  55.  
  56. <body class="logged_out env-production vis-public page-blob">
  57. <a href="#start-of-content" tabindex="1" class="accessibility-aid js-skip-to-content">Skip to content</a>
  58. <div class="wrapper">
  59.  
  60.  
  61. <div class="header header-logged-out" role="banner">
  62. <div class="container clearfix">
  63.  
  64. <a class="header-logo-wordmark" href="https://github.com/" ga-data-click="(Logged out) Header, go to homepage, icon:logo-wordmark">
  65. <span class="mega-octicon octicon-logo-github"></span>
  66. </a>
  67.  
  68. <div class="header-actions" role="navigation">
  69. <a class="button primary" href="/join" data-ga-click="(Logged out) Header, clicked Sign up, text:sign-up">Sign up</a>
  70. <a class="button" href="/login?return_to=%2Fsodomgomora%2FFapFun%2Fblob%2Fmaster%2FFapFun.user.js" data-ga-click="(Logged out) Header, clicked Sign in, text:sign-in">Sign in</a>
  71. </div>
  72.  
  73. <div class="site-search repo-scope js-site-search" role="search">
  74. <form accept-charset="UTF-8" action="/sodomgomora/FapFun/search" class="js-site-search-form" data-global-search-url="/search" data-repo-search-url="/sodomgomora/FapFun/search" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
  75. <input type="text"
  76. class="js-site-search-field is-clearable"
  77. data-hotkey="s"
  78. name="q"
  79. placeholder="Search"
  80. data-global-scope-placeholder="Search GitHub"
  81. data-repo-scope-placeholder="Search"
  82. tabindex="1"
  83. autocapitalize="off">
  84. <div class="scope-badge">This repository</div>
  85. </form>
  86. </div>
  87.  
  88. <ul class="header-nav left" role="navigation">
  89. <li class="header-nav-item">
  90. <a class="header-nav-link" href="/explore" data-ga-click="(Logged out) Header, go to explore, text:explore">Explore</a>
  91. </li>
  92. <li class="header-nav-item">
  93. <a class="header-nav-link" href="/features" data-ga-click="(Logged out) Header, go to features, text:features">Features</a>
  94. </li>
  95. <li class="header-nav-item">
  96. <a class="header-nav-link" href="https://enterprise.github.com/" data-ga-click="(Logged out) Header, go to enterprise, text:enterprise">Enterprise</a>
  97. </li>
  98. <li class="header-nav-item">
  99. <a class="header-nav-link" href="/blog" data-ga-click="(Logged out) Header, go to blog, text:blog">Blog</a>
  100. </li>
  101. </ul>
  102.  
  103. </div>
  104. </div>
  105.  
  106.  
  107.  
  108. <div id="start-of-content" class="accessibility-aid"></div>
  109. <div class="site" itemscope itemtype="http://schema.org/WebPage">
  110. <div id="js-flash-container">
  111. </div>
  112. <div class="pagehead repohead instapaper_ignore readability-menu">
  113. <div class="container">
  114. <ul class="pagehead-actions">
  115.  
  116.  
  117. <li>
  118. <a href="/login?return_to=%2Fsodomgomora%2FFapFun"
  119. class="minibutton with-count star-button tooltipped tooltipped-n"
  120. aria-label="You must be signed in to star a repository" rel="nofollow">
  121. <span class="octicon octicon-star"></span>
  122. Star
  123. </a>
  124.  
  125. <a class="social-count js-social-count" href="/sodomgomora/FapFun/stargazers">
  126. 0
  127. </a>
  128.  
  129. </li>
  130.  
  131. <li>
  132. <a href="/login?return_to=%2Fsodomgomora%2FFapFun"
  133. class="minibutton with-count js-toggler-target fork-button tooltipped tooltipped-n"
  134. aria-label="You must be signed in to fork a repository" rel="nofollow">
  135. <span class="octicon octicon-repo-forked"></span>
  136. Fork
  137. </a>
  138. <a href="/sodomgomora/FapFun/network" class="social-count">
  139. 0
  140. </a>
  141. </li>
  142. </ul>
  143.  
  144. <h1 itemscope itemtype="http://data-vocabulary.org/Breadcrumb" class="entry-title public">
  145. <span class="mega-octicon octicon-repo"></span>
  146. <span class="author"><a href="/sodomgomora" class="url fn" itemprop="url" rel="author"><span itemprop="title">sodomgomora</span></a></span><!--
  147. --><span class="path-divider">/</span><!--
  148. --><strong><a href="/sodomgomora/FapFun" class="js-current-repository" data-pjax="#js-repo-pjax-container">FapFun</a></strong>
  149.  
  150. <span class="page-context-loader">
  151. <img alt="" height="16" src="https://assets-cdn.github.com/images/spinners/octocat-spinner-32.gif" width="16" />
  152. </span>
  153.  
  154. </h1>
  155. </div><!-- /.container -->
  156. </div><!-- /.repohead -->
  157.  
  158. <div class="container">
  159. <div class="repository-with-sidebar repo-container new-discussion-timeline ">
  160. <div class="repository-sidebar clearfix">
  161. <nav class="sunken-menu repo-nav js-repo-nav js-sidenav-container-pjax js-octicon-loaders"
  162. role="navigation"
  163. data-pjax="#js-repo-pjax-container"
  164. data-issue-count-url="/sodomgomora/FapFun/issues/counts">
  165. <ul class="sunken-menu-group">
  166. <li class="tooltipped tooltipped-w" aria-label="Code">
  167. <a href="/sodomgomora/FapFun" aria-label="Code" class="selected js-selected-navigation-item sunken-menu-item" data-hotkey="g c" data-selected-links="repo_source repo_downloads repo_commits repo_releases repo_tags repo_branches /sodomgomora/FapFun">
  168. <span class="octicon octicon-code"></span> <span class="full-word">Code</span>
  169. <img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/images/spinners/octocat-spinner-32.gif" width="16" />
  170. </a> </li>
  171.  
  172. <li class="tooltipped tooltipped-w" aria-label="Issues">
  173. <a href="/sodomgomora/FapFun/issues" aria-label="Issues" class="js-selected-navigation-item sunken-menu-item" data-hotkey="g i" data-selected-links="repo_issues repo_labels repo_milestones /sodomgomora/FapFun/issues">
  174. <span class="octicon octicon-issue-opened"></span> <span class="full-word">Issues</span>
  175. <span class="js-issue-replace-counter"></span>
  176. <img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/images/spinners/octocat-spinner-32.gif" width="16" />
  177. </a> </li>
  178.  
  179. <li class="tooltipped tooltipped-w" aria-label="Pull Requests">
  180. <a href="/sodomgomora/FapFun/pulls" aria-label="Pull Requests" class="js-selected-navigation-item sunken-menu-item" data-hotkey="g p" data-selected-links="repo_pulls /sodomgomora/FapFun/pulls">
  181. <span class="octicon octicon-git-pull-request"></span> <span class="full-word">Pull Requests</span>
  182. <span class="js-pull-replace-counter"></span>
  183. <img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/images/spinners/octocat-spinner-32.gif" width="16" />
  184. </a> </li>
  185.  
  186.  
  187. </ul>
  188. <div class="sunken-menu-separator"></div>
  189. <ul class="sunken-menu-group">
  190.  
  191. <li class="tooltipped tooltipped-w" aria-label="Pulse">
  192. <a href="/sodomgomora/FapFun/pulse" aria-label="Pulse" class="js-selected-navigation-item sunken-menu-item" data-selected-links="pulse /sodomgomora/FapFun/pulse">
  193. <span class="octicon octicon-pulse"></span> <span class="full-word">Pulse</span>
  194. <img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/images/spinners/octocat-spinner-32.gif" width="16" />
  195. </a> </li>
  196.  
  197. <li class="tooltipped tooltipped-w" aria-label="Graphs">
  198. <a href="/sodomgomora/FapFun/graphs" aria-label="Graphs" class="js-selected-navigation-item sunken-menu-item" data-selected-links="repo_graphs repo_contributors /sodomgomora/FapFun/graphs">
  199. <span class="octicon octicon-graph"></span> <span class="full-word">Graphs</span>
  200. <img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/images/spinners/octocat-spinner-32.gif" width="16" />
  201. </a> </li>
  202. </ul>
  203.  
  204.  
  205. </nav>
  206.  
  207. <div class="only-with-full-nav">
  208. <div class="clone-url open"
  209. data-protocol-type="http"
  210. data-url="/users/set_protocol?protocol_selector=http&amp;protocol_type=clone">
  211. <h3><span class="text-emphasized">HTTPS</span> clone URL</h3>
  212. <div class="input-group js-zeroclipboard-container">
  213. <input type="text" class="input-mini input-monospace js-url-field js-zeroclipboard-target"
  214. value="https://github.com/sodomgomora/FapFun.git" readonly="readonly">
  215. <span class="input-group-button">
  216. <button aria-label="Copy to clipboard" class="js-zeroclipboard minibutton zeroclipboard-button" data-copied-hint="Copied!" type="button"><span class="octicon octicon-clippy"></span></button>
  217. </span>
  218. </div>
  219. </div>
  220.  
  221. <div class="clone-url "
  222. data-protocol-type="subversion"
  223. data-url="/users/set_protocol?protocol_selector=subversion&amp;protocol_type=clone">
  224. <h3><span class="text-emphasized">Subversion</span> checkout URL</h3>
  225. <div class="input-group js-zeroclipboard-container">
  226. <input type="text" class="input-mini input-monospace js-url-field js-zeroclipboard-target"
  227. value="https://github.com/sodomgomora/FapFun" readonly="readonly">
  228. <span class="input-group-button">
  229. <button aria-label="Copy to clipboard" class="js-zeroclipboard minibutton zeroclipboard-button" data-copied-hint="Copied!" type="button"><span class="octicon octicon-clippy"></span></button>
  230. </span>
  231. </div>
  232. </div>
  233.  
  234.  
  235.  
  236. <p class="clone-options">You can clone with
  237. <a href="#" class="js-clone-selector" data-protocol="http">HTTPS</a> or <a href="#" class="js-clone-selector" data-protocol="subversion">Subversion</a>.
  238. <a href="https://help.github.com/articles/which-remote-url-should-i-use" class="help tooltipped tooltipped-n" aria-label="Get help on which URL is right for you.">
  239. <span class="octicon octicon-question"></span>
  240. </a>
  241. </p>
  242.  
  243.  
  244.  
  245. <a href="/sodomgomora/FapFun/archive/master.zip"
  246. class="minibutton sidebar-button"
  247. aria-label="Download the contents of sodomgomora/FapFun as a zip file"
  248. title="Download the contents of sodomgomora/FapFun as a zip file"
  249. rel="nofollow">
  250. <span class="octicon octicon-cloud-download"></span>
  251. Download ZIP
  252. </a>
  253. </div>
  254. </div><!-- /.repository-sidebar -->
  255.  
  256. <div id="js-repo-pjax-container" class="repository-content context-loader-container" data-pjax-container>
  257.  
  258. <a href="/sodomgomora/FapFun/blob/0a92b6cdc075e8a6cf43ee38dc9003c126e747b0/FapFun.user.js" class="hidden js-permalink-shortcut" data-hotkey="y">Permalink</a>
  259.  
  260. <!-- blob contrib key: blob_contributors:v21:b62c0e9523fc426ef5d2e42d73b2b44e -->
  261.  
  262. <div class="file-navigation js-zeroclipboard-container">
  263. <div class="select-menu js-menu-container js-select-menu left">
  264. <span class="minibutton select-menu-button js-menu-target css-truncate" data-hotkey="w"
  265. data-master-branch="master"
  266. data-ref="master"
  267. title="master"
  268. role="button" aria-label="Switch branches or tags" tabindex="0" aria-haspopup="true">
  269. <span class="octicon octicon-git-branch"></span>
  270. <i>branch:</i>
  271. <span class="js-select-button css-truncate-target">master</span>
  272. </span>
  273.  
  274. <div class="select-menu-modal-holder js-menu-content js-navigation-container" data-pjax aria-hidden="true">
  275.  
  276. <div class="select-menu-modal">
  277. <div class="select-menu-header">
  278. <span class="select-menu-title">Switch branches/tags</span>
  279. <span class="octicon octicon-x js-menu-close" role="button" aria-label="Close"></span>
  280. </div> <!-- /.select-menu-header -->
  281.  
  282. <div class="select-menu-filters">
  283. <div class="select-menu-text-filter">
  284. <input type="text" aria-label="Filter branches/tags" id="context-commitish-filter-field" class="js-filterable-field js-navigation-enable" placeholder="Filter branches/tags">
  285. </div>
  286. <div class="select-menu-tabs">
  287. <ul>
  288. <li class="select-menu-tab">
  289. <a href="#" data-tab-filter="branches" class="js-select-menu-tab">Branches</a>
  290. </li>
  291. <li class="select-menu-tab">
  292. <a href="#" data-tab-filter="tags" class="js-select-menu-tab">Tags</a>
  293. </li>
  294. </ul>
  295. </div><!-- /.select-menu-tabs -->
  296. </div><!-- /.select-menu-filters -->
  297.  
  298. <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="branches">
  299.  
  300. <div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">
  301.  
  302.  
  303. <div class="select-menu-item js-navigation-item selected">
  304. <span class="select-menu-item-icon octicon octicon-check"></span>
  305. <a href="/sodomgomora/FapFun/blob/master/FapFun.user.js"
  306. data-name="master"
  307. data-skip-pjax="true"
  308. rel="nofollow"
  309. class="js-navigation-open select-menu-item-text css-truncate-target"
  310. title="master">master</a>
  311. </div> <!-- /.select-menu-item -->
  312. </div>
  313.  
  314. <div class="select-menu-no-results">Nothing to show</div>
  315. </div> <!-- /.select-menu-list -->
  316.  
  317. <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="tags">
  318. <div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">
  319.  
  320.  
  321. </div>
  322.  
  323. <div class="select-menu-no-results">Nothing to show</div>
  324. </div> <!-- /.select-menu-list -->
  325.  
  326. </div> <!-- /.select-menu-modal -->
  327. </div> <!-- /.select-menu-modal-holder -->
  328. </div> <!-- /.select-menu -->
  329.  
  330. <div class="button-group right">
  331. <a href="/sodomgomora/FapFun/find/master"
  332. class="js-show-file-finder minibutton empty-icon tooltipped tooltipped-s"
  333. data-pjax
  334. data-hotkey="t"
  335. aria-label="Quickly jump between files">
  336. <span class="octicon octicon-list-unordered"></span>
  337. </a>
  338. <button aria-label="Copy file path to clipboard" class="js-zeroclipboard minibutton zeroclipboard-button" data-copied-hint="Copied!" type="button"><span class="octicon octicon-clippy"></span></button>
  339. </div>
  340.  
  341. <div class="breadcrumb js-zeroclipboard-target">
  342. <span class='repo-root js-repo-root'><span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/sodomgomora/FapFun" class="" data-branch="master" data-direction="back" data-pjax="true" itemscope="url"><span itemprop="title">FapFun</span></a></span></span><span class="separator">/</span><strong class="final-path">FapFun.user.js</strong>
  343. </div>
  344. </div>
  345.  
  346. <include-fragment class="commit commit-loader file-history-tease" src="/sodomgomora/FapFun/contributors/master/FapFun.user.js">
  347. <div class="file-history-tease-header">
  348. Fetching contributors&hellip;
  349. </div>
  350.  
  351. <div class="participation">
  352. <p class="loader-loading"><img alt="" height="16" src="https://assets-cdn.github.com/images/spinners/octocat-spinner-32-EAF2F5.gif" width="16" /></p>
  353. <p class="loader-error">Cannot retrieve contributors at this time</p>
  354. </div>
  355. </include-fragment>
  356. <div class="file-box">
  357. <div class="file">
  358. <div class="meta clearfix">
  359. <div class="info file-name">
  360. <span>260 lines (218 sloc)</span>
  361. <span class="meta-divider"></span>
  362. <span>6.762 kb</span>
  363. </div>
  364. <div class="actions">
  365. <div class="button-group">
  366. <a href="/sodomgomora/FapFun/raw/master/FapFun.user.js" class="minibutton " id="raw-url">Raw</a>
  367. <a href="/sodomgomora/FapFun/blame/master/FapFun.user.js" class="minibutton js-update-url-with-hash">Blame</a>
  368. <a href="/sodomgomora/FapFun/commits/master/FapFun.user.js" class="minibutton " rel="nofollow">History</a>
  369. </div><!-- /.button-group -->
  370.  
  371.  
  372. <a class="octicon-button disabled tooltipped tooltipped-w" href="#"
  373. aria-label="You must be signed in to make or propose changes"><span class="octicon octicon-pencil"></span></a>
  374.  
  375. <a class="octicon-button danger disabled tooltipped tooltipped-w" href="#"
  376. aria-label="You must be signed in to make or propose changes">
  377. <span class="octicon octicon-trashcan"></span>
  378. </a>
  379. </div><!-- /.actions -->
  380. </div>
  381.  
  382. <div class="blob-wrapper data type-javascript">
  383. <table class="highlight tab-size-8 js-file-line-container">
  384. <tr>
  385. <td id="L1" class="blob-num js-line-number" data-line-number="1"></td>
  386. <td id="LC1" class="blob-code js-file-line"><span class="pl-c">// ==UserScript==</span></td>
  387. </tr>
  388. <tr>
  389. <td id="L2" class="blob-num js-line-number" data-line-number="2"></td>
  390. <td id="LC2" class="blob-code js-file-line"><span class="pl-c">// @name FapFun</span></td>
  391. </tr>
  392. <tr>
  393. <td id="L3" class="blob-num js-line-number" data-line-number="3"></td>
  394. <td id="LC3" class="blob-code js-file-line"><span class="pl-c">// @namespace https://greasyfork.org</span></td>
  395. </tr>
  396. <tr>
  397. <td id="L4" class="blob-num js-line-number" data-line-number="4"></td>
  398. <td id="LC4" class="blob-code js-file-line"><span class="pl-c">// @description FAP</span></td>
  399. </tr>
  400. <tr>
  401. <td id="L5" class="blob-num js-line-number" data-line-number="5"></td>
  402. <td id="LC5" class="blob-code js-file-line"><span class="pl-c">// @require https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js</span></td>
  403. </tr>
  404. <tr>
  405. <td id="L6" class="blob-num js-line-number" data-line-number="6"></td>
  406. <td id="LC6" class="blob-code js-file-line"><span class="pl-c">// @include htt*://motherless.com*</span></td>
  407. </tr>
  408. <tr>
  409. <td id="L7" class="blob-num js-line-number" data-line-number="7"></td>
  410. <td id="LC7" class="blob-code js-file-line"><span class="pl-c">// @version 1</span></td>
  411. </tr>
  412. <tr>
  413. <td id="L8" class="blob-num js-line-number" data-line-number="8"></td>
  414. <td id="LC8" class="blob-code js-file-line"><span class="pl-c">// @grant GM_xmlhttpRequest</span></td>
  415. </tr>
  416. <tr>
  417. <td id="L9" class="blob-num js-line-number" data-line-number="9"></td>
  418. <td id="LC9" class="blob-code js-file-line"><span class="pl-c">// @grand UnsafeWindow</span></td>
  419. </tr>
  420. <tr>
  421. <td id="L10" class="blob-num js-line-number" data-line-number="10"></td>
  422. <td id="LC10" class="blob-code js-file-line"><span class="pl-c">// ==/UserScript==<</span></td>
  423. </tr>
  424. <tr>
  425. <td id="L11" class="blob-num js-line-number" data-line-number="11"></td>
  426. <td id="LC11" class="blob-code js-file-line">
  427. </td>
  428. </tr>
  429. <tr>
  430. <td id="L12" class="blob-num js-line-number" data-line-number="12"></td>
  431. <td id="LC12" class="blob-code js-file-line"><span class="pl-c">// Some of this script based on Pornifier2 script by Jesscold </span></td>
  432. </tr>
  433. <tr>
  434. <td id="L13" class="blob-num js-line-number" data-line-number="13"></td>
  435. <td id="LC13" class="blob-code js-file-line"><span class="pl-c">// This script is realesed under GPL v3</span></td>
  436. </tr>
  437. <tr>
  438. <td id="L14" class="blob-num js-line-number" data-line-number="14"></td>
  439. <td id="LC14" class="blob-code js-file-line">
  440. </td>
  441. </tr>
  442. <tr>
  443. <td id="L15" class="blob-num js-line-number" data-line-number="15"></td>
  444. <td id="LC15" class="blob-code js-file-line"><span class="pl-c">// Globals</span></td>
  445. </tr>
  446. <tr>
  447. <td id="L16" class="blob-num js-line-number" data-line-number="16"></td>
  448. <td id="LC16" class="blob-code js-file-line"><span class="pl-s">var</span> debug <span class="pl-k">=</span> <span class="pl-c1">false</span>;</td>
  449. </tr>
  450. <tr>
  451. <td id="L17" class="blob-num js-line-number" data-line-number="17"></td>
  452. <td id="LC17" class="blob-code js-file-line">
  453. </td>
  454. </tr>
  455. <tr>
  456. <td id="L18" class="blob-num js-line-number" data-line-number="18"></td>
  457. <td id="LC18" class="blob-code js-file-line">
  458. </td>
  459. </tr>
  460. <tr>
  461. <td id="L19" class="blob-num js-line-number" data-line-number="19"></td>
  462. <td id="LC19" class="blob-code js-file-line">
  463. </td>
  464. </tr>
  465. <tr>
  466. <td id="L20" class="blob-num js-line-number" data-line-number="20"></td>
  467. <td id="LC20" class="blob-code js-file-line"><span class="pl-c">// Start the magic</span></td>
  468. </tr>
  469. <tr>
  470. <td id="L21" class="blob-num js-line-number" data-line-number="21"></td>
  471. <td id="LC21" class="blob-code js-file-line">main();</td>
  472. </tr>
  473. <tr>
  474. <td id="L22" class="blob-num js-line-number" data-line-number="22"></td>
  475. <td id="LC22" class="blob-code js-file-line">
  476. </td>
  477. </tr>
  478. <tr>
  479. <td id="L23" class="blob-num js-line-number" data-line-number="23"></td>
  480. <td id="LC23" class="blob-code js-file-line"><span class="pl-st">function</span> <span class="pl-en">fapLog</span>(<span class="pl-vpf">log</span>){</td>
  481. </tr>
  482. <tr>
  483. <td id="L24" class="blob-num js-line-number" data-line-number="24"></td>
  484. <td id="LC24" class="blob-code js-file-line"> <span class="pl-k">if</span>(debug <span class="pl-k">==</span> <span class="pl-c1">true</span>){</td>
  485. </tr>
  486. <tr>
  487. <td id="L25" class="blob-num js-line-number" data-line-number="25"></td>
  488. <td id="LC25" class="blob-code js-file-line"> <span class="pl-en">console</span><span class="pl-s3">.log</span>(log);</td>
  489. </tr>
  490. <tr>
  491. <td id="L26" class="blob-num js-line-number" data-line-number="26"></td>
  492. <td id="LC26" class="blob-code js-file-line"> }</td>
  493. </tr>
  494. <tr>
  495. <td id="L27" class="blob-num js-line-number" data-line-number="27"></td>
  496. <td id="LC27" class="blob-code js-file-line">}</td>
  497. </tr>
  498. <tr>
  499. <td id="L28" class="blob-num js-line-number" data-line-number="28"></td>
  500. <td id="LC28" class="blob-code js-file-line"><span class="pl-st">function</span> <span class="pl-en">main</span>(){</td>
  501. </tr>
  502. <tr>
  503. <td id="L29" class="blob-num js-line-number" data-line-number="29"></td>
  504. <td id="LC29" class="blob-code js-file-line">
  505. </td>
  506. </tr>
  507. <tr>
  508. <td id="L30" class="blob-num js-line-number" data-line-number="30"></td>
  509. <td id="LC30" class="blob-code js-file-line"> fapLog(<span class="pl-s1"><span class="pl-pds">&quot;</span>entered main<span class="pl-pds">&quot;</span></span>);</td>
  510. </tr>
  511. <tr>
  512. <td id="L31" class="blob-num js-line-number" data-line-number="31"></td>
  513. <td id="LC31" class="blob-code js-file-line"> </td>
  514. </tr>
  515. <tr>
  516. <td id="L32" class="blob-num js-line-number" data-line-number="32"></td>
  517. <td id="LC32" class="blob-code js-file-line"> <span class="pl-c">// try to become Premium</span></td>
  518. </tr>
  519. <tr>
  520. <td id="L33" class="blob-num js-line-number" data-line-number="33"></td>
  521. <td id="LC33" class="blob-code js-file-line"> <span class="pl-s3">setTimeout</span>(<span class="pl-st">function</span>(){</td>
  522. </tr>
  523. <tr>
  524. <td id="L34" class="blob-num js-line-number" data-line-number="34"></td>
  525. <td id="LC34" class="blob-code js-file-line"> unsafeWindow.__is_premium <span class="pl-k">=</span> <span class="pl-c1">true</span>; <span class="pl-c">//really motherless?</span></td>
  526. </tr>
  527. <tr>
  528. <td id="L35" class="blob-num js-line-number" data-line-number="35"></td>
  529. <td id="LC35" class="blob-code js-file-line"> }, <span class="pl-c1">500</span>);</td>
  530. </tr>
  531. <tr>
  532. <td id="L36" class="blob-num js-line-number" data-line-number="36"></td>
  533. <td id="LC36" class="blob-code js-file-line"> </td>
  534. </tr>
  535. <tr>
  536. <td id="L37" class="blob-num js-line-number" data-line-number="37"></td>
  537. <td id="LC37" class="blob-code js-file-line"> <span class="pl-c">// create Buttons</span></td>
  538. </tr>
  539. <tr>
  540. <td id="L38" class="blob-num js-line-number" data-line-number="38"></td>
  541. <td id="LC38" class="blob-code js-file-line"> <span class="pl-s">var</span> inputList<span class="pl-k">=</span><span class="pl-s3">document</span>.<span class="pl-s3">createElement</span>(<span class="pl-s1"><span class="pl-pds">&quot;</span>input<span class="pl-pds">&quot;</span></span>);</td>
  542. </tr>
  543. <tr>
  544. <td id="L39" class="blob-num js-line-number" data-line-number="39"></td>
  545. <td id="LC39" class="blob-code js-file-line"> inputList.<span class="pl-sc">type</span><span class="pl-k">=</span><span class="pl-s1"><span class="pl-pds">&quot;</span>button<span class="pl-pds">&quot;</span></span>;</td>
  546. </tr>
  547. <tr>
  548. <td id="L40" class="blob-num js-line-number" data-line-number="40"></td>
  549. <td id="LC40" class="blob-code js-file-line"> inputList.<span class="pl-sc">value</span><span class="pl-k">=</span><span class="pl-s1"><span class="pl-pds">&quot;</span>Image list<span class="pl-pds">&quot;</span></span>;</td>
  550. </tr>
  551. <tr>
  552. <td id="L41" class="blob-num js-line-number" data-line-number="41"></td>
  553. <td id="LC41" class="blob-code js-file-line"> inputList.onclick <span class="pl-k">=</span> getImageList;</td>
  554. </tr>
  555. <tr>
  556. <td id="L42" class="blob-num js-line-number" data-line-number="42"></td>
  557. <td id="LC42" class="blob-code js-file-line"> inputList.<span class="pl-s3">setAttribute</span>(<span class="pl-s1"><span class="pl-pds">&quot;</span>style<span class="pl-pds">&quot;</span></span>,<span class="pl-s1"><span class="pl-pds">&quot;</span>font-size:18px;position:fixed;top:100px;right:40px;z-index:10000;<span class="pl-pds">&quot;</span></span>);</td>
  558. </tr>
  559. <tr>
  560. <td id="L43" class="blob-num js-line-number" data-line-number="43"></td>
  561. <td id="LC43" class="blob-code js-file-line"> <span class="pl-s3">document</span>.<span class="pl-sc">body</span>.<span class="pl-s3">appendChild</span>(inputList);</td>
  562. </tr>
  563. <tr>
  564. <td id="L44" class="blob-num js-line-number" data-line-number="44"></td>
  565. <td id="LC44" class="blob-code js-file-line"> </td>
  566. </tr>
  567. <tr>
  568. <td id="L45" class="blob-num js-line-number" data-line-number="45"></td>
  569. <td id="LC45" class="blob-code js-file-line"> <span class="pl-s">var</span> inputVideo<span class="pl-k">=</span><span class="pl-s3">document</span>.<span class="pl-s3">createElement</span>(<span class="pl-s1"><span class="pl-pds">&quot;</span>input<span class="pl-pds">&quot;</span></span>); </td>
  570. </tr>
  571. <tr>
  572. <td id="L46" class="blob-num js-line-number" data-line-number="46"></td>
  573. <td id="LC46" class="blob-code js-file-line"> inputVideo.<span class="pl-sc">type</span><span class="pl-k">=</span><span class="pl-s1"><span class="pl-pds">&quot;</span>button<span class="pl-pds">&quot;</span></span>;</td>
  574. </tr>
  575. <tr>
  576. <td id="L47" class="blob-num js-line-number" data-line-number="47"></td>
  577. <td id="LC47" class="blob-code js-file-line"> inputVideo.<span class="pl-sc">value</span><span class="pl-k">=</span><span class="pl-s1"><span class="pl-pds">&quot;</span>Video url<span class="pl-pds">&quot;</span></span>;</td>
  578. </tr>
  579. <tr>
  580. <td id="L48" class="blob-num js-line-number" data-line-number="48"></td>
  581. <td id="LC48" class="blob-code js-file-line"> inputVideo.onclick <span class="pl-k">=</span> getVideoUrl;</td>
  582. </tr>
  583. <tr>
  584. <td id="L49" class="blob-num js-line-number" data-line-number="49"></td>
  585. <td id="LC49" class="blob-code js-file-line"> inputVideo.<span class="pl-s3">setAttribute</span>(<span class="pl-s1"><span class="pl-pds">&quot;</span>style<span class="pl-pds">&quot;</span></span>,<span class="pl-s1"><span class="pl-pds">&quot;</span>font-size:18px;position:fixed;top:140px;right:40px;z-index:10000;<span class="pl-pds">&quot;</span></span>);</td>
  586. </tr>
  587. <tr>
  588. <td id="L50" class="blob-num js-line-number" data-line-number="50"></td>
  589. <td id="LC50" class="blob-code js-file-line"> <span class="pl-s3">document</span>.<span class="pl-sc">body</span>.<span class="pl-s3">appendChild</span>(inputVideo);</td>
  590. </tr>
  591. <tr>
  592. <td id="L51" class="blob-num js-line-number" data-line-number="51"></td>
  593. <td id="LC51" class="blob-code js-file-line"> </td>
  594. </tr>
  595. <tr>
  596. <td id="L52" class="blob-num js-line-number" data-line-number="52"></td>
  597. <td id="LC52" class="blob-code js-file-line"> <span class="pl-s">var</span> sp <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-en">singlePreview</span>();</td>
  598. </tr>
  599. <tr>
  600. <td id="L53" class="blob-num js-line-number" data-line-number="53"></td>
  601. <td id="LC53" class="blob-code js-file-line"> sp.addSinglePreview();</td>
  602. </tr>
  603. <tr>
  604. <td id="L54" class="blob-num js-line-number" data-line-number="54"></td>
  605. <td id="LC54" class="blob-code js-file-line"> </td>
  606. </tr>
  607. <tr>
  608. <td id="L55" class="blob-num js-line-number" data-line-number="55"></td>
  609. <td id="LC55" class="blob-code js-file-line">
  610. </td>
  611. </tr>
  612. <tr>
  613. <td id="L56" class="blob-num js-line-number" data-line-number="56"></td>
  614. <td id="LC56" class="blob-code js-file-line"> fapLog(<span class="pl-s1"><span class="pl-pds">&quot;</span>Premium: <span class="pl-pds">&quot;</span></span> <span class="pl-k">+</span> unsafeWindow.__is_premium.<span class="pl-s3">toSource</span>());</td>
  615. </tr>
  616. <tr>
  617. <td id="L57" class="blob-num js-line-number" data-line-number="57"></td>
  618. <td id="LC57" class="blob-code js-file-line">}</td>
  619. </tr>
  620. <tr>
  621. <td id="L58" class="blob-num js-line-number" data-line-number="58"></td>
  622. <td id="LC58" class="blob-code js-file-line"> </td>
  623. </tr>
  624. <tr>
  625. <td id="L59" class="blob-num js-line-number" data-line-number="59"></td>
  626. <td id="LC59" class="blob-code js-file-line"><span class="pl-st">function</span> <span class="pl-en">getImageList</span>()</td>
  627. </tr>
  628. <tr>
  629. <td id="L60" class="blob-num js-line-number" data-line-number="60"></td>
  630. <td id="LC60" class="blob-code js-file-line">{</td>
  631. </tr>
  632. <tr>
  633. <td id="L61" class="blob-num js-line-number" data-line-number="61"></td>
  634. <td id="LC61" class="blob-code js-file-line"> <span class="pl-s3">alert</span>(<span class="pl-s1"><span class="pl-pds">&quot;</span>Hello World<span class="pl-pds">&quot;</span></span>);</td>
  635. </tr>
  636. <tr>
  637. <td id="L62" class="blob-num js-line-number" data-line-number="62"></td>
  638. <td id="LC62" class="blob-code js-file-line">}</td>
  639. </tr>
  640. <tr>
  641. <td id="L63" class="blob-num js-line-number" data-line-number="63"></td>
  642. <td id="LC63" class="blob-code js-file-line">
  643. </td>
  644. </tr>
  645. <tr>
  646. <td id="L64" class="blob-num js-line-number" data-line-number="64"></td>
  647. <td id="LC64" class="blob-code js-file-line"><span class="pl-st">function</span> <span class="pl-en">getVideoUrl</span>(){</td>
  648. </tr>
  649. <tr>
  650. <td id="L65" class="blob-num js-line-number" data-line-number="65"></td>
  651. <td id="LC65" class="blob-code js-file-line"> <span class="pl-s3">alert</span>(<span class="pl-s1"><span class="pl-pds">&quot;</span>warum nicht<span class="pl-pds">&quot;</span></span>);</td>
  652. </tr>
  653. <tr>
  654. <td id="L66" class="blob-num js-line-number" data-line-number="66"></td>
  655. <td id="LC66" class="blob-code js-file-line">}</td>
  656. </tr>
  657. <tr>
  658. <td id="L67" class="blob-num js-line-number" data-line-number="67"></td>
  659. <td id="LC67" class="blob-code js-file-line">
  660. </td>
  661. </tr>
  662. <tr>
  663. <td id="L68" class="blob-num js-line-number" data-line-number="68"></td>
  664. <td id="LC68" class="blob-code js-file-line"><span class="pl-c">//-- handler for Overlay (jquery)</span></td>
  665. </tr>
  666. <tr>
  667. <td id="L69" class="blob-num js-line-number" data-line-number="69"></td>
  668. <td id="LC69" class="blob-code js-file-line">$(<span class="pl-st">function</span> () {</td>
  669. </tr>
  670. <tr>
  671. <td id="L70" class="blob-num js-line-number" data-line-number="70"></td>
  672. <td id="LC70" class="blob-code js-file-line"> $(<span class="pl-s1"><span class="pl-pds">&quot;</span>body<span class="pl-pds">&quot;</span></span>).<span class="pl-s3">click</span>(<span class="pl-st">function</span> () {</td>
  673. </tr>
  674. <tr>
  675. <td id="L71" class="blob-num js-line-number" data-line-number="71"></td>
  676. <td id="LC71" class="blob-code js-file-line"> <span class="pl-k">if</span> ($(<span class="pl-s1"><span class="pl-pds">&quot;</span>#overlay<span class="pl-pds">&quot;</span></span>).<span class="pl-sc">length</span> <span class="pl-k">&gt;</span> <span class="pl-c1">0</span>) {</td>
  677. </tr>
  678. <tr>
  679. <td id="L72" class="blob-num js-line-number" data-line-number="72"></td>
  680. <td id="LC72" class="blob-code js-file-line"> removeOverlay();</td>
  681. </tr>
  682. <tr>
  683. <td id="L73" class="blob-num js-line-number" data-line-number="73"></td>
  684. <td id="LC73" class="blob-code js-file-line"> }</td>
  685. </tr>
  686. <tr>
  687. <td id="L74" class="blob-num js-line-number" data-line-number="74"></td>
  688. <td id="LC74" class="blob-code js-file-line"> });</td>
  689. </tr>
  690. <tr>
  691. <td id="L75" class="blob-num js-line-number" data-line-number="75"></td>
  692. <td id="LC75" class="blob-code js-file-line">});</td>
  693. </tr>
  694. <tr>
  695. <td id="L76" class="blob-num js-line-number" data-line-number="76"></td>
  696. <td id="LC76" class="blob-code js-file-line">
  697. </td>
  698. </tr>
  699. <tr>
  700. <td id="L77" class="blob-num js-line-number" data-line-number="77"></td>
  701. <td id="LC77" class="blob-code js-file-line"><span class="pl-st">function</span> <span class="pl-en">removeOverlay</span>() {</td>
  702. </tr>
  703. <tr>
  704. <td id="L78" class="blob-num js-line-number" data-line-number="78"></td>
  705. <td id="LC78" class="blob-code js-file-line"> $(<span class="pl-s1"><span class="pl-pds">&quot;</span>#overlay<span class="pl-pds">&quot;</span></span>).<span class="pl-s3">remove</span>();</td>
  706. </tr>
  707. <tr>
  708. <td id="L79" class="blob-num js-line-number" data-line-number="79"></td>
  709. <td id="LC79" class="blob-code js-file-line">}</td>
  710. </tr>
  711. <tr>
  712. <td id="L80" class="blob-num js-line-number" data-line-number="80"></td>
  713. <td id="LC80" class="blob-code js-file-line">
  714. </td>
  715. </tr>
  716. <tr>
  717. <td id="L81" class="blob-num js-line-number" data-line-number="81"></td>
  718. <td id="LC81" class="blob-code js-file-line"><span class="pl-c">// Get url for full image and add url under thumbnail</span></td>
  719. </tr>
  720. <tr>
  721. <td id="L82" class="blob-num js-line-number" data-line-number="82"></td>
  722. <td id="LC82" class="blob-code js-file-line"><span class="pl-st">function</span> <span class="pl-en">singlePreview</span>(){</td>
  723. </tr>
  724. <tr>
  725. <td id="L83" class="blob-num js-line-number" data-line-number="83"></td>
  726. <td id="LC83" class="blob-code js-file-line"> </td>
  727. </tr>
  728. <tr>
  729. <td id="L84" class="blob-num js-line-number" data-line-number="84"></td>
  730. <td id="LC84" class="blob-code js-file-line"> <span class="pl-s3">this</span>.<span class="pl-en">addSinglePreview</span> <span class="pl-k">=</span> <span class="pl-st">function</span>(){</td>
  731. </tr>
  732. <tr>
  733. <td id="L85" class="blob-num js-line-number" data-line-number="85"></td>
  734. <td id="LC85" class="blob-code js-file-line"> <span class="pl-s">var</span> data <span class="pl-k">=</span> [];</td>
  735. </tr>
  736. <tr>
  737. <td id="L86" class="blob-num js-line-number" data-line-number="86"></td>
  738. <td id="LC86" class="blob-code js-file-line"> <span class="pl-s">var</span> imgs <span class="pl-k">=</span> $(<span class="pl-s1"><span class="pl-pds">&#39;</span>img[src^=&quot;http://thumbs.motherlessmedia.com/thumbs/&quot;]<span class="pl-pds">&#39;</span></span>);</td>
  739. </tr>
  740. <tr>
  741. <td id="L87" class="blob-num js-line-number" data-line-number="87"></td>
  742. <td id="LC87" class="blob-code js-file-line"> </td>
  743. </tr>
  744. <tr>
  745. <td id="L88" class="blob-num js-line-number" data-line-number="88"></td>
  746. <td id="LC88" class="blob-code js-file-line"> fapLog(<span class="pl-s1"><span class="pl-pds">&quot;</span>image urls found: <span class="pl-pds">&quot;</span></span> <span class="pl-k">+</span> imgs.<span class="pl-sc">length</span>);</td>
  747. </tr>
  748. <tr>
  749. <td id="L89" class="blob-num js-line-number" data-line-number="89"></td>
  750. <td id="LC89" class="blob-code js-file-line"> </td>
  751. </tr>
  752. <tr>
  753. <td id="L90" class="blob-num js-line-number" data-line-number="90"></td>
  754. <td id="LC90" class="blob-code js-file-line"> imgs.each(<span class="pl-st">function</span>(){</td>
  755. </tr>
  756. <tr>
  757. <td id="L91" class="blob-num js-line-number" data-line-number="91"></td>
  758. <td id="LC91" class="blob-code js-file-line"> <span class="pl-s">var</span> $wrap <span class="pl-k">=</span> $(<span class="pl-v">this</span>);</td>
  759. </tr>
  760. <tr>
  761. <td id="L92" class="blob-num js-line-number" data-line-number="92"></td>
  762. <td id="LC92" class="blob-code js-file-line"> <span class="pl-k">if</span>($wrap.<span class="pl-sc">data</span>(<span class="pl-s1"><span class="pl-pds">&#39;</span>p2-preview<span class="pl-pds">&#39;</span></span>)){</td>
  763. </tr>
  764. <tr>
  765. <td id="L93" class="blob-num js-line-number" data-line-number="93"></td>
  766. <td id="LC93" class="blob-code js-file-line"> <span class="pl-k">return</span>;</td>
  767. </tr>
  768. <tr>
  769. <td id="L94" class="blob-num js-line-number" data-line-number="94"></td>
  770. <td id="LC94" class="blob-code js-file-line"> }</td>
  771. </tr>
  772. <tr>
  773. <td id="L95" class="blob-num js-line-number" data-line-number="95"></td>
  774. <td id="LC95" class="blob-code js-file-line"> $wrap.<span class="pl-sc">data</span>(<span class="pl-s1"><span class="pl-pds">&#39;</span>p2-preview<span class="pl-pds">&#39;</span></span>, <span class="pl-s1"><span class="pl-pds">&#39;</span>yep<span class="pl-pds">&#39;</span></span>);</td>
  775. </tr>
  776. <tr>
  777. <td id="L96" class="blob-num js-line-number" data-line-number="96"></td>
  778. <td id="LC96" class="blob-code js-file-line"> <span class="pl-s">var</span> $a <span class="pl-k">=</span> $wrap.closest(<span class="pl-s1"><span class="pl-pds">&quot;</span>a<span class="pl-pds">&quot;</span></span>);</td>
  779. </tr>
  780. <tr>
  781. <td id="L97" class="blob-num js-line-number" data-line-number="97"></td>
  782. <td id="LC97" class="blob-code js-file-line"> <span class="pl-s">var</span> vid <span class="pl-k">=</span> $wrap.attr(<span class="pl-s1"><span class="pl-pds">&quot;</span>src<span class="pl-pds">&quot;</span></span>).<span class="pl-s3">match</span>(<span class="pl-s1"><span class="pl-pds">&quot;</span>thumbs/([^.]+).<span class="pl-cce">\\</span>w<span class="pl-pds">&quot;</span></span>);</td>
  783. </tr>
  784. <tr>
  785. <td id="L98" class="blob-num js-line-number" data-line-number="98"></td>
  786. <td id="LC98" class="blob-code js-file-line"> <span class="pl-c">// test for video preview and not an image</span></td>
  787. </tr>
  788. <tr>
  789. <td id="L99" class="blob-num js-line-number" data-line-number="99"></td>
  790. <td id="LC99" class="blob-code js-file-line"> <span class="pl-s">var</span> vlink <span class="pl-k">=</span> vid[<span class="pl-c1">1</span>];</td>
  791. </tr>
  792. <tr>
  793. <td id="L100" class="blob-num js-line-number" data-line-number="100"></td>
  794. <td id="LC100" class="blob-code js-file-line"> <span class="pl-s">var</span> n <span class="pl-k">=</span> vlink.<span class="pl-s3">indexOf</span>(<span class="pl-s1"><span class="pl-pds">&quot;</span>-<span class="pl-pds">&quot;</span></span>);</td>
  795. </tr>
  796. <tr>
  797. <td id="L101" class="blob-num js-line-number" data-line-number="101"></td>
  798. <td id="LC101" class="blob-code js-file-line"> vlink <span class="pl-k">=</span> vlink.<span class="pl-s3">substring</span>(n,vlink.<span class="pl-sc">length</span>);</td>
  799. </tr>
  800. <tr>
  801. <td id="L102" class="blob-num js-line-number" data-line-number="102"></td>
  802. <td id="LC102" class="blob-code js-file-line"> </td>
  803. </tr>
  804. <tr>
  805. <td id="L103" class="blob-num js-line-number" data-line-number="103"></td>
  806. <td id="LC103" class="blob-code js-file-line"> fapLog(<span class="pl-s1"><span class="pl-pds">&quot;</span>vlink: <span class="pl-pds">&quot;</span></span> <span class="pl-k">+</span> vlink);</td>
  807. </tr>
  808. <tr>
  809. <td id="L104" class="blob-num js-line-number" data-line-number="104"></td>
  810. <td id="LC104" class="blob-code js-file-line">
  811. </td>
  812. </tr>
  813. <tr>
  814. <td id="L105" class="blob-num js-line-number" data-line-number="105"></td>
  815. <td id="LC105" class="blob-code js-file-line"> <span class="pl-k">if</span>(vlink <span class="pl-k">==</span> <span class="pl-s1"><span class="pl-pds">&quot;</span>-small<span class="pl-pds">&quot;</span></span>){</td>
  816. </tr>
  817. <tr>
  818. <td id="L106" class="blob-num js-line-number" data-line-number="106"></td>
  819. <td id="LC106" class="blob-code js-file-line"> <span class="pl-s">var</span> videoClicky <span class="pl-k">=</span> $(<span class="pl-s1"><span class="pl-pds">&quot;</span>&lt;a href=&#39;javascript;&#39; class=&#39;p2-single-preview&#39;&gt;Show Video&lt;/a&gt;<span class="pl-pds">&quot;</span></span>);</td>
  820. </tr>
  821. <tr>
  822. <td id="L107" class="blob-num js-line-number" data-line-number="107"></td>
  823. <td id="LC107" class="blob-code js-file-line"> $a.after(videoClicky);</td>
  824. </tr>
  825. <tr>
  826. <td id="L108" class="blob-num js-line-number" data-line-number="108"></td>
  827. <td id="LC108" class="blob-code js-file-line"> <span class="pl-s">var</span> href <span class="pl-k">=</span> $a.attr(<span class="pl-s1"><span class="pl-pds">&#39;</span>href<span class="pl-pds">&#39;</span></span>).<span class="pl-s3">match</span>(<span class="pl-sr"><span class="pl-pds">/</span><span class="pl-cce">\.</span>com<span class="pl-cce">\/</span>(<span class="pl-c1">\w</span>)(<span class="pl-c1">\w</span><span class="pl-k">+</span>)<span class="pl-pds">/</span></span>) <span class="pl-k">?</span> [<span class="pl-s3">RegExp</span>.$<span class="pl-c1">1</span>, <span class="pl-s3">RegExp</span>.$<span class="pl-c1">2</span>] <span class="pl-k">:</span> <span class="pl-c1">false</span>;</td>
  828. </tr>
  829. <tr>
  830. <td id="L109" class="blob-num js-line-number" data-line-number="109"></td>
  831. <td id="LC109" class="blob-code js-file-line"> videoClicky.<span class="pl-s3">click</span>(<span class="pl-st">function</span>(<span class="pl-vpf">e</span>, <span class="pl-vpf">single</span>){</td>
  832. </tr>
  833. <tr>
  834. <td id="L110" class="blob-num js-line-number" data-line-number="110"></td>
  835. <td id="LC110" class="blob-code js-file-line"> <span class="pl-s">var</span> $<span class="pl-v">this</span> <span class="pl-k">=</span> $currentSingle <span class="pl-k">=</span> $(<span class="pl-v">this</span>);</td>
  836. </tr>
  837. <tr>
  838. <td id="L111" class="blob-num js-line-number" data-line-number="111"></td>
  839. <td id="LC111" class="blob-code js-file-line"> $<span class="pl-v">this</span>.<span class="pl-sc">text</span>(<span class="pl-s1"><span class="pl-pds">&quot;</span>loading...<span class="pl-pds">&quot;</span></span>);</td>
  840. </tr>
  841. <tr>
  842. <td id="L112" class="blob-num js-line-number" data-line-number="112"></td>
  843. <td id="LC112" class="blob-code js-file-line"> <span class="pl-s">var</span> id <span class="pl-k">=</span> $wrap.attr(<span class="pl-s1"><span class="pl-pds">&quot;</span>data-strip-src<span class="pl-pds">&quot;</span></span>).<span class="pl-s3">match</span>(<span class="pl-s1"><span class="pl-pds">&quot;</span>thumbs/([^.]+).<span class="pl-cce">\\</span>w<span class="pl-pds">&quot;</span></span>);</td>
  844. </tr>
  845. <tr>
  846. <td id="L113" class="blob-num js-line-number" data-line-number="113"></td>
  847. <td id="LC113" class="blob-code js-file-line"> <span class="pl-s">var</span> vl <span class="pl-k">=</span> id[<span class="pl-c1">1</span>];</td>
  848. </tr>
  849. <tr>
  850. <td id="L114" class="blob-num js-line-number" data-line-number="114"></td>
  851. <td id="LC114" class="blob-code js-file-line"> <span class="pl-s">var</span> n <span class="pl-k">=</span> vl.<span class="pl-s3">indexOf</span>(<span class="pl-s1"><span class="pl-pds">&quot;</span>-<span class="pl-pds">&quot;</span></span>);</td>
  852. </tr>
  853. <tr>
  854. <td id="L115" class="blob-num js-line-number" data-line-number="115"></td>
  855. <td id="LC115" class="blob-code js-file-line"> id[<span class="pl-c1">1</span>] <span class="pl-k">=</span> vl.<span class="pl-s3">substring</span>(<span class="pl-c1">0</span>,n);</td>
  856. </tr>
  857. <tr>
  858. <td id="L116" class="blob-num js-line-number" data-line-number="116"></td>
  859. <td id="LC116" class="blob-code js-file-line"> </td>
  860. </tr>
  861. <tr>
  862. <td id="L117" class="blob-num js-line-number" data-line-number="117"></td>
  863. <td id="LC117" class="blob-code js-file-line"> fapLog(<span class="pl-s1"><span class="pl-pds">&quot;</span>found url for video: <span class="pl-pds">&quot;</span></span> <span class="pl-k">+</span> id[<span class="pl-c1">1</span>]);</td>
  864. </tr>
  865. <tr>
  866. <td id="L118" class="blob-num js-line-number" data-line-number="118"></td>
  867. <td id="LC118" class="blob-code js-file-line"> </td>
  868. </tr>
  869. <tr>
  870. <td id="L119" class="blob-num js-line-number" data-line-number="119"></td>
  871. <td id="LC119" class="blob-code js-file-line"> <span class="pl-k">if</span>(<span class="pl-k">!</span>id){</td>
  872. </tr>
  873. <tr>
  874. <td id="L120" class="blob-num js-line-number" data-line-number="120"></td>
  875. <td id="LC120" class="blob-code js-file-line"> $<span class="pl-v">this</span>.<span class="pl-sc">text</span>(<span class="pl-s1"><span class="pl-pds">&quot;</span>cant load :P<span class="pl-pds">&quot;</span></span>);</td>
  876. </tr>
  877. <tr>
  878. <td id="L121" class="blob-num js-line-number" data-line-number="121"></td>
  879. <td id="LC121" class="blob-code js-file-line"> <span class="pl-k">return</span>;</td>
  880. </tr>
  881. <tr>
  882. <td id="L122" class="blob-num js-line-number" data-line-number="122"></td>
  883. <td id="LC122" class="blob-code js-file-line"> }</td>
  884. </tr>
  885. <tr>
  886. <td id="L123" class="blob-num js-line-number" data-line-number="123"></td>
  887. <td id="LC123" class="blob-code js-file-line"> <span class="pl-s">var</span> timer <span class="pl-k">=</span> <span class="pl-s3">setTimeout</span>(<span class="pl-st">function</span>(){</td>
  888. </tr>
  889. <tr>
  890. <td id="L124" class="blob-num js-line-number" data-line-number="124"></td>
  891. <td id="LC124" class="blob-code js-file-line"> $<span class="pl-v">this</span>.<span class="pl-sc">text</span>(<span class="pl-s1"><span class="pl-pds">&quot;</span>cant load :P<span class="pl-pds">&quot;</span></span>);</td>
  892. </tr>
  893. <tr>
  894. <td id="L125" class="blob-num js-line-number" data-line-number="125"></td>
  895. <td id="LC125" class="blob-code js-file-line"> }, <span class="pl-c1">8000</span>);</td>
  896. </tr>
  897. <tr>
  898. <td id="L126" class="blob-num js-line-number" data-line-number="126"></td>
  899. <td id="LC126" class="blob-code js-file-line"> findVideoSrc(id[<span class="pl-c1">1</span>], <span class="pl-st">function</span>(<span class="pl-vpf">src</span>){</td>
  900. </tr>
  901. <tr>
  902. <td id="L127" class="blob-num js-line-number" data-line-number="127"></td>
  903. <td id="LC127" class="blob-code js-file-line"> $<span class="pl-v">this</span>.<span class="pl-sc">text</span>(<span class="pl-s1"><span class="pl-pds">&quot;</span>Show Video<span class="pl-pds">&quot;</span></span>);</td>
  904. </tr>
  905. <tr>
  906. <td id="L128" class="blob-num js-line-number" data-line-number="128"></td>
  907. <td id="LC128" class="blob-code js-file-line"> <span class="pl-s3">clearTimeout</span>(timer);</td>
  908. </tr>
  909. <tr>
  910. <td id="L129" class="blob-num js-line-number" data-line-number="129"></td>
  911. <td id="LC129" class="blob-code js-file-line"> <span class="pl-k">if</span>(single){</td>
  912. </tr>
  913. <tr>
  914. <td id="L130" class="blob-num js-line-number" data-line-number="130"></td>
  915. <td id="LC130" class="blob-code js-file-line"> data <span class="pl-k">=</span> [src];</td>
  916. </tr>
  917. <tr>
  918. <td id="L131" class="blob-num js-line-number" data-line-number="131"></td>
  919. <td id="LC131" class="blob-code js-file-line"> } <span class="pl-k">else</span> {</td>
  920. </tr>
  921. <tr>
  922. <td id="L132" class="blob-num js-line-number" data-line-number="132"></td>
  923. <td id="LC132" class="blob-code js-file-line"> data.<span class="pl-s3">unshift</span>(src);</td>
  924. </tr>
  925. <tr>
  926. <td id="L133" class="blob-num js-line-number" data-line-number="133"></td>
  927. <td id="LC133" class="blob-code js-file-line"> }</td>
  928. </tr>
  929. <tr>
  930. <td id="L134" class="blob-num js-line-number" data-line-number="134"></td>
  931. <td id="LC134" class="blob-code js-file-line"> fapLog(<span class="pl-s1"><span class="pl-pds">&quot;</span>video src: <span class="pl-pds">&quot;</span></span> <span class="pl-k">+</span> src.<span class="pl-s3">toSource</span>());</td>
  932. </tr>
  933. <tr>
  934. <td id="L135" class="blob-num js-line-number" data-line-number="135"></td>
  935. <td id="LC135" class="blob-code js-file-line"> </td>
  936. </tr>
  937. <tr>
  938. <td id="L136" class="blob-num js-line-number" data-line-number="136"></td>
  939. <td id="LC136" class="blob-code js-file-line"> displayOverlay(data, <span class="pl-s1"><span class="pl-pds">&quot;</span>video<span class="pl-pds">&quot;</span></span>);</td>
  940. </tr>
  941. <tr>
  942. <td id="L137" class="blob-num js-line-number" data-line-number="137"></td>
  943. <td id="LC137" class="blob-code js-file-line"> });</td>
  944. </tr>
  945. <tr>
  946. <td id="L138" class="blob-num js-line-number" data-line-number="138"></td>
  947. <td id="LC138" class="blob-code js-file-line"> <span class="pl-k">return</span> <span class="pl-c1">false</span>;</td>
  948. </tr>
  949. <tr>
  950. <td id="L139" class="blob-num js-line-number" data-line-number="139"></td>
  951. <td id="LC139" class="blob-code js-file-line"> });</td>
  952. </tr>
  953. <tr>
  954. <td id="L140" class="blob-num js-line-number" data-line-number="140"></td>
  955. <td id="LC140" class="blob-code js-file-line"> }</td>
  956. </tr>
  957. <tr>
  958. <td id="L141" class="blob-num js-line-number" data-line-number="141"></td>
  959. <td id="LC141" class="blob-code js-file-line"> <span class="pl-k">else</span>{</td>
  960. </tr>
  961. <tr>
  962. <td id="L142" class="blob-num js-line-number" data-line-number="142"></td>
  963. <td id="LC142" class="blob-code js-file-line"> <span class="pl-s">var</span> imageClicky <span class="pl-k">=</span> $(<span class="pl-s1"><span class="pl-pds">&quot;</span>&lt;a href=&#39;javascript;&#39; class=&#39;p2-single-preview&#39;&gt;view full size&lt;/a&gt;<span class="pl-pds">&quot;</span></span>);</td>
  964. </tr>
  965. <tr>
  966. <td id="L143" class="blob-num js-line-number" data-line-number="143"></td>
  967. <td id="LC143" class="blob-code js-file-line"> $a.after(imageClicky);</td>
  968. </tr>
  969. <tr>
  970. <td id="L144" class="blob-num js-line-number" data-line-number="144"></td>
  971. <td id="LC144" class="blob-code js-file-line"> <span class="pl-s">var</span> href <span class="pl-k">=</span> $a.attr(<span class="pl-s1"><span class="pl-pds">&#39;</span>href<span class="pl-pds">&#39;</span></span>).<span class="pl-s3">match</span>(<span class="pl-sr"><span class="pl-pds">/</span><span class="pl-cce">\.</span>com<span class="pl-cce">\/</span>(<span class="pl-c1">\w</span>)(<span class="pl-c1">\w</span><span class="pl-k">+</span>)<span class="pl-pds">/</span></span>) <span class="pl-k">?</span> [<span class="pl-s3">RegExp</span>.$<span class="pl-c1">1</span>, <span class="pl-s3">RegExp</span>.$<span class="pl-c1">2</span>] <span class="pl-k">:</span> <span class="pl-c1">false</span>;</td>
  972. </tr>
  973. <tr>
  974. <td id="L145" class="blob-num js-line-number" data-line-number="145"></td>
  975. <td id="LC145" class="blob-code js-file-line"> imageClicky.<span class="pl-s3">click</span>(<span class="pl-st">function</span>(<span class="pl-vpf">e</span>, <span class="pl-vpf">single</span>){</td>
  976. </tr>
  977. <tr>
  978. <td id="L146" class="blob-num js-line-number" data-line-number="146"></td>
  979. <td id="LC146" class="blob-code js-file-line"> <span class="pl-s">var</span> $<span class="pl-v">this</span> <span class="pl-k">=</span> $currentSingle <span class="pl-k">=</span> $(<span class="pl-v">this</span>);</td>
  980. </tr>
  981. <tr>
  982. <td id="L147" class="blob-num js-line-number" data-line-number="147"></td>
  983. <td id="LC147" class="blob-code js-file-line"> $<span class="pl-v">this</span>.<span class="pl-sc">text</span>(<span class="pl-s1"><span class="pl-pds">&quot;</span>loading...<span class="pl-pds">&quot;</span></span>);</td>
  984. </tr>
  985. <tr>
  986. <td id="L148" class="blob-num js-line-number" data-line-number="148"></td>
  987. <td id="LC148" class="blob-code js-file-line"> <span class="pl-s">var</span> id <span class="pl-k">=</span> $wrap.attr(<span class="pl-s1"><span class="pl-pds">&quot;</span>data-strip-src<span class="pl-pds">&quot;</span></span>).<span class="pl-s3">match</span>(<span class="pl-s1"><span class="pl-pds">&quot;</span>thumbs/([^.]+).<span class="pl-cce">\\</span>w<span class="pl-pds">&quot;</span></span>);</td>
  988. </tr>
  989. <tr>
  990. <td id="L149" class="blob-num js-line-number" data-line-number="149"></td>
  991. <td id="LC149" class="blob-code js-file-line"> </td>
  992. </tr>
  993. <tr>
  994. <td id="L150" class="blob-num js-line-number" data-line-number="150"></td>
  995. <td id="LC150" class="blob-code js-file-line"> fapLog<span class="pl-s1"><span class="pl-pds">&quot;</span>found url for image: <span class="pl-pds">&quot;</span></span> <span class="pl-k">+</span> id[<span class="pl-c1">1</span>]);</td>
  996. </tr>
  997. <tr>
  998. <td id="L151" class="blob-num js-line-number" data-line-number="151"></td>
  999. <td id="LC151" class="blob-code js-file-line"> </td>
  1000. </tr>
  1001. <tr>
  1002. <td id="L152" class="blob-num js-line-number" data-line-number="152"></td>
  1003. <td id="LC152" class="blob-code js-file-line"> </td>
  1004. </tr>
  1005. <tr>
  1006. <td id="L153" class="blob-num js-line-number" data-line-number="153"></td>
  1007. <td id="LC153" class="blob-code js-file-line"> <span class="pl-k">if</span>(<span class="pl-k">!</span>id){</td>
  1008. </tr>
  1009. <tr>
  1010. <td id="L154" class="blob-num js-line-number" data-line-number="154"></td>
  1011. <td id="LC154" class="blob-code js-file-line"> $<span class="pl-v">this</span>.<span class="pl-sc">text</span>(<span class="pl-s1"><span class="pl-pds">&quot;</span>cant load :P<span class="pl-pds">&quot;</span></span>);</td>
  1012. </tr>
  1013. <tr>
  1014. <td id="L155" class="blob-num js-line-number" data-line-number="155"></td>
  1015. <td id="LC155" class="blob-code js-file-line"> <span class="pl-k">return</span>;</td>
  1016. </tr>
  1017. <tr>
  1018. <td id="L156" class="blob-num js-line-number" data-line-number="156"></td>
  1019. <td id="LC156" class="blob-code js-file-line"> }</td>
  1020. </tr>
  1021. <tr>
  1022. <td id="L157" class="blob-num js-line-number" data-line-number="157"></td>
  1023. <td id="LC157" class="blob-code js-file-line"> <span class="pl-s">var</span> timer <span class="pl-k">=</span> <span class="pl-s3">setTimeout</span>(<span class="pl-st">function</span>(){</td>
  1024. </tr>
  1025. <tr>
  1026. <td id="L158" class="blob-num js-line-number" data-line-number="158"></td>
  1027. <td id="LC158" class="blob-code js-file-line"> $<span class="pl-v">this</span>.<span class="pl-sc">text</span>(<span class="pl-s1"><span class="pl-pds">&quot;</span>cant load :P<span class="pl-pds">&quot;</span></span>);</td>
  1028. </tr>
  1029. <tr>
  1030. <td id="L159" class="blob-num js-line-number" data-line-number="159"></td>
  1031. <td id="LC159" class="blob-code js-file-line"> }, <span class="pl-c1">8000</span>);</td>
  1032. </tr>
  1033. <tr>
  1034. <td id="L160" class="blob-num js-line-number" data-line-number="160"></td>
  1035. <td id="LC160" class="blob-code js-file-line"> findImgSrc(id[<span class="pl-c1">1</span>], <span class="pl-st">function</span>(<span class="pl-vpf">src</span>){</td>
  1036. </tr>
  1037. <tr>
  1038. <td id="L161" class="blob-num js-line-number" data-line-number="161"></td>
  1039. <td id="LC161" class="blob-code js-file-line"> $<span class="pl-v">this</span>.<span class="pl-sc">text</span>(<span class="pl-s1"><span class="pl-pds">&quot;</span>view full size<span class="pl-pds">&quot;</span></span>);</td>
  1040. </tr>
  1041. <tr>
  1042. <td id="L162" class="blob-num js-line-number" data-line-number="162"></td>
  1043. <td id="LC162" class="blob-code js-file-line"> <span class="pl-s3">clearTimeout</span>(timer);</td>
  1044. </tr>
  1045. <tr>
  1046. <td id="L163" class="blob-num js-line-number" data-line-number="163"></td>
  1047. <td id="LC163" class="blob-code js-file-line"> <span class="pl-k">if</span>(single){</td>
  1048. </tr>
  1049. <tr>
  1050. <td id="L164" class="blob-num js-line-number" data-line-number="164"></td>
  1051. <td id="LC164" class="blob-code js-file-line"> data <span class="pl-k">=</span> [src];</td>
  1052. </tr>
  1053. <tr>
  1054. <td id="L165" class="blob-num js-line-number" data-line-number="165"></td>
  1055. <td id="LC165" class="blob-code js-file-line"> } <span class="pl-k">else</span> {</td>
  1056. </tr>
  1057. <tr>
  1058. <td id="L166" class="blob-num js-line-number" data-line-number="166"></td>
  1059. <td id="LC166" class="blob-code js-file-line"> data.<span class="pl-s3">unshift</span>(src);</td>
  1060. </tr>
  1061. <tr>
  1062. <td id="L167" class="blob-num js-line-number" data-line-number="167"></td>
  1063. <td id="LC167" class="blob-code js-file-line"> }</td>
  1064. </tr>
  1065. <tr>
  1066. <td id="L168" class="blob-num js-line-number" data-line-number="168"></td>
  1067. <td id="LC168" class="blob-code js-file-line"> fapLog<span class="pl-s1"><span class="pl-pds">&quot;</span>image src: <span class="pl-pds">&quot;</span></span> <span class="pl-k">+</span> src.<span class="pl-s3">toSource</span>());</td>
  1068. </tr>
  1069. <tr>
  1070. <td id="L169" class="blob-num js-line-number" data-line-number="169"></td>
  1071. <td id="LC169" class="blob-code js-file-line"> </td>
  1072. </tr>
  1073. <tr>
  1074. <td id="L170" class="blob-num js-line-number" data-line-number="170"></td>
  1075. <td id="LC170" class="blob-code js-file-line"> displayOverlay(data, <span class="pl-s1"><span class="pl-pds">&quot;</span>image<span class="pl-pds">&quot;</span></span>);</td>
  1076. </tr>
  1077. <tr>
  1078. <td id="L171" class="blob-num js-line-number" data-line-number="171"></td>
  1079. <td id="LC171" class="blob-code js-file-line"> });</td>
  1080. </tr>
  1081. <tr>
  1082. <td id="L172" class="blob-num js-line-number" data-line-number="172"></td>
  1083. <td id="LC172" class="blob-code js-file-line"> <span class="pl-k">return</span> <span class="pl-c1">false</span>;</td>
  1084. </tr>
  1085. <tr>
  1086. <td id="L173" class="blob-num js-line-number" data-line-number="173"></td>
  1087. <td id="LC173" class="blob-code js-file-line"> });</td>
  1088. </tr>
  1089. <tr>
  1090. <td id="L174" class="blob-num js-line-number" data-line-number="174"></td>
  1091. <td id="LC174" class="blob-code js-file-line"> }</td>
  1092. </tr>
  1093. <tr>
  1094. <td id="L175" class="blob-num js-line-number" data-line-number="175"></td>
  1095. <td id="LC175" class="blob-code js-file-line"> </td>
  1096. </tr>
  1097. <tr>
  1098. <td id="L176" class="blob-num js-line-number" data-line-number="176"></td>
  1099. <td id="LC176" class="blob-code js-file-line"> });</td>
  1100. </tr>
  1101. <tr>
  1102. <td id="L177" class="blob-num js-line-number" data-line-number="177"></td>
  1103. <td id="LC177" class="blob-code js-file-line"> };</td>
  1104. </tr>
  1105. <tr>
  1106. <td id="L178" class="blob-num js-line-number" data-line-number="178"></td>
  1107. <td id="LC178" class="blob-code js-file-line"> </td>
  1108. </tr>
  1109. <tr>
  1110. <td id="L179" class="blob-num js-line-number" data-line-number="179"></td>
  1111. <td id="LC179" class="blob-code js-file-line"> <span class="pl-s">var</span> <span class="pl-en">findVideoSrc</span> <span class="pl-k">=</span> <span class="pl-st">function</span>(<span class="pl-vpf">id</span>, <span class="pl-vpf">cb</span>){</td>
  1112. </tr>
  1113. <tr>
  1114. <td id="L180" class="blob-num js-line-number" data-line-number="180"></td>
  1115. <td id="LC180" class="blob-code js-file-line"> <span class="pl-s">var</span> href <span class="pl-k">=</span> <span class="pl-s1"><span class="pl-pds">&quot;</span>http://motherless.com/<span class="pl-pds">&quot;</span></span><span class="pl-k">+</span>id;</td>
  1116. </tr>
  1117. <tr>
  1118. <td id="L181" class="blob-num js-line-number" data-line-number="181"></td>
  1119. <td id="LC181" class="blob-code js-file-line"> sneakyXHR(href, <span class="pl-st">function</span>(<span class="pl-vpf">d</span>){</td>
  1120. </tr>
  1121. <tr>
  1122. <td id="L182" class="blob-num js-line-number" data-line-number="182"></td>
  1123. <td id="LC182" class="blob-code js-file-line"> fapLog(<span class="pl-s1"><span class="pl-pds">&quot;</span>sneaky request all: <span class="pl-pds">&quot;</span></span> <span class="pl-k">+</span> d.<span class="pl-s3">toSource</span>());</td>
  1124. </tr>
  1125. <tr>
  1126. <td id="L183" class="blob-num js-line-number" data-line-number="183"></td>
  1127. <td id="LC183" class="blob-code js-file-line"> </td>
  1128. </tr>
  1129. <tr>
  1130. <td id="L184" class="blob-num js-line-number" data-line-number="184"></td>
  1131. <td id="LC184" class="blob-code js-file-line"> <span class="pl-s">var</span> url <span class="pl-k">=</span> d.<span class="pl-s3">match</span>(<span class="pl-sr"><span class="pl-pds">/</span>&quot;http:(<span class="pl-c1">[<span class="pl-k">^</span>&quot;]</span><span class="pl-k">+</span>)<span class="pl-c1">.</span>mp4&quot;<span class="pl-pds">/</span>mi</span>) <span class="pl-k">?</span> <span class="pl-s3">RegExp</span>.$<span class="pl-c1">1</span> <span class="pl-k">:</span> <span class="pl-c1">null</span>;</td>
  1132. </tr>
  1133. <tr>
  1134. <td id="L185" class="blob-num js-line-number" data-line-number="185"></td>
  1135. <td id="LC185" class="blob-code js-file-line"> <span class="pl-k">if</span>(url){</td>
  1136. </tr>
  1137. <tr>
  1138. <td id="L186" class="blob-num js-line-number" data-line-number="186"></td>
  1139. <td id="LC186" class="blob-code js-file-line"> cb({url<span class="pl-k">:</span><span class="pl-s1"><span class="pl-pds">&quot;</span>http:<span class="pl-pds">&quot;</span></span> <span class="pl-k">+</span> url <span class="pl-k">+</span> <span class="pl-s1"><span class="pl-pds">&quot;</span>.mp4<span class="pl-pds">&quot;</span></span>});</td>
  1140. </tr>
  1141. <tr>
  1142. <td id="L187" class="blob-num js-line-number" data-line-number="187"></td>
  1143. <td id="LC187" class="blob-code js-file-line"> }</td>
  1144. </tr>
  1145. <tr>
  1146. <td id="L188" class="blob-num js-line-number" data-line-number="188"></td>
  1147. <td id="LC188" class="blob-code js-file-line"> }, <span class="pl-s1"><span class="pl-pds">&quot;</span>get<span class="pl-pds">&quot;</span></span>, {</td>
  1148. </tr>
  1149. <tr>
  1150. <td id="L189" class="blob-num js-line-number" data-line-number="189"></td>
  1151. <td id="LC189" class="blob-code js-file-line"> <span class="pl-s1"><span class="pl-pds">&#39;</span>Range<span class="pl-pds">&#39;</span></span><span class="pl-k">:</span> <span class="pl-s1"><span class="pl-pds">&#39;</span>bytes=0-3000<span class="pl-pds">&#39;</span></span> <span class="pl-c">//grab first 3k</span></td>
  1152. </tr>
  1153. <tr>
  1154. <td id="L190" class="blob-num js-line-number" data-line-number="190"></td>
  1155. <td id="LC190" class="blob-code js-file-line"> });</td>
  1156. </tr>
  1157. <tr>
  1158. <td id="L191" class="blob-num js-line-number" data-line-number="191"></td>
  1159. <td id="LC191" class="blob-code js-file-line"> };</td>
  1160. </tr>
  1161. <tr>
  1162. <td id="L192" class="blob-num js-line-number" data-line-number="192"></td>
  1163. <td id="LC192" class="blob-code js-file-line"> </td>
  1164. </tr>
  1165. <tr>
  1166. <td id="L193" class="blob-num js-line-number" data-line-number="193"></td>
  1167. <td id="LC193" class="blob-code js-file-line"> <span class="pl-s">var</span> <span class="pl-en">findImgSrc</span> <span class="pl-k">=</span> <span class="pl-st">function</span>(<span class="pl-vpf">id</span>, <span class="pl-vpf">cb</span>){</td>
  1168. </tr>
  1169. <tr>
  1170. <td id="L194" class="blob-num js-line-number" data-line-number="194"></td>
  1171. <td id="LC194" class="blob-code js-file-line"> <span class="pl-s">var</span> href <span class="pl-k">=</span> <span class="pl-s1"><span class="pl-pds">&quot;</span>http://motherless.com/<span class="pl-pds">&quot;</span></span><span class="pl-k">+</span>id<span class="pl-k">+</span><span class="pl-s1"><span class="pl-pds">&quot;</span>?full<span class="pl-pds">&quot;</span></span>;</td>
  1172. </tr>
  1173. <tr>
  1174. <td id="L195" class="blob-num js-line-number" data-line-number="195"></td>
  1175. <td id="LC195" class="blob-code js-file-line"> sneakyXHR(href, <span class="pl-st">function</span>(<span class="pl-vpf">d</span>){</td>
  1176. </tr>
  1177. <tr>
  1178. <td id="L196" class="blob-num js-line-number" data-line-number="196"></td>
  1179. <td id="LC196" class="blob-code js-file-line"> <span class="pl-s">var</span> img <span class="pl-k">=</span> d.<span class="pl-s3">match</span>(<span class="pl-sr"><span class="pl-pds">/</span>property=&quot;og:image&quot; content=&quot;(<span class="pl-c1">[<span class="pl-k">^</span>&quot;]</span><span class="pl-k">+</span>)&quot;<span class="pl-pds">/</span>mi</span>) <span class="pl-k">?</span> <span class="pl-s3">RegExp</span>.$<span class="pl-c1">1</span> <span class="pl-k">:</span> <span class="pl-c1">null</span>;</td>
  1180. </tr>
  1181. <tr>
  1182. <td id="L197" class="blob-num js-line-number" data-line-number="197"></td>
  1183. <td id="LC197" class="blob-code js-file-line"> <span class="pl-k">if</span>(img){</td>
  1184. </tr>
  1185. <tr>
  1186. <td id="L198" class="blob-num js-line-number" data-line-number="198"></td>
  1187. <td id="LC198" class="blob-code js-file-line"> cb({url<span class="pl-k">:</span>img});</td>
  1188. </tr>
  1189. <tr>
  1190. <td id="L199" class="blob-num js-line-number" data-line-number="199"></td>
  1191. <td id="LC199" class="blob-code js-file-line"> }</td>
  1192. </tr>
  1193. <tr>
  1194. <td id="L200" class="blob-num js-line-number" data-line-number="200"></td>
  1195. <td id="LC200" class="blob-code js-file-line"> }, <span class="pl-s1"><span class="pl-pds">&quot;</span>get<span class="pl-pds">&quot;</span></span>, {</td>
  1196. </tr>
  1197. <tr>
  1198. <td id="L201" class="blob-num js-line-number" data-line-number="201"></td>
  1199. <td id="LC201" class="blob-code js-file-line"> <span class="pl-s1"><span class="pl-pds">&#39;</span>Range<span class="pl-pds">&#39;</span></span><span class="pl-k">:</span> <span class="pl-s1"><span class="pl-pds">&#39;</span>bytes=0-3000<span class="pl-pds">&#39;</span></span> <span class="pl-c">//grab first 3k</span></td>
  1200. </tr>
  1201. <tr>
  1202. <td id="L202" class="blob-num js-line-number" data-line-number="202"></td>
  1203. <td id="LC202" class="blob-code js-file-line"> });</td>
  1204. </tr>
  1205. <tr>
  1206. <td id="L203" class="blob-num js-line-number" data-line-number="203"></td>
  1207. <td id="LC203" class="blob-code js-file-line"> };</td>
  1208. </tr>
  1209. <tr>
  1210. <td id="L204" class="blob-num js-line-number" data-line-number="204"></td>
  1211. <td id="LC204" class="blob-code js-file-line">}</td>
  1212. </tr>
  1213. <tr>
  1214. <td id="L205" class="blob-num js-line-number" data-line-number="205"></td>
  1215. <td id="LC205" class="blob-code js-file-line">
  1216. </td>
  1217. </tr>
  1218. <tr>
  1219. <td id="L206" class="blob-num js-line-number" data-line-number="206"></td>
  1220. <td id="LC206" class="blob-code js-file-line"><span class="pl-c">// show the full image as overlay and shrink it to screen resolution</span></td>
  1221. </tr>
  1222. <tr>
  1223. <td id="L207" class="blob-num js-line-number" data-line-number="207"></td>
  1224. <td id="LC207" class="blob-code js-file-line"><span class="pl-st">function</span> <span class="pl-en">displayOverlay</span>(<span class="pl-vpf">data</span>, <span class="pl-vpf">type</span>) {</td>
  1225. </tr>
  1226. <tr>
  1227. <td id="L208" class="blob-num js-line-number" data-line-number="208"></td>
  1228. <td id="LC208" class="blob-code js-file-line"> <span class="pl-s">var</span> mywidht <span class="pl-k">=</span> <span class="pl-s3">window</span>.<span class="pl-s3">screen</span>.<span class="pl-sc">width</span> <span class="pl-k">-</span> <span class="pl-c1">50</span>;</td>
  1229. </tr>
  1230. <tr>
  1231. <td id="L209" class="blob-num js-line-number" data-line-number="209"></td>
  1232. <td id="LC209" class="blob-code js-file-line"> <span class="pl-s">var</span> myheight <span class="pl-k">=</span> <span class="pl-s3">window</span>.<span class="pl-s3">screen</span>.<span class="pl-sc">height</span> <span class="pl-k">-</span> <span class="pl-c1">120</span>;</td>
  1233. </tr>
  1234. <tr>
  1235. <td id="L210" class="blob-num js-line-number" data-line-number="210"></td>
  1236. <td id="LC210" class="blob-code js-file-line"> <span class="pl-s">var</span> html <span class="pl-k">=</span> <span class="pl-s1"><span class="pl-pds">&quot;</span><span class="pl-pds">&quot;</span></span>;</td>
  1237. </tr>
  1238. <tr>
  1239. <td id="L211" class="blob-num js-line-number" data-line-number="211"></td>
  1240. <td id="LC211" class="blob-code js-file-line"> </td>
  1241. </tr>
  1242. <tr>
  1243. <td id="L212" class="blob-num js-line-number" data-line-number="212"></td>
  1244. <td id="LC212" class="blob-code js-file-line"> fapLog(<span class="pl-s1"><span class="pl-pds">&quot;</span>monitor resolution: <span class="pl-pds">&quot;</span></span> <span class="pl-k">+</span> mywidht <span class="pl-k">+</span> <span class="pl-s1"><span class="pl-pds">&quot;</span>:<span class="pl-pds">&quot;</span></span> <span class="pl-k">+</span> myheight);</td>
  1245. </tr>
  1246. <tr>
  1247. <td id="L213" class="blob-num js-line-number" data-line-number="213"></td>
  1248. <td id="LC213" class="blob-code js-file-line"> </td>
  1249. </tr>
  1250. <tr>
  1251. <td id="L214" class="blob-num js-line-number" data-line-number="214"></td>
  1252. <td id="LC214" class="blob-code js-file-line"> <span class="pl-k">if</span> (type<span class="pl-k">==</span><span class="pl-s1"><span class="pl-pds">&quot;</span>image<span class="pl-pds">&quot;</span></span>){</td>
  1253. </tr>
  1254. <tr>
  1255. <td id="L215" class="blob-num js-line-number" data-line-number="215"></td>
  1256. <td id="LC215" class="blob-code js-file-line"> html<span class="pl-k">=</span><span class="pl-s1"><span class="pl-pds">&quot;</span>&lt;table id=&#39;overlay&#39;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;img src=&#39;<span class="pl-pds">&quot;</span></span> <span class="pl-k">+</span> data[<span class="pl-c1">0</span>].url <span class="pl-k">+</span> <span class="pl-s1"><span class="pl-pds">&quot;</span>&#39; style=&#39;width:auto; hight:100%; max-height:<span class="pl-pds">&quot;</span></span> <span class="pl-k">+</span> myheight <span class="pl-k">+</span><span class="pl-s1"><span class="pl-pds">&quot;</span>px; max-width:<span class="pl-pds">&quot;</span></span> <span class="pl-k">+</span> mywidht <span class="pl-k">+</span> <span class="pl-s1"><span class="pl-pds">&quot;</span>px&#39;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;<span class="pl-pds">&quot;</span></span>;</td>
  1257. </tr>
  1258. <tr>
  1259. <td id="L216" class="blob-num js-line-number" data-line-number="216"></td>
  1260. <td id="LC216" class="blob-code js-file-line"> }</td>
  1261. </tr>
  1262. <tr>
  1263. <td id="L217" class="blob-num js-line-number" data-line-number="217"></td>
  1264. <td id="LC217" class="blob-code js-file-line"> <span class="pl-k">if</span> (type<span class="pl-k">==</span><span class="pl-s1"><span class="pl-pds">&quot;</span>video<span class="pl-pds">&quot;</span></span>){</td>
  1265. </tr>
  1266. <tr>
  1267. <td id="L218" class="blob-num js-line-number" data-line-number="218"></td>
  1268. <td id="LC218" class="blob-code js-file-line"> html<span class="pl-k">=</span><span class="pl-s1"><span class="pl-pds">&quot;</span>&lt;a id=&#39;overlay&#39; href=&#39;<span class="pl-pds">&quot;</span></span> <span class="pl-k">+</span> data[<span class="pl-c1">0</span>].url <span class="pl-k">+</span> <span class="pl-s1"><span class="pl-pds">&quot;</span>&#39;&gt;Video Link&lt;/a&gt;<span class="pl-pds">&quot;</span></span>;</td>
  1269. </tr>
  1270. <tr>
  1271. <td id="L219" class="blob-num js-line-number" data-line-number="219"></td>
  1272. <td id="LC219" class="blob-code js-file-line"> }</td>
  1273. </tr>
  1274. <tr>
  1275. <td id="L220" class="blob-num js-line-number" data-line-number="220"></td>
  1276. <td id="LC220" class="blob-code js-file-line"> $(html).css({</td>
  1277. </tr>
  1278. <tr>
  1279. <td id="L221" class="blob-num js-line-number" data-line-number="221"></td>
  1280. <td id="LC221" class="blob-code js-file-line"> <span class="pl-s1"><span class="pl-pds">&quot;</span>position<span class="pl-pds">&quot;</span></span><span class="pl-k">:</span> <span class="pl-s1"><span class="pl-pds">&quot;</span>fixed<span class="pl-pds">&quot;</span></span>,</td>
  1281. </tr>
  1282. <tr>
  1283. <td id="L222" class="blob-num js-line-number" data-line-number="222"></td>
  1284. <td id="LC222" class="blob-code js-file-line"> <span class="pl-s1"><span class="pl-pds">&quot;</span>top<span class="pl-pds">&quot;</span></span><span class="pl-k">:</span> <span class="pl-c1">0</span>,</td>
  1285. </tr>
  1286. <tr>
  1287. <td id="L223" class="blob-num js-line-number" data-line-number="223"></td>
  1288. <td id="LC223" class="blob-code js-file-line"> <span class="pl-s1"><span class="pl-pds">&quot;</span>left<span class="pl-pds">&quot;</span></span><span class="pl-k">:</span> <span class="pl-c1">0</span>,</td>
  1289. </tr>
  1290. <tr>
  1291. <td id="L224" class="blob-num js-line-number" data-line-number="224"></td>
  1292. <td id="LC224" class="blob-code js-file-line"> <span class="pl-s1"><span class="pl-pds">&quot;</span>width<span class="pl-pds">&quot;</span></span><span class="pl-k">:</span> <span class="pl-s1"><span class="pl-pds">&quot;</span>90%<span class="pl-pds">&quot;</span></span>,</td>
  1293. </tr>
  1294. <tr>
  1295. <td id="L225" class="blob-num js-line-number" data-line-number="225"></td>
  1296. <td id="LC225" class="blob-code js-file-line"> <span class="pl-s1"><span class="pl-pds">&quot;</span>height<span class="pl-pds">&quot;</span></span><span class="pl-k">:</span> <span class="pl-s1"><span class="pl-pds">&quot;</span>900px<span class="pl-pds">&quot;</span></span>,</td>
  1297. </tr>
  1298. <tr>
  1299. <td id="L226" class="blob-num js-line-number" data-line-number="226"></td>
  1300. <td id="LC226" class="blob-code js-file-line"> <span class="pl-s1"><span class="pl-pds">&quot;</span>background-color<span class="pl-pds">&quot;</span></span><span class="pl-k">:</span> <span class="pl-s1"><span class="pl-pds">&quot;</span>rgba(0,0,0,.5)<span class="pl-pds">&quot;</span></span>,</td>
  1301. </tr>
  1302. <tr>
  1303. <td id="L227" class="blob-num js-line-number" data-line-number="227"></td>
  1304. <td id="LC227" class="blob-code js-file-line"> <span class="pl-s1"><span class="pl-pds">&quot;</span>z-index<span class="pl-pds">&quot;</span></span><span class="pl-k">:</span> <span class="pl-c1">10000</span>,</td>
  1305. </tr>
  1306. <tr>
  1307. <td id="L228" class="blob-num js-line-number" data-line-number="228"></td>
  1308. <td id="LC228" class="blob-code js-file-line"> <span class="pl-s1"><span class="pl-pds">&quot;</span>vertical-align<span class="pl-pds">&quot;</span></span><span class="pl-k">:</span> <span class="pl-s1"><span class="pl-pds">&quot;</span>middle<span class="pl-pds">&quot;</span></span>,</td>
  1309. </tr>
  1310. <tr>
  1311. <td id="L229" class="blob-num js-line-number" data-line-number="229"></td>
  1312. <td id="LC229" class="blob-code js-file-line"> <span class="pl-s1"><span class="pl-pds">&quot;</span>text-align<span class="pl-pds">&quot;</span></span><span class="pl-k">:</span> <span class="pl-s1"><span class="pl-pds">&quot;</span>center<span class="pl-pds">&quot;</span></span>,</td>
  1313. </tr>
  1314. <tr>
  1315. <td id="L230" class="blob-num js-line-number" data-line-number="230"></td>
  1316. <td id="LC230" class="blob-code js-file-line"> <span class="pl-s1"><span class="pl-pds">&quot;</span>color<span class="pl-pds">&quot;</span></span><span class="pl-k">:</span> <span class="pl-s1"><span class="pl-pds">&quot;</span>#fff<span class="pl-pds">&quot;</span></span>,</td>
  1317. </tr>
  1318. <tr>
  1319. <td id="L231" class="blob-num js-line-number" data-line-number="231"></td>
  1320. <td id="LC231" class="blob-code js-file-line"> <span class="pl-s1"><span class="pl-pds">&quot;</span>font-size<span class="pl-pds">&quot;</span></span><span class="pl-k">:</span> <span class="pl-s1"><span class="pl-pds">&quot;</span>30px<span class="pl-pds">&quot;</span></span>,</td>
  1321. </tr>
  1322. <tr>
  1323. <td id="L232" class="blob-num js-line-number" data-line-number="232"></td>
  1324. <td id="LC232" class="blob-code js-file-line"> <span class="pl-s1"><span class="pl-pds">&quot;</span>font-weight<span class="pl-pds">&quot;</span></span><span class="pl-k">:</span> <span class="pl-s1"><span class="pl-pds">&quot;</span>bold<span class="pl-pds">&quot;</span></span>,</td>
  1325. </tr>
  1326. <tr>
  1327. <td id="L233" class="blob-num js-line-number" data-line-number="233"></td>
  1328. <td id="LC233" class="blob-code js-file-line"> <span class="pl-s1"><span class="pl-pds">&quot;</span>overflow<span class="pl-pds">&quot;</span></span><span class="pl-k">:</span> <span class="pl-s1"><span class="pl-pds">&quot;</span>hidden<span class="pl-pds">&quot;</span></span>,</td>
  1329. </tr>
  1330. <tr>
  1331. <td id="L234" class="blob-num js-line-number" data-line-number="234"></td>
  1332. <td id="LC234" class="blob-code js-file-line"> <span class="pl-s1"><span class="pl-pds">&quot;</span>cursor<span class="pl-pds">&quot;</span></span><span class="pl-k">:</span> <span class="pl-s1"><span class="pl-pds">&quot;</span>auto<span class="pl-pds">&quot;</span></span></td>
  1333. </tr>
  1334. <tr>
  1335. <td id="L235" class="blob-num js-line-number" data-line-number="235"></td>
  1336. <td id="LC235" class="blob-code js-file-line"> }).appendTo(<span class="pl-s1"><span class="pl-pds">&quot;</span>body<span class="pl-pds">&quot;</span></span>);</td>
  1337. </tr>
  1338. <tr>
  1339. <td id="L236" class="blob-num js-line-number" data-line-number="236"></td>
  1340. <td id="LC236" class="blob-code js-file-line">}</td>
  1341. </tr>
  1342. <tr>
  1343. <td id="L237" class="blob-num js-line-number" data-line-number="237"></td>
  1344. <td id="LC237" class="blob-code js-file-line">
  1345. </td>
  1346. </tr>
  1347. <tr>
  1348. <td id="L238" class="blob-num js-line-number" data-line-number="238"></td>
  1349. <td id="LC238" class="blob-code js-file-line"><span class="pl-st">function</span> <span class="pl-en">sneakyXHR</span>(<span class="pl-vpf">url</span>, <span class="pl-vpf">cb</span>, <span class="pl-vpf">method</span>, <span class="pl-vpf">headers</span>) {</td>
  1350. </tr>
  1351. <tr>
  1352. <td id="L239" class="blob-num js-line-number" data-line-number="239"></td>
  1353. <td id="LC239" class="blob-code js-file-line"> method <span class="pl-k">=</span> method <span class="pl-k">||</span> <span class="pl-s1"><span class="pl-pds">&quot;</span>GET<span class="pl-pds">&quot;</span></span></td>
  1354. </tr>
  1355. <tr>
  1356. <td id="L240" class="blob-num js-line-number" data-line-number="240"></td>
  1357. <td id="LC240" class="blob-code js-file-line"> </td>
  1358. </tr>
  1359. <tr>
  1360. <td id="L241" class="blob-num js-line-number" data-line-number="241"></td>
  1361. <td id="LC241" class="blob-code js-file-line"> fapLog(<span class="pl-s1"><span class="pl-pds">&quot;</span>sneaky requesting: <span class="pl-pds">&quot;</span></span> <span class="pl-k">+</span> url);</td>
  1362. </tr>
  1363. <tr>
  1364. <td id="L242" class="blob-num js-line-number" data-line-number="242"></td>
  1365. <td id="LC242" class="blob-code js-file-line"> </td>
  1366. </tr>
  1367. <tr>
  1368. <td id="L243" class="blob-num js-line-number" data-line-number="243"></td>
  1369. <td id="LC243" class="blob-code js-file-line"> <span class="pl-s3">setTimeout</span>(<span class="pl-st">function</span>() {</td>
  1370. </tr>
  1371. <tr>
  1372. <td id="L244" class="blob-num js-line-number" data-line-number="244"></td>
  1373. <td id="LC244" class="blob-code js-file-line"> GM_xmlhttpRequest({</td>
  1374. </tr>
  1375. <tr>
  1376. <td id="L245" class="blob-num js-line-number" data-line-number="245"></td>
  1377. <td id="LC245" class="blob-code js-file-line"> method<span class="pl-k">:</span> method,</td>
  1378. </tr>
  1379. <tr>
  1380. <td id="L246" class="blob-num js-line-number" data-line-number="246"></td>
  1381. <td id="LC246" class="blob-code js-file-line"> <span class="pl-s1"><span class="pl-pds">&#39;</span>url<span class="pl-pds">&#39;</span></span><span class="pl-k">:</span> url,</td>
  1382. </tr>
  1383. <tr>
  1384. <td id="L247" class="blob-num js-line-number" data-line-number="247"></td>
  1385. <td id="LC247" class="blob-code js-file-line"> headers<span class="pl-k">:</span> $.extend({}, {</td>
  1386. </tr>
  1387. <tr>
  1388. <td id="L248" class="blob-num js-line-number" data-line-number="248"></td>
  1389. <td id="LC248" class="blob-code js-file-line"> <span class="pl-s1"><span class="pl-pds">&#39;</span>User-agent<span class="pl-pds">&#39;</span></span><span class="pl-k">:</span> <span class="pl-s1"><span class="pl-pds">&#39;</span>Mozilla/4.0<span class="pl-pds">&#39;</span></span>,</td>
  1390. </tr>
  1391. <tr>
  1392. <td id="L249" class="blob-num js-line-number" data-line-number="249"></td>
  1393. <td id="LC249" class="blob-code js-file-line"> <span class="pl-s1"><span class="pl-pds">&#39;</span>Accept<span class="pl-pds">&#39;</span></span><span class="pl-k">:</span> <span class="pl-s1"><span class="pl-pds">&#39;</span>application/atom+xml,application/xml,text/xml<span class="pl-pds">&#39;</span></span>,</td>
  1394. </tr>
  1395. <tr>
  1396. <td id="L250" class="blob-num js-line-number" data-line-number="250"></td>
  1397. <td id="LC250" class="blob-code js-file-line"> <span class="pl-s1"><span class="pl-pds">&#39;</span>Cookie<span class="pl-pds">&#39;</span></span><span class="pl-k">:</span> <span class="pl-s3">document</span>.<span class="pl-sc">cookie</span></td>
  1398. </tr>
  1399. <tr>
  1400. <td id="L251" class="blob-num js-line-number" data-line-number="251"></td>
  1401. <td id="LC251" class="blob-code js-file-line"> }, headers <span class="pl-k">||</span> {}),</td>
  1402. </tr>
  1403. <tr>
  1404. <td id="L252" class="blob-num js-line-number" data-line-number="252"></td>
  1405. <td id="LC252" class="blob-code js-file-line"> <span class="pl-en">onload</span>: <span class="pl-st">function</span>(<span class="pl-vpf">responseDetails</span>) {</td>
  1406. </tr>
  1407. <tr>
  1408. <td id="L253" class="blob-num js-line-number" data-line-number="253"></td>
  1409. <td id="LC253" class="blob-code js-file-line"> <span class="pl-s">var</span> text <span class="pl-k">=</span> responseDetails.<span class="pl-sc">responseText</span>;</td>
  1410. </tr>
  1411. <tr>
  1412. <td id="L254" class="blob-num js-line-number" data-line-number="254"></td>
  1413. <td id="LC254" class="blob-code js-file-line"> cb(text, responseDetails);</td>
  1414. </tr>
  1415. <tr>
  1416. <td id="L255" class="blob-num js-line-number" data-line-number="255"></td>
  1417. <td id="LC255" class="blob-code js-file-line"> }</td>
  1418. </tr>
  1419. <tr>
  1420. <td id="L256" class="blob-num js-line-number" data-line-number="256"></td>
  1421. <td id="LC256" class="blob-code js-file-line"> });</td>
  1422. </tr>
  1423. <tr>
  1424. <td id="L257" class="blob-num js-line-number" data-line-number="257"></td>
  1425. <td id="LC257" class="blob-code js-file-line"> }, <span class="pl-c1">1</span>)</td>
  1426. </tr>
  1427. <tr>
  1428. <td id="L258" class="blob-num js-line-number" data-line-number="258"></td>
  1429. <td id="LC258" class="blob-code js-file-line">}</td>
  1430. </tr>
  1431. <tr>
  1432. <td id="L259" class="blob-num js-line-number" data-line-number="259"></td>
  1433. <td id="LC259" class="blob-code js-file-line">
  1434. </td>
  1435. </tr>
  1436. </table>
  1437.  
  1438. </div>
  1439.  
  1440. </div>
  1441. </div>
  1442.  
  1443. <a href="#jump-to-line" rel="facebox[.linejump]" data-hotkey="l" style="display:none">Jump to Line</a>
  1444. <div id="jump-to-line" style="display:none">
  1445. <form accept-charset="UTF-8" class="js-jump-to-line-form">
  1446. <input class="linejump-input js-jump-to-line-field" type="text" placeholder="Jump to line&hellip;" autofocus>
  1447. <button type="submit" class="button">Go</button>
  1448. </form>
  1449. </div>
  1450.  
  1451. </div>
  1452.  
  1453. </div><!-- /.repo-container -->
  1454. <div class="modal-backdrop"></div>
  1455. </div><!-- /.container -->
  1456. </div><!-- /.site -->
  1457.  
  1458.  
  1459. </div><!-- /.wrapper -->
  1460.  
  1461. <div class="container">
  1462. <div class="site-footer" role="contentinfo">
  1463. <ul class="site-footer-links right">
  1464. <li><a href="https://status.github.com/">Status</a></li>
  1465. <li><a href="https://developer.github.com">API</a></li>
  1466. <li><a href="http://training.github.com">Training</a></li>
  1467. <li><a href="http://shop.github.com">Shop</a></li>
  1468. <li><a href="/blog">Blog</a></li>
  1469. <li><a href="/about">About</a></li>
  1470.  
  1471. </ul>
  1472.  
  1473. <a href="/" aria-label="Homepage">
  1474. <span class="mega-octicon octicon-mark-github" title="GitHub"></span>
  1475. </a>
  1476.  
  1477. <ul class="site-footer-links">
  1478. <li>&copy; 2014 <span title="0.04711s from github-fe124-cp1-prd.iad.github.net">GitHub</span>, Inc.</li>
  1479. <li><a href="/site/terms">Terms</a></li>
  1480. <li><a href="/site/privacy">Privacy</a></li>
  1481. <li><a href="/security">Security</a></li>
  1482. <li><a href="/contact">Contact</a></li>
  1483. </ul>
  1484. </div><!-- /.site-footer -->
  1485. </div><!-- /.container -->
  1486.  
  1487.  
  1488. <div class="fullscreen-overlay js-fullscreen-overlay" id="fullscreen_overlay">
  1489. <div class="fullscreen-container js-suggester-container">
  1490. <div class="textarea-wrap">
  1491. <textarea name="fullscreen-contents" id="fullscreen-contents" class="fullscreen-contents js-fullscreen-contents" placeholder=""></textarea>
  1492. <div class="suggester-container">
  1493. <div class="suggester fullscreen-suggester js-suggester js-navigation-container"></div>
  1494. </div>
  1495. </div>
  1496. </div>
  1497. <div class="fullscreen-sidebar">
  1498. <a href="#" class="exit-fullscreen js-exit-fullscreen tooltipped tooltipped-w" aria-label="Exit Zen Mode">
  1499. <span class="mega-octicon octicon-screen-normal"></span>
  1500. </a>
  1501. <a href="#" class="theme-switcher js-theme-switcher tooltipped tooltipped-w"
  1502. aria-label="Switch themes">
  1503. <span class="octicon octicon-color-mode"></span>
  1504. </a>
  1505. </div>
  1506. </div>
  1507.  
  1508.  
  1509.  
  1510. <div id="ajax-error-message" class="flash flash-error">
  1511. <span class="octicon octicon-alert"></span>
  1512. <a href="#" class="octicon octicon-x flash-close js-ajax-error-dismiss" aria-label="Dismiss error"></a>
  1513. Something went wrong with that request. Please try again.
  1514. </div>
  1515.  
  1516.  
  1517. <script crossorigin="anonymous" src="https://assets-cdn.github.com/assets/frameworks-fc447938e306b7b2c26a33cfee9dfda9052aeb1aa6ad84b72f1b35fd008efe9e.js" type="text/javascript"></script>
  1518. <script async="async" crossorigin="anonymous" src="https://assets-cdn.github.com/assets/github-56c56f7fe2ed90ca50b9eefebccd56f3b9729a85d7ba17f0f9c9ebd02f20a7e3.js" type="text/javascript"></script>
  1519. </body>
  1520. </html>
  1521.