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 Skip steamcommunity.com/linkfilter | |
| // @namespace dev/null | |
| // @include https://steamcommunity.com/linkfilter/?url=* | |
| // @version 0.1 | |
| // @run-at document-start | |
| // @grant none | |
| // ==/UserScript== | |
| if(/\?url=(.*)$/.test(location.href)) |
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 uris = { | |
| "http://example.com/": true, | |
| "https://example.com/": true, | |
| "https://example.com/foo/bar.php?key=val&key2=val2#hash": true, | |
| "file:///": true, | |
| "ftp://example.com": true, | |
| //"about:": true, // Removed in new versions | |
| "about:newtab": true, | |
| "about:config": true, | |
| "about:cache?device=memory": true, |
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
| // Turn off extensions signatures in Firefox | |
| // Use at your own risk! | |
| // Usage: | |
| // Start browser with rights to write into his install directory (run as administrator) | |
| // devtools.chrome.enabled = true (in about:config) | |
| // Open Scratchpad: Shift+F4 (Tools - Web-Developer - Scratchpad) | |
| // Set: Environment - Browser | |
| // Then paste following code and press Run, browser will be restarted, than enjoy |
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 getDownloadHistory() { | |
| var query = PlacesUtils.history.getNewQuery(); | |
| query.setTransitions([Components.interfaces.nsINavHistoryService.TRANSITION_DOWNLOAD], 1); | |
| var options = PlacesUtils.history.getNewQueryOptions(); | |
| options.resultType = options.RESULTS_AS_URI; | |
| options.queryType = Components.interfaces.nsINavHistoryQueryOptions.QUERY_TYPE_HISTORY; | |
| options.includeHidden = true; | |
| var result = PlacesUtils.history.executeQuery(query, options); | |
| var contents = result.root; |
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 getVKChar(vk) { | |
| // Firefox doesn't have string representation for some codes... | |
| // https://developer.mozilla.org/en-US/docs/DOM/KeyboardEvent#Virtual_key_codes | |
| if(/^VK_(?:NUMPAD)?([\d+A-Z])$/.test(vk)) | |
| return RegExp.$1; | |
| switch(vk) { | |
| case "VK_SPACE": return " "; //32 | |
| case "VK_COLON": return ":"; //58 | |
| case "VK_SEMICOLON": return ";"; //59 | |
| case "VK_LESS_THAN": return "<"; //60 |
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 about:blank?UserScripts/test | |
| // @namespace dev/null | |
| // @include about:blank?UserScripts/test | |
| // @run-at document-start | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| console.log("test: " + document.readyState); |
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 count = 25; | |
| var delay = 1000; | |
| function leakTestPrototype() { | |
| for(var i = 1; i <= count; ++i) { | |
| var win = window.openDialog(location.href, "", "chrome,all"); | |
| win.addEventListener("load", function loader(e) { | |
| win.removeEventListener(e.type, loader, false); | |
| win.setTimeout(function() { | |
| win.document.documentElement.setAttribute("titlemodifier", "[" + i + "/" + count + "]"); | |
| win.gBrowser.updateTitlebar(); |
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
| @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
| @-moz-document url("chrome://browser/content/browser.xul") { | |
| /* Add icon to pinned private tabs, https://addons.mozilla.org/addon/private-tab/ */ | |
| .tabbrowser-tab[pinned][privateTab-isPrivate] .tab-icon-image { | |
| /* Trick: change binding to break "src" attribute */ | |
| -moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton") !important; | |
| } | |
| .tabbrowser-tab[pinned][privateTab-isPrivate] .tab-icon-image > .toolbarbutton-icon { | |
| list-style-image: url("chrome://browser/skin/Privacy-16.png") !important; |
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
| // https://gist.github.com/Infocatcher/6452231 | |
| // More: https://github.com/Infocatcher/Download_Panel_Tweaker | |
| // (c) Infocatcher 2013 | |
| var retentionDays = 21; | |
| function dontRemoveFinishedDownloads(patch) { | |
| // See https://github.com/Infocatcher/Download_Panel_Tweaker/issues/5 for details | |
| try { // Firefox 26+ | |
| // http://mxr.mozilla.org/mozilla-central/source/toolkit/components/jsdownloads/src/DownloadIntegration.jsm | |
| var {DownloadIntegration} = Components.utils.import("resource://gre/modules/DownloadIntegration.jsm", {}); |
NewerOlder