Coder Social home page Coder Social logo

custom_buttons's People

Contributors

galedrag avatar infocatcher avatar sdavidg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

custom_buttons's Issues

Проблема с autocomplete в CSS

При редактировании CSS кода он даёт подсказки (верные, за это - спасибо), но окно подсказок "застывает", занимая более 3/4 окна всего редактора, оставляя узкую полоску для редактирования и никаким образом не хочет уходить.

[Cookies/Plugins Permissions] Doesn't work in Firefox 71+ due to removed URI-based APIs like nsIPermissionManager.testPermission()

https://bugzilla.mozilla.org/show_bug.cgi?id=1402957
Remove permission manager APIs that only accept a URI

https://dxr.mozilla.org/mozilla-central/source/netwerk/base/nsIPermissionManager.idl

  /**
   * Test whether the principal has the permission to perform a given action.
   * System principals will always have permissions granted.
   * This function will perform a pref lookup to permissions.default.<type>
   * if the specific permission type is part of the whitelist for that functionality.
   */
  uint32_t testPermissionFromPrincipal(in nsIPrincipal principal,
                                       in ACString type);

Something from attached patches:

let principal = Services.scriptSecurityManager.createContentPrincipalFromOrigin("https://example.com");

let uri = Services.io.newURI("https://example.com", null, null);
let principal = Services.scriptSecurityManager.createContentPrincipal(uri, {});

[Check for Addons Updates] Add Thunderbird support

Hello Infocatcher,

I have installed your custom button "check for addons updates" in Thunderbird (v.31beta), it appears in Thb but it don't work at all.
Thanks a lot to make this CB compatible with THB.
Have a nice DAY !!!!

Localizations may not work on Linux

See https://forum.mozilla-russia.org/viewtopic.php?id=54385

So we should use

Components.classes["@mozilla.org/chrome/chrome-registry;1"]
    .getService(Components.interfaces.nsIXULChromeRegistry)
    .getSelectedLocale("global");

or

Components.classes["@mozilla.org/preferences-service;1"]
    .getService(Components.interfaces.nsIPrefBranch)
    .getComplexValue("general.useragent.locale", Components.interfaces.nsIPrefLocalizedString)
    .data;

But with getSelectedLocale() we need to have installed language pack to test localization (or change code each time).

[Orion Editor] Doesn't work since Firefox 27.0a1 (2013-09-24)

https://bugzilla.mozilla.org/show_bug.cgi?id=816756
See chrome://browser/content/devtools/scratchpad.js
Old:

Cu.import("resource:///modules/source-editor.jsm");
    this.editor = new SourceEditor();

    let config = {
      mode: SourceEditor.MODES.JAVASCRIPT,
      showLineNumbers: true,
      initialText: initialText,
      contextMenu: "scratchpad-text-popup",
    };

    let editorPlaceholder = document.getElementById("scratchpad-editor");
    this.editor.init(editorPlaceholder, config,
                     this._onEditorLoad.bind(this, state));

New:

const require   = Cu.import("resource://gre/modules/devtools/Loader.jsm", {}).devtools.require;
// ...
const Editor    = require("devtools/sourceeditor/editor");
    this.editor = new Editor({
      mode: Editor.modes.js,
      value: initialText,
      lineNumbers: true,
      contextMenu: "scratchpad-text-popup"
    });

    this.editor.appendTo(document.querySelector("#scratchpad-editor")).then(() => {
      var lines = initialText.split("\n");

      this.editor.on("change", this._onChanged);
      this.editor.focus();
      this.editor.setCursor({ line: lines.length, ch: lines.pop().length });

      if (state)
        this.dirty = !state.saved;

      this.initialized = true;
      this._triggerObservers("Ready");
      this.populateRecentFilesMenu();
      PreferenceObserver.init();
    }).then(null, (err) => console.log(err.message));

Also seems like this isn't Eclipse Orion anymore:
resource:///modules/devtools/sourceeditor/editor.js

/**
 * A very thin wrapper around CodeMirror. [...]
 * CodeMirror docs: http://codemirror.net/doc/manual.html
 */

0.1.2pre13 блокирует открытие ссылки в новой вкладке колёсиком

extDevTools.js — код в строках 375-387 блокирует стандартный функционал Firefox - открытие ссылки в новой вкладке кликом средней кнопки мыши:
addEventListener("command", function(e) { // Prevent middle-click commands in Firefox 89+…

Моя система — Arch Linux, версия Firefox 88.0.1

[meta] Application.* API will be removed

See https://bugzilla.mozilla.org/show_bug.cgi?id=1090880

  • Bookmarks Folder

    Application.prefs.getValue()/setValue()

    Application.name
  • Custom Buttons Editor: Toggle on Top

    Application.storage.get()/set()
  • Source Editor

    Application.storage.get()/set()
  • Cookies Permissions

    Application.storage.get()/set()
  • Extensions Developer Tools

    Application.restart()

    Application.quit()
  • Extensions Installer

    Application.restart()
  • Toggle Flash

    Application.prefs.getValue()
  • Toggle Restartless Add-ons

    Application.prefs.getValue()

[Purge tabs history] Stopped working, returns errors

TypeError: setWindowValue only accepts string values SessionStore.jsm:1770:0
NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "setWindowValue only accepts string values" {file: "resource:///modules/sessionstore/SessionStore.jsm" line: 1770}]'[JavaScript Error: "setWindowValue only accepts string values" {file: "resource:///modules/sessionstore/SessionStore.jsm" line: 1770}]' when calling method: [nsISessionStore::setWindowValue] button.js:136:0

Check_for_Addons_Updates is broken (minor)

The script fails to detect the newly installed updates when the "Update Add-ons Automatically" option is checked.
The problem is, your script is trying to find "updates-manualUpdatesFound-btn", but since it never shows up, it keeps looping indefinitely.

My suggestion is, could add a popup that notifies the user about the updates that has just been installed?

Thanks.

Edit: I've just made a pull request. Closing this issue.

Check for Addons Updates bug

Starting from FF 41 sometimes button checking updates forever (circle icon rolls and never stops) I'm using version 0.1.5 - 2014-10-13.
I reverted it to version 40 and never experienced such problem. So it can't be related a conflict with other add-ons. Please restart FF before take another test.

[meta] Loading animation broken in Firefox 32+

Affected:

We use
chrome://browser/skin/tabbrowser/connecting.png
chrome://browser/skin/tabbrowser/loading.png
that aren't animated anymore, see chrome://browser/skin/browser.css

@keyframes throbber-loading {
  to {
    transform: rotate(360deg);
  }
}

@keyframes throbber-connecting {
  from {
    transform: rotate(360deg);
  }
}

.tab-throbber[busy] {
  list-style-image: url("chrome://browser/skin/tabbrowser/connecting.png");
  animation-duration: 960ms;
  animation-iteration-count: infinite;
  animation-name: throbber-connecting;
  animation-timing-function: linear;
}

.tab-throbber[progress] {
  list-style-image: url("chrome://browser/skin/tabbrowser/loading.png");
  animation-duration: 800ms;
  animation-name: throbber-loading;
}

Or we can use alternative: chrome://global/skin/icons/loading_16.png

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.