Advertising words: are you still for the holiday is approaching hand no work, but no fish and distress? Are you getting your requirements done early but suffering from not having the heart to develop new ones early? Do you want to see the rest of your code but fear your leader will blink behind you?
Don’t worry.
Write a small plug-in to help you easily camouflage the page into the editor style, the leader standing behind you also have plenty of time to cut away. (funny
In fact, a blogger @mondo wrote a post “How I developed the first Chrome plugin” and found that it is really easy to make a plugin. So I plan to take the regular visit to the zhihu surgery practice hand.
Look at the effect
How to implement
According to the tutorial above, first to Google website download a demo. The directory structure is as follows (if you don’t have that many downloads, just create a new file) :
You only need to see the specific configuration./manifest.json
Ok, we only need to modify the following item:
It refers to the url of the re match, the valid CSS and JS file.
To test this, typing in CSS /mystyles.css affects the code displayed on the page:
Then, go to Settings – Extensions in Google Chrome, select “Load unzipped extensions” and select the root directory of the code you just downloaded.
The little icon you added will appear in the plugins bar
Then open some, the small icon becomes color.
Success! If you don’t succeed, call me.
The test code
According to this method, you can hide all the ads, pictures and so on that you don’t like. As well as the implementation of some JS functions. Attached I used to test the project, if there is a good magic suggestions, you can comment on the message ~
👉 widgets
Finally, I wish everyone a New Year Daniel. (the holiday!