This file contains hidden or 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
| (function(d) { | |
| var dl = d.createElement('a'); | |
| dl.innerText = 'Download MP3'; | |
| dl.href = "http://media.soundcloud.com/stream/"+d.querySelector('#main-content-inner img[class=waveform]').src.match(/\.com\/(.+)\_/)[1]; | |
| dl.download = d.querySelector('em').innerText+".mp3"; | |
| d.querySelector('.primary').appendChild(dl); | |
| dl.style.marginLeft = '10px'; | |
| dl.style.color = 'red'; | |
| dl.style.fontWeight = 700; | |
| })(document); |
This file contains hidden or 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 PopupBookmarkToolbar.uc.js | |
| // @namespace http://d.hatena.ne.jp/Griever/ | |
| // @include main | |
| // @version 0.0.3 | |
| // ==/UserScript== | |
| (function(){ | |
| var mode = 'icons'; // 'icons', 'text' or 'full' | |
| var size = 'small'; // 'small' or 'large' | |
| // array of toolbar item id, 'separator', 'spring' and 'spacer'. |
This file contains hidden or 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 ChromeStyle_Statusbar.uc.js | |
| // @namespace http://d.hatena.ne.jp/Griever/ | |
| // @include main | |
| // ==/UserScript== | |
| gBrowser.addEventListener("TabSelect", function(event){ | |
| var statusbar = document.getElementById("status-bar"); | |
| statusbar.hidden = true; | |
| setTimeout(function(){ |
This file contains hidden or 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
| ;;; Copy or Paste using one and the same key ("C-c c") | |
| (defun copy-or-paste () | |
| "Copy when there are selected text, paste otherwise." | |
| (interactive) | |
| (if (region-active-p) | |
| (copy-region-as-kill (region-beginning) ; Copy | |
| (region-end)) | |
| ;; TODO: deactive mark/region | |
| ;; Paste |
This file contains hidden or 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
| ;;; Copy or Paste using one and the same key ("C-c c") | |
| (defun copy-or-paste () | |
| "Copy when there are selected text, paste otherwise." | |
| (interactive) | |
| (if (region-active-p) | |
| (copy-region-as-kill (region-beginning) ; Copy | |
| (region-end)) | |
| ;; TODO: deactive mark/region | |
| ;; Paste |
This file contains hidden or 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
| ;;; Copy or Paste using one and the same key ("C-c c") | |
| (defun copy-or-paste () | |
| "Copy when there are selected text, paste otherwise." | |
| (interactive) | |
| (if (region-active-p) | |
| (copy-region-as-kill (region-beginning) ; Copy | |
| (region-end)) | |
| ;; TODO: deactive mark/region | |
| ;; Paste |
This file contains hidden or 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
| #c:: | |
| if (Clipboard <> ""){ | |
| Send ^v | |
| Clipboard :="" | |
| } else { | |
| Send ^c | |
| } | |
| Return |
NewerOlder