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 InVision-AndroidSkins | |
| // @description InVision-AndroidSkins | |
| // @include https://projects.invisionapp.com/* | |
| // @version 1.0 | |
| // ==/UserScript== | |
| function applySkin(options) { | |
| var skinCss = "#preview .mobileSkin.htcOne-portrait { background: url('" + options.backgroundImageUrl + "') no-repeat; height: " + options.skinHeight + "; } " |
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
| $.getScript("http://momentjs.com/downloads/moment.min.js", function() { | |
| $.getScript("https://raw.github.com/eligrey/FileSaver.js/master/FileSaver.js", function() { | |
| var SUBTITLE_DELAY = parseInt(prompt("Subtitle delay", "10800"), 10); | |
| var zero = moment(); | |
| zero.hour(0).minute(0).second(0).milliseconds(0); | |
| var legendas = []; | |
| $('[class="transcriptLink"]').each(function() { | |
| var elapsedMs = parseInt(this.href.split("#")[1], 10); | |
| legendas.push({ |
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 Modal(target, options) { | |
| this.target = target ; | |
| this.options = options; | |
| } | |
| Modal.prototype.show = function() { | |
| } | |
| $.fn.modal = function(options) { | |
| ... // instanciar e armazenar o plugin --> new Modal($(this), options) |
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
| DUMP_IGNORE = {os = 1, io = 1, table = 1, _VERSION = 1, math = 1, love = 1, string = 1, package = 1, _G = 1, DUMP_IGNORE = 1, ndump = 1, xpcall = 1, unpack = 1, type = 1, require = 1, setmetatable = 1, next = 1, pairs = 1, ipairs = 1, dofile = 1, collectgarbage = 1, load = 1, loadfile = 1, loadstring = 1, module = 1, pcall = 1, gcinfo = 1, getmetatable = 1, error = 1, debug = 1, coroutine = 1, assert = 1, tonumber = 1, tostring = 1, setfenv = 1, arg = 1, argv = 1, dumpAll = 1, dumpUserData = 1, getfenv = 1, newproxy = 1, select = 1} | |
| function ndump(object, map, visited, prefix, ignoredMap) | |
| map = map or {} | |
| ignoredMap = ignoredMap or {} | |
| visited = visited or {} | |
| if object ~= nil and visited[object] == nil then | |
| visited[object] = true | |
| for k, v in pairs(object) do | |
| local useMap = not prefix and DUMP_IGNORE[tostring(k)] ~= nil and ignoredMap or map |
NewerOlder