BEYN

Firefox ile not almayı keşfettim! (How To Take Notes With Firefox)

(English version below)

Geçenlerde bulunduğunuz sayfayı dilediğiniz gibi düzenleyebilmenize yarayan bir JavaScript kodu buldum:

javascript:document.body.contentEditable='true'; document.designMode='on'; void 0

Bulunduğunuz sayfadan ayrılmadan bu kodu adres çubuğuna yapıştırıp çalıştırdığınızda sayfayı dilediğiniz gibi düzenleyebiliyorsunuz. Deneyin şimdi mesela :)

Neyse efendim, ben bunu sık kullanılanlara ekleyip sitelerle kendi kendime dalga geçerken az önce, "Yav ben bunu boş bir sayfada yapsam nasıl olur?" diye düşündüm, ve Ctrl+T vasıtasıyla yeni bir sekme açıp kodu girdim. Enter'a basınca istediğim şeyi yazabileceğim, bomboş bir sayfam oldu!

Sayfayı Ctrl+S ile kaydedebiliyordum ayrıca. İçerik.htm şeklinde kaydedebildiğim dosyayı açınca şok oldum: Yazdığım yazı duruyordu yerinde! Yemin ederim kaldırma kuvvetini bulmuş kadar sevindim. İyi ki giysilerim üzerimdeydi yani.

Aynı denemeyi Internet Explorer ile yapmaya kalkınca, sonucu zaten biliyordum gerçi, hüsrana uğradım. Kod çalışıyordu, ama sayfayı kaydettiğimde yazdığım yazı yerinde durmuyordu. Aynı şekilde Opera da başarısız oldu.

Bu arada sayfayı .txt uzantısıyla kaydetmek mümkün değil. Yok yok, mümkün: Kaydetme sırasında uzantıyı silip kaydetme metodunu "Düz Metin Dosyaları" olarak değiştirebilirsiniz. Aksi takdirde sayfa HTML olarak, HTML kodları içinde kaydoluyor.

How To Take Notes With Firefox

Well, I saw this JavaScript code from Digg last week:

javascript:document.body.contentEditable='true'; document.designMode='on'; void 0

I used it in many websites I've been to (just for kicks), but just 15 minutes ago, I thought "What if I use it in a blank page?". I tried it, and it worked as usual. Then I tried to save the page. Incredible: The saved file contained the content I wrote! I dunno the name in English (must be Content.htm), but when I opened Icerik.htm, I saw the stuff I wrote, and believe me, I nearly danced while sitting :D

I'm only talking about Firefox, as you've noticed. That's because this trick is not working with Internet Explorer and Opera.

One more thing: It's not cool to save as an HTML file, I agree. It'd be kwel if we could save as text file - wait! OK, I tried it now, and yes, we can save as a text file, but the HTML codes like body, html still remains in the file. That's bad.

Still, webmasters may find it useful, right?

Last update: You can save it as a text file by deleting the extension and changing the saving method to "Plain Text File"

Note: If you want to comment, click the "Yorum yap" button below this post (left). First field: Name, second field: E-mail (not gonna be published), third field: Your comment.

Digg This
Or Digg This (related)

  • Sah!n

    Helal @Kommix sana varya bence kesin digg’e girersin bu gidişle :D

  • Otto

    Good work and thanks. As you already know, you gave me the idea to make a pop-up notepad.
    http://www.7is7.com/software/bookmarklets/notepad.html

  • Barış Ünver

    @Otto: Yeah, the tool you made is one of the best JavaScript tools I’ve ever seen – even if it looks so simple! Great job, thanks again.

    @Sahin: Girdim bile b’olm, kapı gibi 8 digg’im var (Biri senin hatta?).

  • Tansu

    Vay be küresel bir hareket oldu valla..

  • BOĞAÇ

    ben burada ne oluyorr anlamadımmm

  • Sah!n

    Olm digg özürlüyüz çaktırmaaa :D

  • Otto

    I made another change to it. Now scrollbars appear when needed (can’t believe I forgot that.

  • Barış Ünver

    Cool, checking now.

  • SerkanYerşen

    Bide bunu dene istersen düzenlemek istediğin herhangi bi sayfadayken adresi silip bunu yapıştır

    javascript:eval(“document.body.contentEditable=’true’; document.designMode=’on’; void 0″);

    ondan sonra açılan sayfada istediğin değişikliği yap.
    yanlız o değilde ben neden bunu bloguma yazmıyorumki kıskandım bee. bende yazacam.

Program

  • Google Chrome - Windows: İnternet gezintilerinizi daha hızlı ve güvenli bir şekilde yapabilmeniz için geliştirilen pratik web tarayıcısı Google Chrome, sizlere kolay gezinti s..
  • Nokia Suite - Windows: Nokia cep telefonu kullanıcılarının telefondaki verilerini bilgisayarda yedekleyip senkronize edebilmeleri için hazırlanmış bir uygulama...
  • Freemake Video Downloader - Windows: YouTube, Google, Facebook, Vimeo gibi pek çok siteden video indirmenizi sağlayan Freemake Video Downloader HD desteği ve format dönüştürme seçenekler..
  • Freemake Video Converter - Windows: Freemake Video Converter ücretsiz bir video dönüştürücü olmanın yanında basit işlemler yapabileceğiniz bir editör...
  • Freemake Free Audio Converter - Windows: MP3, WMA, WAV, FLAC, AAC, M4A, OGG gibi tüm popüler ses formatlarını destekleyen yepyeni ve ücretsiz bir format dönüştürücü...
Yazıyı beğendiniz mi? Beğendiyseniz, Beyn'e abone olmak için tıklayın.
KAPAT