Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Beautify, unpack or deobfuscate JavaScript and HTML, make JSON/JSONP readable, etc.
- All of the source code is completely free and open, available on GitHub under MIT licence,
- and we have a command-line version, python library and a node package as well.
- HTML <style>, <script> formatting:
- End script and style with newline?
- Support e4x/jsx syntax
- Use comma-first list style?
- Detect packers and obfuscators?
- Preserve inline braces/code blocks?
- Keep array indentation?
- Break lines on chained methods?
- Space before conditional: "if(x)" / "if (x)"
- Unescape printable chars encoded as \xNN or \uNNNN?
- Use JSLint-happy formatting tweaks?
- Indent <head> and <body> sections?
- Use a simple textarea for code input?
- Beautify JavaScript or HTML (ctrl-enter)
- 404
- n = parseInt(_0xf558x1c['split']('rolled')[1]);
- 405
- return lastRollColor = getColor(n), 'rolled'
- 406
- };
- 407
- return 'unknown'
- 408
- }
- 409
-
- 410
- function getBalance() {
- 411
- return parseInt($balance['text']())
- 412
- }
- 413
-
- 414
- function hasSubString(_0xf558x1c, n) {
- 415
- return _0xf558x1c['indexOf'](n) > -1
- 416
- }
- 417
-
- 418
- function getColor(_0xf558x1c) {
- 419
- return 0 == _0xf558x1c ? 'green' : _0xf558x1c >= 1 && 7 >= _0xf558x1c ? 'red' : 'black'
- 420
- }
- 421
-
- 422
- function wonLastRoll() {
- 423
- return lastBetColor ? lastRollColor === lastBetColor : null
- 424
- }
- 425
-
- 426
- function test(_0xf558x31) {
- 427
- q = 1;
- 428
- w = e = _0xf558x31;
- 429
- for (i = 2; i <= 15; i++) {
- 430
- q *= 2;
- 431
- e += q * w;
- 432
- console['log'](i + '. ' + e)
- 433
- }
- 434
- }
- 435
-
- 436
- function test2(_0xf558x31, _0xf558x33) {
- 437
- q = 1;
- 438
- w = e = _0xf558x31;
- 439
- for (i = 2; i <= _0xf558x33; i++) {
- 440
- q *= 2;
- 441
- e += q * w;
- 442
- console['log'](i + '. ' + e)
- 443
- }
- 444
- }
- 445
- var currentBetAmount = initialBetAmount,
- 446
- currentRollNumber = 1,
- 447
- totalWins = totalLoss = played = currNotRedStreak = currNotBlackStreak = notRedStreak = notBlackStreak = winStreakLong = winStreakCurrent = loseStreakLong = loseStreakCurrent = longStreak = currStreak = thisGameBet = winAmount = 0,
- 448
- streakColor = '',
- 449
- n, lastStatus, lastBetColor, lastRollColor, stopBotRoll, $balance = $('#balance'),
- 450
- $betAmountInput = $('#betAmount'),
- 451
- $statusBar = $('.progress #banner'),
- 452
- $redButton = $('#panel1-7 .betButton'),
- 453
- $blackButton = $('#panel8-14 .betButton');
- 454
- $['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')
- Beautify JavaScript or HTML (ctrl-enter)
- Browser extensions and other uses
- A bookmarklet (drag it to your bookmarks) by Ichiro Hiroshi to see all scripts used on the page,
- Chrome, in case the built-in CSS and javascript formatting isn't enough for you:
- — Quick source viewer by Tomi Mickelsson (github, blog),
- — Javascript and CSS Code beautifier by c7sky,
- — jsbeautify-for-chrome by Tom Rix (github),
- — Pretty Beautiful JavaScript by Will McSweeney
- — Stackoverflow Code Beautify by Making Odd Edit Studios (github).
- Firefox: Javascript deminifier by Ben Murphy, to be used together with the firebug (github),
- Safari: Safari extension by Sandro Padin,
- Opera: Readable JavaScript (github) by Dither,
- Opera: Source extension by Deathamns,
- Sublime Text 2/3: CodeFormatter, a python plugin by Avtandil Kikabidze, supports HTML, CSS, JS and a bunch of other languages,
- Sublime Text 2/3: HTMLPrettify, a javascript plugin by Victor Porof,
- Sublime Text 2: JsFormat, a javascript formatting plugin for this nice editor by Davis Clark,
- vim: sourcebeautify.vim, a plugin by michalliu (requires node.js, V8, SpiderMonkey or cscript js engine),
- vim: vim-jsbeautify, a plugin by Maksim Ryzhikov (node.js or V8 required),
- Emacs: Web-beautify formatting package by Yasuyuki Oka,
- Komodo IDE: Beautify-js addon by Bob de Haas (github),
- C#: ghost6991 ported the javascript formatter to C#,
- Go: ditashi has ported the javascript formatter to golang,
- Beautify plugin (github) by HookyQR for the Visual Studio Code IDE,
- Fiddler proxy: JavaScript Formatter addon,
- gEdit tips by Fabio Nagao,
- Akelpad extension by Infocatcher,
- Beautifier in Emacs write-up by Seth Mason,
- Cloud9, a lovely IDE running in a browser, working in the node/cloud, uses jsbeautifier (github),
- Devenir Hacker App, a non-free JavaScript packer for Mac,
- REST Console, a request debugging tool for Chrome, beautifies JSON responses (github),
- mitmproxy, a nifty SSL-capable HTTP proxy, provides pretty javascript responses (github).
- wakanda, a neat IDE for web and mobile applications has a Beautifier extension (github).
- Burp Suite now has a beautfier extension, thanks to Soroush Dalili,
- Netbeans jsbeautify plugin by Drew Hamlett (github).
- brackets-beautify-extension for Adobe Brackets by Drew Hamlett (github),
- codecaddy.net, a collection of webdev-related tools, assembled by Darik Hall,
- editey.com, an interesting and free Google-Drive oriented editor uses this beautifier,
- a beautifier plugin for Grunt by Vishal Kadam,
- SynWrite editor has a JsFormat plugin (rar, readme),
- LIVEditor, a live-editing HTML/CSS/JS IDE (commercial, Windows-only) uses the library,
- Doing anything interesting? Write us to team@jsbeautifier.org so we can add your project to the list.
- Written by Einar Lielmanis, maintained and evolved by Liam Newman.
- We use the wonderful CodeMirror syntax highlighting editor, written by Marijn Haverbeke.
- Made with a great help of Jason Diamond, Patrick Hof, Nochum Sossonko, Andreas Schneider,
- Dave Vasilevsky, Vital Batmanov, Ron Baldwin, Gabriel Harrison, Chris J. Shull, Mathias Bynens,
- Vittorio Gambaletta, Stefano Sanfilippo and Daniel Stockman.
- Run the tests
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement