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
| <!DOCTYPE html> | |
| <html> | |
| <body> | |
| <script> | |
| /* | |
| function Animal() {} | |
| var b = new Animal; |
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
| //from ff privelage scope | |
| Services.appShell.hiddenDOMWindow.console | |
| //from non-priv scope just do console.log or console.ingo | |
| //docs here: https://developer.mozilla.org/en-US/docs/Web/API/console.info | |
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
| //dummy just see the description | |
| //i had one question, on the final page of the prototype tut (4th page) | |
| //create dummy object | |
| function dummy(){ | |
| } | |
| //Create custom property | |
| function dummyproperty(){ | |
| } |
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 takeToTabTheCurViewVar() { //whatever var is currently showing is printed to tab | |
| var opts = { | |
| title: 'inaugral', | |
| maxDepth: 0, | |
| varName: 'window' | |
| }; | |
| var me = Services.wm.getMostRecentWindow(null); | |
| var console = Services.appShell.hiddenDOMWindow.console; | |
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
| in chrome | |
| -the class sicial_icons is blocked by adblock | |
| -on refresh or tab dupe the form doent remember | |
| contact: | |
| 5px padding on boxes is making it exceed form width, one soln is to set width to 300px (right now is 100%) | |
| _ig-commit - 3/3/14 | |
| fixed form |
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
| var doc = document; //to put this back in sdk do const doc = require('sdk/window/utils').getMostRecentBrowserWindow().document; | |
| var navBar = doc.getElementById('nav-bar') | |
| var btn = doc.createElement('toolbarbutton'); | |
| btn.setAttribute('id', 'hylytit'); | |
| btn.setAttribute('type', 'menu-button'); | |
| btn.setAttribute('class', 'toolbarbutton-1'); | |
| btn.setAttribute('image', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAPCAYAAADtc08vAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA |
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
| var doc = gBrowser.contentDocument; | |
| var ctrler = _getSelectionController(doc.defaultView); | |
| var searchRange = doc.createRange(); | |
| searchRange.selectNodeContents(doc.documentElement); | |
| let startPt = searchRange.cloneRange(); | |
| startPt.collapse(true); | |
| let endPt = searchRange.cloneRange(); |
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
| const {classes: Cc, interfaces: Ci, utils: Cu} = Components; | |
| const self = { | |
| id: 'HilteOnSelection', | |
| suffix: '@jetpack', | |
| path: 'chrome://hiliteonselection/content/', | |
| aData: 0, | |
| }; | |
| const myServices = {}; | |
| Cu.import('resource://gre/modules/Services.jsm'); |
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
| @keyframes nodeInserted { | |
| from { | |
| outline-color: #fff; | |
| } | |
| to { | |
| outline-color: #000; | |
| } | |
| } | |
| div.some-control { |