Skip to content

Instantly share code, notes, and snippets.

clarencesong / todayonline-depaginator.user.js
Created February 6, 2016 17:23
Automatically go to the non-paginated version of a article, if a "single page" link is found on the page.
// ==UserScript==
// @name TODAYonline De-Paginator
// @description Paginating articles for more page views is great for ad impressions, but not cool for readers.
// @version 1.0
// @date 2016-02-07
// @namespace
// @include*
// ==/UserScript==
(function() {
clarencesong /
Last active September 28, 2023 17:03
Enable TRIM in OS X 10.7.5 to 10.9.5

Enable TRIM on non-Apple SSDs in OS X

NOTE: This is tested on the versions mentioned in the title, and NOT earlier or later versions. YMMV.

Run the following commands in Terminal…

Backup the original driver:

sudo cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage-backup