144 Comments
- treyd, on 10/12/2007, -5/+233treyd is stupid.
EDIT: Quit screwing with my comment guys! - TNHitokiri, on 10/12/2007, -4/+79http://img224.imageshack.us/img224/815/picture33xi.png
discrete but handy! - saikhan, on 10/12/2007, -1/+72I wish I had this when I was in high school... I would never have to worry about online report cards again. Now that I'm in college, the only person I’d be fooling would be myself.
- InsaneMachine, on 10/12/2007, -7/+68and please block stupidppl, that way his account will be banned
- McZiggz, on 10/12/2007, -2/+37Between this & the Mac's control+option+command+8 (color invert) i could have convinced SO many kids i was a hacker in high school
- utcursch, on 10/12/2007, -0/+34Strictly for those who are interested in how it works:
contentEditable is an IE5.5+ block level attribute that allows editing HTML in the browser:
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/contenteditable.asp
The attribute led to a flamewar at Mozilla, when somebody filed a "But it works in IE!" bug. Some people said that contentEditable was not a W3C standard and there was no need to implement it. Others argued that if Mozilla wants to a viable alternative, it needs to support a number of Microsoft features. Here is the bugzilla entry:
https://bugzilla.mozilla.org/show_bug.cgi?id=97284
Opera and Firefox don't use contentEditable. They use a related attribute called designMode
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/designmode.asp
Mozilla 1.3b+
http://www.mozilla.org/editor/ie2midas.html
Opera 9.0TP1+:
http://operawiki.info/TextAreaEditor
Safari 1.3 introduced contentEditable:
http://weblogs.mozillazine.org/hyatt/archives/2005_04.html#007962
Here is a w3.org discussion
http://lists.w3.org/Archives/Public/www-html/2001Dec/0064.html - mrfreeziexp, on 10/12/2007, -5/+36Finally! I can exact my revenge on youtube. Bwaha!
- zephc, on 10/12/2007, -1/+24Bwahaha http://i10.tinypic.com/2nitnae.png
- nzknzknzk, on 10/12/2007, -0/+21Well that or, you know, using Adblock?
- Bigbro69, on 10/12/2007, -2/+221. Why gif?
2. Why block your bookmarks?
3. No adblock?
4. Lol nub. - kickarse, on 10/12/2007, -0/+17This'll be great for those online NDAs or Agreement forms...
- Agret, on 10/12/2007, -0/+17no you're not, you're just editing the version displayed in your browser. your local cache won't be modified.
- inactive, on 10/12/2007, -1/+17now it's time to go ***** with peoples myspace pages and e-mail them a print screen!! : )
- consonance, on 10/12/2007, -1/+17Javascript + Apple.com + Photoshop = The next new iPod?
- appleswitch, on 10/12/2007, -3/+1729666? Why stop there?
http://www.imgdumb.com/images/847711diggs.png - BadassCheese, on 10/12/2007, -2/+16Why block your bookmarks? Do you have that many porn links?
- crimson117, on 10/12/2007, -3/+13Sweet! of course... you're only editing the local copy downloaded to your computer... but that's still freaking sweet!
- Spazkake, on 10/12/2007, -1/+11For some reason after doing this on digg I get some error like, can't find the link at /res/[xp connect etc... when clicking random links. Help?
- kazuhima, on 10/12/2007, -0/+9time to get myself a $50 ipod using price matching..
jussa kidding! - dreamlayers, on 10/12/2007, -0/+9The problem with the image rotation code seems to be that it doesn't give units. Here is a changed version which works on all sites in Firefox 2.0. Note that it doesn't affect background images, including background images in tables, so not all images move.
javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0); - inactive, on 10/12/2007, -1/+9yay I've been waiting for a firefox extension to do something like this forever... I've always wanted to clean things up before printing them and I used to have to use notepad!
- PimpinOnWelfare, on 10/12/2007, -1/+9Is it just me or when you click directly on the comments link to this story on the frontpage you get an error but when you tab it, its fine.
- markdr123, on 10/12/2007, -0/+8Woo, a swarm of flying red and green hands!
- blueigloo, on 10/12/2007, -2/+10What no Adblock? This makes you very not leet sir.
- geekitechture, on 10/12/2007, -0/+7"Fake articles?"
Let's see: real website with real javascript and real results. What constitutes *real* if this is fake?
Now if someone could write a program to prevent *you* from appearing they could really make a fortune. - saikhan, on 10/12/2007, -1/+7^But didn't it always print out on the bottom as 'C:Documents and Settings_____My Documents' or wherever you saved it?
This is way more efficient becuase my parents would have caught that in a snap. - dak1486, on 10/12/2007, -0/+6lots of fun. can confuse people walking by :)
- geekitechture, on 10/12/2007, -0/+6Don't forget you can edit your OWN website with it too, save the changes as .html and/or .css, and also edit articles online if you don't feel like opening a text editor and previewing every time you think of changes you could make (you still have to save changes into Notepad or an online text editor and republish, but the javascript lets you fool around with changes when you don't feel like "committing").
- fillup07, on 10/12/2007, -0/+6FireBug lets you edit html and css inline. So does Web Developer.
- NMVK, on 10/12/2007, -1/+7whitehouse.gov *grin*
- arrenlex, on 10/12/2007, -1/+6Finally! A way to edit Wikipedia that wasn't pulled out of someone's ass!
- kyhx, on 10/12/2007, -3/+8haha im drunk woooo.,, js rules
- PsycoMonkey, on 10/12/2007, -0/+5im probably gonna get dugg down but...n00b question. How do I save my changes?
EDIT: -_- next time I should refresh the page after having it open for a few minutes - Phipman, on 10/12/2007, -1/+6Nice! I love stuff like this...
Time to mess with teh internet! - teh_toaster, on 10/12/2007, -0/+4In Firefox just close the tab you originally ran the js on.
- matija, on 10/12/2007, -0/+4now if we could also turn off annoying CAPS!
- 7of7, on 10/12/2007, -0/+4Just restart Firefox.
- geekitechture, on 10/12/2007, -1/+5It's been answered several times. For the absolute noobs, click "File," then click "Save," or "Save As," and type a name for the page that ends in a .html extension.
For example:
hackedgoogle.html
Use "Save HTML" instead if your browser has that option. Type a name for it and the .html extension will be added automatically. - enog, on 10/12/2007, -1/+5javascript:document.body.contentEditable='true'; document.designMode='off'; void 0
- EtherealPurple, on 10/12/2007, -0/+4Yeah, the same thing happened to me, but then I restarted my browser (Firefox, naturally), and it just went back to normal.
- freddo, on 10/12/2007, -0/+3You might also want to have a look at http://karmatics.com/aardvark/
It's really handy to delete stuff before printing. - Sil369, on 10/12/2007, -4/+7Btw, for Opera users, paste the command, then drag the address bar icon to your interface to create a button shortcut for this command. :)
- dtfinch, on 10/12/2007, -0/+3I've added it to my bookmarks toolbar, and it didn't mind that it was a javascript: url. One click editing, without it showing up in the address bar. :)
- pornel, on 10/12/2007, -0/+3If you want non-visual editing, you can View Source in Opera 9, change the code, click Apply changes button, and voila!
- mwdcodeninja, on 10/12/2007, -0/+3ok, honestly tho, their might be a serious application for this. If you fetch your newly edited content, then you could use ajax to save that off to the server and you have a quick and dirty CMS system.
Except for not having any HTML insertion capabilities... this could be a great little hack. - NtroP, on 10/12/2007, -0/+3This is going to be VERY useful for deleting those distracting adds that jump and flash at you while you're trying to read something. Yeah, I know: Firefox, ad-block, flashgot... etc. but I'm beta testing Safari 3 and I don't have that option for it.
- technicalabuse, on 10/12/2007, -0/+3This just reminds me how much I appreciate Firefox + the Web Developer toolbar plugin
http://chrispederick.com/work/webdeveloper/ - DardanAeneas, on 10/12/2007, -0/+2Sorry about the double post. Also, change the bookmarklet properties and make the keyword 'edit' Then, whenever you type edit into the address bar, it runs.
- geekitechture, on 10/12/2007, -0/+2Just save as .html.
- kpax, on 10/12/2007, -0/+2I am surprised that inspite of being this easy, there's no extension for IE that can reliably block ads. I am sure some developer somwhere can work out an extension to use this and block those freakin' ads.
-
Show 51 - 100 of 136 discussions



What is Digg?