This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AppKit | |
extension NSAttributedString { | |
class func hyperlinkFromString(aString: String, withURL url: NSURL) -> NSAttributedString { | |
let attrString = NSMutableAttributedString(string: aString) | |
let range = NSMakeRange(0, attrString.length) | |
attrString.beginEditing() | |
attrString.addAttribute(NSLinkAttributeName, value: url.absoluteString, range: range) | |
attrString.addAttribute(NSForegroundColorAttributeName, value: NSColor.blueColor(), range: range) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Twitterflow | |
// @description Automatically loads new tweets | |
// @include https://twitter.com/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
// @version 1.0 | |
// @license GPL v3 or any later version (http://www.gnu.org/copyleft/gpl.html) | |
// @grant GM_addStyle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name අපෙ හාමුදුරුවනේ | |
// @include https://twitter.com/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
// @grant GM_addStyle | |
// @icon https://pbs.twimg.com/profile_images/541867053351583744/rcxem8NU_400x400.jpeg | |
// @noframes | |
// ==/UserScript== |
NewerOlder