These are the filters:
facebook.com###stream_pagelet
facebook.com###pagelet_ego_pane
| define [ | |
| 'jquery' | |
| 'underscore' | |
| 'backbone' | |
| ], ($, _, Backbone) -> | |
| class UmaClasseView extends Backbone.View | |
| initialize: -> | |
| @outraClasseView = new OutraClasseView() |
| waitForKeyElements("div.subDiv", suaFuncaoDesejada); |
| # Obtêm a moda (o número que mais se repete) de um array de números. | |
| Array::mode = -> | |
| # as result can be bimodal or multimodal, | |
| # the returned result is provided as an array | |
| # mode of [3, 5, 4, 4, 1, 1, 2, 3] = [1, 3, 4] | |
| modes = [] | |
| count = [] | |
| i = undefined | |
| number = undefined | |
| maxIndex = 0 |
| require('events').on('all',function(){console.log(arguments)}); |
| ###* | |
| * Detecta quando um elemento selecionado (não-folha na DOM) que está sofrendo | |
| * overflow está sendo rolado até o fim (ou próximo dele). | |
| * Serve para fazer rolagem infinita, sendo este plugin ideal de ser chamado | |
| * dentro de callbacks de eventos do tipo "scroll" neste mesmo seletor. | |
| * | |
| * Ele faz isso comparando a posição atual do scroll do elemento selecionado | |
| * com a altura do elemento filho, juntamente com a diferença entre as alturas | |
| * dele mesmo e de seu elemento filho e com um valor arbitrário mínimo para | |
| * denominar um elemento como um que está sendo rolado próximo ao fim. |
| // Oscila latencia para simular conexão com internet | |
| var min = 500; | |
| var max = 5000; | |
| var changeTime = 2000; | |
| var log = true; | |
| window.setInterval( | |
| function(){ | |
| window.latencia = Math.random() * (max - min) + min; |
| function remainingDays (finalDate) { | |
| return Math.floor((finalDate - Date.now()) / (1000*60*60*24)) + 1; | |
| } |
Fonte: https://www.aprenderexcel.com.br/2016/tutoriais/criando-atalho-para-mesclar-e-centralizar
| ; Press Ctrl+Shift+Space to set any currently active window to be always on top. | |
| ; Press Ctrl+Shift+Space again set the window to no longer be always on top. | |
| ; Source: https://www.howtogeek.com/196958/the-3-best-ways-to-make-a-window-always-on-top-on-windows | |
| ^+SPACE:: | |
| WinGetTitle, activeWindow, A | |
| if IsWindowAlwaysOnTop(activeWindow) { | |
| notificationMessage := "The window """ . activeWindow . """ is now always on top." | |
| notificationIcon := 16 + 1 ; No notification sound (16) + Info icon (1) | |
| } |