Advertisement
Guest User

12

a guest
Aug 13th, 2017
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.82 KB | None | 0 0
  1. Beautify, unpack or deobfuscate JavaScript and HTML, make JSON/JSONP readable, etc.
  2. All of the source code is completely free and open, available on GitHub under MIT licence,
  3. and we have a command-line version, python library and a node package as well.
  4.  
  5.  
  6.  
  7.  
  8. HTML <style>, <script> formatting:
  9. End script and style with newline?
  10. Support e4x/jsx syntax
  11. Use comma-first list style?
  12. Detect packers and obfuscators?
  13. Preserve inline braces/code blocks?
  14. Keep array indentation?
  15. Break lines on chained methods?
  16. Space before conditional: "if(x)" / "if (x)"
  17. Unescape printable chars encoded as \xNN or \uNNNN?
  18. Use JSLint-happy formatting tweaks?
  19. Indent <head> and <body> sections?
  20. Use a simple textarea for code input?
  21. Beautify JavaScript or HTML (ctrl-enter)
  22.  
  23. 404
  24. n = parseInt(_0xf558x1c['split']('rolled')[1]);
  25. 405
  26. return lastRollColor = getColor(n), 'rolled'
  27. 406
  28. };
  29. 407
  30. return 'unknown'
  31. 408
  32. }
  33. 409
  34. 410
  35. function getBalance() {
  36. 411
  37. return parseInt($balance['text']())
  38. 412
  39. }
  40. 413
  41. 414
  42. function hasSubString(_0xf558x1c, n) {
  43. 415
  44. return _0xf558x1c['indexOf'](n) > -1
  45. 416
  46. }
  47. 417
  48. 418
  49. function getColor(_0xf558x1c) {
  50. 419
  51. return 0 == _0xf558x1c ? 'green' : _0xf558x1c >= 1 && 7 >= _0xf558x1c ? 'red' : 'black'
  52. 420
  53. }
  54. 421
  55. 422
  56. function wonLastRoll() {
  57. 423
  58. return lastBetColor ? lastRollColor === lastBetColor : null
  59. 424
  60. }
  61. 425
  62. 426
  63. function test(_0xf558x31) {
  64. 427
  65. q = 1;
  66. 428
  67. w = e = _0xf558x31;
  68. 429
  69. for (i = 2; i <= 15; i++) {
  70. 430
  71. q *= 2;
  72. 431
  73. e += q * w;
  74. 432
  75. console['log'](i + '. ' + e)
  76. 433
  77. }
  78. 434
  79. }
  80. 435
  81. 436
  82. function test2(_0xf558x31, _0xf558x33) {
  83. 437
  84. q = 1;
  85. 438
  86. w = e = _0xf558x31;
  87. 439
  88. for (i = 2; i <= _0xf558x33; i++) {
  89. 440
  90. q *= 2;
  91. 441
  92. e += q * w;
  93. 442
  94. console['log'](i + '. ' + e)
  95. 443
  96. }
  97. 444
  98. }
  99. 445
  100. var currentBetAmount = initialBetAmount,
  101. 446
  102. currentRollNumber = 1,
  103. 447
  104. totalWins = totalLoss = played = currNotRedStreak = currNotBlackStreak = notRedStreak = notBlackStreak = winStreakLong = winStreakCurrent = loseStreakLong = loseStreakCurrent = longStreak = currStreak = thisGameBet = winAmount = 0,
  105. 448
  106. streakColor = '',
  107. 449
  108. n, lastStatus, lastBetColor, lastRollColor, stopBotRoll, $balance = $('#balance'),
  109. 450
  110. $betAmountInput = $('#betAmount'),
  111. 451
  112. $statusBar = $('.progress #banner'),
  113. 452
  114. $redButton = $('#panel1-7 .betButton'),
  115. 453
  116. $blackButton = $('#panel8-14 .betButton');
  117. 454
  118. $['notify']('MY CONGRATULATIONS YOU ACTIVATED THE SCRIPT WITH SUCCESS !!!!!!!!!! IF WRONG AMOUNT APPEARS IT IS BECAUSE YOU DO NOT HAVE BALANCE TO USE THE SCRIPT!', 'error')
  119. Beautify JavaScript or HTML (ctrl-enter)
  120. Browser extensions and other uses
  121. A bookmarklet (drag it to your bookmarks) by Ichiro Hiroshi to see all scripts used on the page,
  122. Chrome, in case the built-in CSS and javascript formatting isn't enough for you:
  123. — Quick source viewer by Tomi Mickelsson (github, blog),
  124. — Javascript and CSS Code beautifier by c7sky,
  125. — jsbeautify-for-chrome by Tom Rix (github),
  126. — Pretty Beautiful JavaScript by Will McSweeney
  127. — Stackoverflow Code Beautify by Making Odd Edit Studios (github).
  128. Firefox: Javascript deminifier by Ben Murphy, to be used together with the firebug (github),
  129. Safari: Safari extension by Sandro Padin,
  130. Opera: Readable JavaScript (github) by Dither,
  131. Opera: Source extension by Deathamns,
  132. Sublime Text 2/3: CodeFormatter, a python plugin by Avtandil Kikabidze, supports HTML, CSS, JS and a bunch of other languages,
  133. Sublime Text 2/3: HTMLPrettify, a javascript plugin by Victor Porof,
  134. Sublime Text 2: JsFormat, a javascript formatting plugin for this nice editor by Davis Clark,
  135. vim: sourcebeautify.vim, a plugin by michalliu (requires node.js, V8, SpiderMonkey or cscript js engine),
  136. vim: vim-jsbeautify, a plugin by Maksim Ryzhikov (node.js or V8 required),
  137. Emacs: Web-beautify formatting package by Yasuyuki Oka,
  138. Komodo IDE: Beautify-js addon by Bob de Haas (github),
  139. C#: ghost6991 ported the javascript formatter to C#,
  140. Go: ditashi has ported the javascript formatter to golang,
  141. Beautify plugin (github) by HookyQR for the Visual Studio Code IDE,
  142. Fiddler proxy: JavaScript Formatter addon,
  143. gEdit tips by Fabio Nagao,
  144. Akelpad extension by Infocatcher,
  145. Beautifier in Emacs write-up by Seth Mason,
  146. Cloud9, a lovely IDE running in a browser, working in the node/cloud, uses jsbeautifier (github),
  147. Devenir Hacker App, a non-free JavaScript packer for Mac,
  148. REST Console, a request debugging tool for Chrome, beautifies JSON responses (github),
  149. mitmproxy, a nifty SSL-capable HTTP proxy, provides pretty javascript responses (github).
  150. wakanda, a neat IDE for web and mobile applications has a Beautifier extension (github).
  151. Burp Suite now has a beautfier extension, thanks to Soroush Dalili,
  152. Netbeans jsbeautify plugin by Drew Hamlett (github).
  153. brackets-beautify-extension for Adobe Brackets by Drew Hamlett (github),
  154. codecaddy.net, a collection of webdev-related tools, assembled by Darik Hall,
  155. editey.com, an interesting and free Google-Drive oriented editor uses this beautifier,
  156. a beautifier plugin for Grunt by Vishal Kadam,
  157. SynWrite editor has a JsFormat plugin (rar, readme),
  158. LIVEditor, a live-editing HTML/CSS/JS IDE (commercial, Windows-only) uses the library,
  159. Doing anything interesting? Write us to team@jsbeautifier.org so we can add your project to the list.
  160.  
  161. Written by Einar Lielmanis, maintained and evolved by Liam Newman.
  162.  
  163. We use the wonderful CodeMirror syntax highlighting editor, written by Marijn Haverbeke.
  164.  
  165. Made with a great help of Jason Diamond, Patrick Hof, Nochum Sossonko, Andreas Schneider,
  166. Dave Vasilevsky, Vital Batmanov, Ron Baldwin, Gabriel Harrison, Chris J. Shull, Mathias Bynens,
  167. Vittorio Gambaletta, Stefano Sanfilippo and Daniel Stockman.
  168.  
  169. Run the tests
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement