Probably, many of us have to regularly type texts of the same type: reports, notifications and the like. And at some point it starts to tire. As you probably guessed, in this topic I want to present to the public the owl a solution to this problem.
Do not repeat yourself
This problem suggests a simple solution: instead of repeatedly typing, you need to make a template once, and then substitute it every time.
Pastemark is a simple service for making bookmarklets that substitute the prepared text in the field you need. From this, by the way, the only limitation of the field of applicability follows - the web browser.
How it works?
In the process of creating a bookmarklet, you will be asked to set three things: the name of the future bookmarklet, the text to be substituted, and the way to identify the target form field. At the last point, I will discuss a little more.
')
You have three ways to set the target field:
- By item id. The most successful option, because due to the uniqueness of the id on the page, the template will be inserted in the field in which you want.
- By the name of the field. This option is slightly worse, because in principle there can be more than one field with the same name. In this case, the text will be inserted into all such fields. However, this does not happen very often, so the option is quite applicable.
- By click. Backup option in case the site developers managed to make the field well, quite unremarkable. You will have to click on the desired field every time you insert it, but it’s still better than typing the whole text.
At first glance, the task setting procedure seems rather troublesome, and for a person with html who is not familiar and an insurmountable obstacle. But in this case, I have a solution.
Autotune
I wrote another bookmarklet with the proud name “Pastemark fast!”, Which helps you to go through the entire setup procedure as quickly as possible. It’s easier to use it:
- Add it to your bookmarks
- Go to the landing page
- Activate bookmarklet
- Click on the target field
- The Pastemark site opens with the settings already selected, where they can be adjusted.
- Generate a bookmarklet and add it to your bookmarks.
What is the advantage?
- Your preparations are always at hand - in bookmarks
- You can use the Pastemark service regardless of your OS. I even checked it on my iPhone and it worked.
- Your workpieces are always with you, on any device. With the help of synchronization services of bookmarks like Xmarks, you will get your blanks even on your own phone.
What is under the hood?
The site itself is made solely on HTML, CSS and JavaScript - nothing server is necessary for it, in principle. To simplify life when creating a site, I used JQuery and Blueprint CSS Framework. Moreover, the curious can freely familiarize themselves with the code of all the scripts and make sure that they are not threatened by your privacy ;-)
In my opinion, the method of bookmarklet generation used on the site deserves a little more attention. Its main advantages are that it allows you to firstly write code in a convenient form, without wasting time on reformatting in a javascript-URL, as well as parametrizing them. I described this method
in detail
on my blog .
Where to go?
At the moment, Pastemark meets all my needs. I have already corrected all the bugs I have noticed myself. Therefore, I want to listen to your wishes and criticism and take it into account as best I can.
PS I can’t imagine which blog to publish, so I’ll rely on your advice.
UPD. I decided to move all the same to the blog GTD. I find nothing more suitable.