Firefox: Remove dotted border from focused buttons
The following Sass will do the trick:
button,
input[type="reset"],
input[type="button"],
input[type="submit"],
input[type="file"] > input[type="button"]
&::-moz-focus-inner
border: none
There's also a plain CSS version Show archive.org snapshot .
Note that you can no longer visually navigate through a form with the keyboard without these borders.
Related cards:
PostgreSQL: How to add/remove/modify array values (and how to replace 1 value with multiple values)
PostgreSQL's array data type is pretty useful, but manipulating values of arrays can be awkward because of its syntax.
Consider the following users
table which each example below will sta...
Implementing upload progress and remove button with ActiveStorage DirectUpload
DirectUpload allows you to upload files to your file storage without having to wait for the form to submit. It creates AJAX requests to persist the file within your form and wraps them in a little API. This card will show you how to use it in orde...
Directly search makandra notes from the Firefox address bar
The speed searching for makandra notes in Firefox can be improved by following these steps:
- Download the Firefox-Add-on ["Add to Search Bar"](https://web.archive.org/web/20181102012952/https://addons.mozilla.org/en-US/firefox/addon/add-to-sear...
jQuery: How to remove classes from elements using a regular expression
jQuery's removeClass
removes the given class string from an element collection. If you want to remove multiple/unknown classes matching a given pattern, you can do that.
For example, consider a DOM node for the following HTML. We'll reference i...
Remove URLs from the Google index
Obviously, you only can do this for your own sites.
You need to authenticate a domain you want to remove content from via Webmaster Tools.
To remove a URL:
- Open Webmaster Tools
- Select t...
Rails: Remove Blank Values from Collections
tl;dr
Since Rails
6.1+
you can use.compact_blank
or.compact_blank!
to remove blank values from collections (e.g. arrays).
Remove nil
values from an array
['foo', nil].compact
# => ['foo']
# You can use the splat o...
Mac OS: Remove app from Launchpad
Issue this command:
sqlite3 ~/Library/Application\ Support/Dock/*.db "DELETE from apps WHERE title='APP_NAME';" && killall Dock
This tells sqlite3
to remove the app called APP_NAME
from the Launchpad database and then kill the process ca...
Restangular: How to remove an element from a collection without breaking restangular
So you have a restangular collection and you want to remove an element from it, after you've successfully deleted it from the server.
The README [suggests](https://github.com/mgonto/restangular#how-do-i-ha...
Rbenv: How to remove a gem installed from a Github source
Normally you can list all gems of the current ruby version with gem list
, which also includes the gems of you Gemfile
. These can be uninstalled with gem uninstall gemname
.
List and uninstall a gem installed via Bundler from Github
This d...
Prevent your Firefox from auto-updating
Note that if you plan to freeze your Firefox versions because your Selenium tests break whenever Firefox updates, [there is a better way that lets you keep an up-to-date Firefox](https://makandracards.com/makandra/1575-how-to-install-an-frozen-ver...