📜 ⬆️ ⬇️

Pastemark: do not repeat yourself

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:

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:
  1. Add it to your bookmarks
  2. Go to the landing page
  3. Activate bookmarklet
  4. Click on the target field
  5. The Pastemark site opens with the settings already selected, where they can be adjusted.
  6. Generate a bookmarklet and add it to your bookmarks.

What is the advantage?



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.

Source: https://habr.com/ru/post/114042/


All Articles