generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: userscript to indent code in posts

Previous Thread :: Next Thread 
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
22 Nov 2014 02:49 AM
ive only tested it a little with lua and javascript/jquery
i know it doesnt indent the .css line near the bottom but if you want it to do that, its an easy fix

some oldish benchmarks tested on 5-8 posts that included code. should still be under 2 ms
100 iterations
Mean: 1.81 ms
Mean: 1.71 ms
Mean: 1.79 ms
Mean: 1.74 ms
Mean: 1.76 ms
Mean: 1.77 ms
Mean: 1.77 ms
Mean: 1.79 ms

pbin /A6tGSswu
expires in 1 month

im going to bump this thread every day
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
22 Nov 2014 02:51 AM
do u think i should repost my old guide and bump it too
Report Abuse
AbdulsEbola is not online. AbdulsEbola
Joined: 24 Oct 2011
Total Posts: 9677
22 Nov 2014 05:58 AM
"im going to bump this thread every day"

-______________________________________-
Report Abuse
Argelius is not online. Argelius
Joined: 19 Jul 2010
Total Posts: 4047
22 Nov 2014 08:48 AM
put your guide on this thread
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
22 Nov 2014 12:54 PM
day 1
BUMP!
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
22 Nov 2014 01:03 PM
updated:
/PcrXEkhn
Report Abuse
Argelius is not online. Argelius
Joined: 19 Jul 2010
Total Posts: 4047
22 Nov 2014 01:30 PM
can I just put it in tampermonkey or what
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
22 Nov 2014 01:37 PM
yeah if u click new user script, there should be a user script from clipboard button or maybe tampermonkey doesnt have that
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
22 Nov 2014 01:53 PM
Ran it in chrome console and got
"Uncaught TypeError: undefined is not a function"
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
22 Nov 2014 01:54 PM
you know there's a better way:

element.innerHTML = element.innerHTML.replace(/ (?![^ ])/gi, ' ').replace(/  /gi, '  ');
element.innerText = element.innerText.replace(/\n/gi, '\n\n');

then just let people indent code themselves like they **should be doing**
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
22 Nov 2014 01:59 PM
lord it needs to be a userscript

digpoe it formats code in posts because roblox wont update the forum
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
22 Nov 2014 05:07 PM
GOOD NEWS
ive wondered for a long time y i have to upload data each time I play solo

they're sending the same data probably hundreds of times
go figure

RBXSource=rbx_acquisition_time=11/13/2014 5:15:08 PM&
rbx_acquisition_referrer=&
rbx_medium=Direct&
rbx_source=&
rbx_campaign=&
rbx_adgroup=&
rbx_keyword=&
rbx_matchtype=&
rbx_send_info=0; RBX-MCf=removed; RBXViralAcquisition=time=11/17/2014 1:34:00 PM
&referrer=&
originatingsite=; GuestData=UserID=removed; RBXMarketing=FirstHomePageVisit=1; rbx-ip=; RobloLang=language=&
country=; __RequestVerificationToken=removed


tested on an empty place with just a baseplate

play solo:
Sent------Received
1,985-----3,192
572-------521
1,430-----1,270
1,144-----1,015
858-------762
858-------762
858-------762
858-------764
858-------761
572-------508
858-------762
858-------762
1,144-----1,016
15,086----12,880
15,927----13,231
1,987-----3,192
1,144-----1,016

reset:
Sent------Received
1,639-----2,660
985-------1,596

run:
Sent------Received
1,977-----3,192
1,993-----3,192
5,485-----3,968
6,136-----4,464
572-------508
572-------508
858-------762
572-------508
286-------253
286-------254
858-------762
286-------254
286-------254
286-------267

cant even test games without my internet getting throttled
ive never seen a company try so hard to make people leave
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
23 Nov 2014 03:30 AM
nobody knows my pain :(
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
23 Nov 2014 01:30 PM
does anyone like my new hat
Report Abuse
DeviousDeviation is not online. DeviousDeviation
Joined: 28 Dec 2010
Total Posts: 9306
23 Nov 2014 02:06 PM
bae, ur new hat is mazing

guise i have a siggy
Report Abuse
Argelius is not online. Argelius
Joined: 19 Jul 2010
Total Posts: 4047
23 Nov 2014 02:44 PM
hot hat
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
23 Nov 2014 08:54 PM
BUMP
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
24 Nov 2014 11:36 AM
bump
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
24 Nov 2014 06:53 PM
bump
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
25 Nov 2014 05:09 AM
bump
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
25 Nov 2014 03:35 PM
bump
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
25 Nov 2014 10:17 PM
bump
Report Abuse
AngryAcolition is not online. AngryAcolition
Joined: 06 Apr 2013
Total Posts: 68
25 Nov 2014 10:34 PM
reporting for spam
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
25 Nov 2014 10:39 PM
Go ahead kid mods don't care
Report Abuse
Argelius is not online. Argelius
Joined: 19 Jul 2010
Total Posts: 4047
26 Nov 2014 09:58 AM
what mods
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image