Update nvim plugins, add GreaseMonkey scripts

This commit is contained in:
Phantop 2018-12-04 19:46:29 -05:00
parent b2e9debfea
commit 1c117460c1
20 changed files with 7502 additions and 11 deletions

View File

@ -0,0 +1,4 @@
# Defined in /tmp/fish.1DIZ1f/gpu.fish @ line 1
function gpu
g push
end

@ -1 +1 @@
Subproject commit a05a16b1092e0af13942e40f62c5d89fbfc9fd0c
Subproject commit 92668b6beb9462f46b9e5d0126a33ee46dcb49cf

@ -1 +1 @@
Subproject commit 5e40e555d31d9cce2188d9fa724d1debcad28aa6
Subproject commit e953ee7a80dc96cd00c20ed6fe82e0e817d977ff

@ -1 +1 @@
Subproject commit 0f4ebc51a7b620f07ff51d2d75d536d975b52f55
Subproject commit f24e259073994b4f76d125332954d26748fcc581

@ -1 +1 @@
Subproject commit 3fe1e6022f5600a219125cebd817d6dcb4e2abaf
Subproject commit 80f4acdfab361407d449a3b3e12130217dd0d2a1

@ -1 +1 @@
Subproject commit 370eb5bcb44d7df6cd4512e05d4511fd479497d7
Subproject commit c905a5d7b87051e574c2e72fae57e56c456ba2f4

@ -1 +1 @@
Subproject commit cc6ba634f14e27edbe9065a9e5f0efb09b88781c
Subproject commit 4ab2b2c05ad6b1ebc87aad294d107179505b6b51

@ -1 +1 @@
Subproject commit c047abfe96f5df22e267acc2b0ab834c86893e93
Subproject commit 3d9071e6b618280000a021a2517e28cb4b497be4

@ -1 +1 @@
Subproject commit e48cf2dadd7dd02db710dc35d22caec72e41ac05
Subproject commit 2564c37d0a2ade327d6381fef42d84d9fad1d057

@ -1 +1 @@
Subproject commit 3f642a0bb81a69c2e0a7053df556a02cc4565cc3
Subproject commit c2651aefbd92dca05de1943619df965b848f9b4f

@ -1 +1 @@
Subproject commit 53c8799ad035ce1649d4bc6ab6cd4297d304a374
Subproject commit e25fbe1c0d6f8cda83c0e300d70f9b8009e4134f

View File

@ -1,5 +1,5 @@
[FileDialog]
history=@Invalid()
lastVisited=file:///mnt/LocalDiskD/Downloads
lastVisited=file:///home/glados
qtVersion=5.11.2
viewMode=Detail

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,81 @@
// ==UserScript==
// @name Google Drive Direct Links
// @version 1.8
// @description Direct link functionality for Google Drive
// @author Drazen Bjelovuk
// @match *://drive.google.com/*
// @grant none
// @namespace https://greasyfork.org/users/11679
// @contributionURL https://goo.gl/dYIygm
// ==/UserScript==
var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
for (var i = 0; i < mutation.addedNodes.length; i++) {
var node = mutation.addedNodes[i];
if (node.dataset.target === 'linkBubble') {
var link = node.getElementsByTagName('input')[0];
var directLink = link.cloneNode(true);
directLink.classList.remove('H-qa-A-zt');
directLink.value = 'https://drive.google.com/uc?id='+ node.previousSibling.dataset.id;
directLink.onclick = function() { this.select(); };
var label = document.createElement('p');
label.style.cssText = "margin-top: 0px; margin-bottom: 0px;";
label.textContent = 'Direct link:';
link.parentNode.insertBefore(directLink, link.nextSibling);
link.parentNode.insertBefore(label, link.nextSibling);
break;
}
else
setClickEvent(node);
}
});
});
var content = document.getElementById('drive_main_page');
if (content)
observer.observe(content, { childList: true, subtree: true });
function setClickEvent(elem) {
if (elem.classList && (elem.classList.contains('a-u-xb-j') || elem.classList.contains('a-t-J')))
elem.addEventListener('contextmenu', adjustMenu);
else {
for (var i = 0; i < elem.children.length; i++)
setClickEvent(elem.children[i]);
}
}
function adjustMenu() {
var file = this;
setTimeout(function() {
var menus = document.getElementsByClassName('h-w');
for (var i = 0; i < menus.length; i++) {
var menu = menus[i];
if (menu.style.display !== 'none') {
var existing = document.getElementById('DLID');
if (existing)
existing.remove();
var container = menu.children[0];
var clone = container.children[0].cloneNode(true);
clone.id = 'DLID';
clone.style.display = 'block';
clone.className = 'h-v';
clone.getElementsByClassName('a-v-T')[0].innerHTML = 'Open direct';
clone.onmouseleave = clone.onmouseenter = function() {
this.classList.toggle('h-v-pc');
};
clone.onclick = function() {
window.open('https://drive.google.com/uc?id='+ file.dataset.id);
};
container.insertBefore(clone, container.children[1]);
break;
}
}
});
}

View File

@ -0,0 +1,84 @@
// ==UserScript==
// @name Google Image "View Image" button
// @version 0.1.2
// @description Add "View Image" button.
// @description:ru Добавляет кнопку просмотра изображения.
// @author gvvad
// @run-at document-end
// @include http*://www.google.*.*/*
// @include http*://google.*.*/*
// @include http*://www.google.*/*
// @include http*://google.*/*
// @grant none
// @license GPL-3.0+; http://www.gnu.org/licenses/gpl-3.0.txt
// @namespace https://greasyfork.org/users/100160
// ==/UserScript==
(function() {
'use strict';
let observer = new MutationObserver(function(mRecord) {
for (let mutation of mRecord) {
try {
//"table.irc_but_r" - image preview area, 3 count should be
let ar_table = document.querySelectorAll("table.irc_but_r");
for (let table of ar_table) {
try {
let tr = table.querySelector("tr");
let td = table.querySelector("td");
//make copy of current button
let newTd = td.cloneNode(true);
//change title and insert after 1`st <td>
for (let spn of newTd.querySelectorAll("span")) {
if (spn.innerText) {
spn.innerText = "View";
break;
}
}
newTd.querySelector("a").removeAttribute("class");
newTd.querySelector("a").removeAttribute("jsaction");
if (td.nextSibling) {
tr.insertBefore(newTd, td.nextSibling);
} else {
tr.appendChild(newTd);
}
//finding "img.irc_mi" up on tree
let node = table.parentNode;
while (node) {
//watchdog for img preview object
let img = node.querySelector("img.irc_mi");
if (img) {
let obs = new MutationObserver(function(mutList) {
for (let mut of mutList) {
try {
//change <a href> to <img src>
let src = mut.target.querySelector("img.irc_mi").src;
this._a.href = src || this._a.href;
this._a.setAttribute("rel", "noreferrer");
} catch (e) {}
}
});
//store new button <a> node in observer object
obs._a = newTd.querySelector("a");
//observe <img> parent(<a>)
obs.observe(img.parentNode, {attributes: false, childList: true, characterData: false});
break;
}
node = node.parentNode;
}
} catch (e) {}
}
//disconnect when img preview loaded
if (ar_table.length) {
this.disconnect();
}
} catch (e) {}
}
});
observer.observe(document.body, {attributes: false, childList: true, characterData: false});
})();

View File

@ -0,0 +1,110 @@
// ==UserScript==
// @name MoreCAPTCHA
// @namespace https://eugenox.appspot.com/
// @description Speeds up solving Google reCAPTCHA challenges by shortening transition effects and providing continuous selection ability.
// @version 1.2
// @author Eugene Nouvellieu <eugenox_gmail_com>
// @license GNU General Public License
// @include https://www.google.com/recaptcha/api2/bframe?*
// @run-at document-start
// @grant unsafeWindow
// @homepageURL https://eugenox.appspot.com/script/morecaptcha
// ==/UserScript==
// Copyright (C) 2017 Eugene Nouvellieu <eugenox_gmail_com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
var SPEED = 5;
var selector = {
selecting: undefined,
handle: function(event) {
var tiles = new Set(document.querySelectorAll('#rc-imageselect td')), tile = event.target;
while (tile && ! tiles.has(tile)) {
tile = tile.parentNode;
}
if (tile) {
event.stopPropagation();
event.preventDefault();
var selected = 'selected' in tile.dataset && tile.dataset.selected == 'true';
if (this[event.type](selected)) {
tile.dataset.selected = this.selecting;
tile.firstElementChild.click();
}
}
},
mouseover: function(selected) {
return ! (this.selecting === undefined || this.selecting === selected);
},
mousedown: function(selected) {
this.selecting = ! selected;
return true;
},
mouseup: function(selected) {
this.selecting = undefined;
return false;
}
};
window.addEventListener('load', function(event) {
var sheet = document.body.appendChild(document.createElement('style')).sheet;
sheet.insertRule(
'.rc-imageselect-table-33, .rc-imageselect-table-42, .rc-imageselect-table-44' +
'{ transition-duration: ' + (1 / SPEED) + 's !important }', 0);
sheet.insertRule(
'.rc-imageselect-tile' +
'{ transition-duration: ' + (4 / SPEED) + 's !important }', 1);
sheet.insertRule(
'.rc-imageselect-dynamic-selected' +
'{ transition-duration: ' + (2 / SPEED) + 's !important }', 2);
sheet.insertRule(
'.rc-imageselect-progress' +
'{ transition-duration: ' + (1 / SPEED) + 's !important }', 3);
sheet.insertRule(
'.rc-image-tile-overlay' +
'{ transition-duration: ' + (1 / SPEED) + 's !important }', 4);
var handler = selector.handle.bind(selector);
document.body.addEventListener('mouseover', handler, false);
document.body.addEventListener('mousedown', handler, false);
document.body.addEventListener('mouseup', handler, false);
});
function publish(func) {
if (typeof exportFunction == 'function') {
return exportFunction(func, unsafeWindow);
}
return func;
}
var __setTimeout = unsafeWindow.setTimeout.bind(unsafeWindow);
unsafeWindow.setTimeout = publish(function(callback, delay) {
return __setTimeout(callback, Number(delay) / SPEED);
});

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,67 @@
// ==UserScript==
// @author @leoncastro
// @namespace https://github.com/leoncastro
// @name openload
// @version 0.13.2
// @description Remove anti-adblock, ads, popups and timer waits, and show direct download link
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAA/FBMVEUAAAAeP2MAmNkAoN8hNlgSSWwXLUgEITELKT8OMEkAn94Ant4AmtsAldQBW4MFh8YAktQBicxjT5sAnt4AX4lEcbUTeLBgVqBcXKMAnNxMS4pKbbEuQGwAmtoAY44xebwAk9QGjM1jT5tcTZUPM01jT5s7OGZfWKEAaJUAod8Ak9VYYqhSZKgVg8Ujf8AKSm4Agr5mPZRmPZRmPZRlR5gAod8AldNXXKEAltQAjMcAmNVWZKpeWaJUZqtKbbE+dbg+dLdEcLM7d7omgMExersAk9RgVqA7aKUAod8Ak9UAn99lR5gAm9wJhshRaa0ue74mgMEAjdBmPZQ7d7qePASIAAAASHRSTlMAOP75GiksAgcPxb3QS0Nh0+T+0hj+Yv796m3PSLNc0eF0vYgg7l/DOPDs/ejo11dV+LpM8et8qaduicHV0L7Jrer75omU6GL8xLQIAAABaklEQVR42u1S2XaCMBQMaxJAAcUFRcG673Zzb9VWW4Pi0v7/vzSCcDz9hfY+3pnMmZkb8IcG8YIoVNDtQhRFPlyg+LQgy3JhE4fBAjLr5evrbFS2fAqeJDl3v9+zrDbwGShtv6VSh0M7O89hipearsuZTotliaMiAFH6/fidWnU67WymShmx5pZLpjHAaY2QggiQ2j0dbQrg3DyTeHoE8nYrNXzpuOZseKjq3sm2Aiv1xO4BcNvnIrp66wtwoHtez4KB+1p1dw+oABPFgwON4v0wn3i3+6KEQiXCY9rZ0yMcVAKCJIaFUPysFxGGNwqBh/A9Oeuqoa6ZWw80hRykoDjRSzDePdnMTQragysVDWSoCiGtEr4QjotPHvG1ut8DnnKuayYVxWRJa4ghrZY2ucrnXzrZTKKMAcRD0w1u4UwQBJeue9dbfJR56F9zLCmKIo0bYTxmuaAKs5GFwvyGIAgG/PVB6Ov/ieYHpLEydStkqm4AAAAASUVORK5CYII=
// @include http://openload.co
// @include /^(https?:)?\/\/(openload\.co|oload\.fun)\/*.*/
// @compatible firefox+greasemonkey(3.17)
// @compatible firefox+tampermonkey
// @compatible chrome+tampermonkey
// @grant none
// @run-at document-start
// ==/UserScript==
(function(){
//
// @run-at document-start
//
window.adblock=false;
window.adblock2=false;
window.turnoff=true;
window.open=function(){};
//
// @run-at document-end
//
function onready(fn){if(document.readyState!='loading')fn();else document.addEventListener('DOMContentLoaded',fn);}
onready(function(){
if( document.location.href.match(/\/embed\//) || $('#realdl>a') )
{
$('#btnView').hide();
$('#btnDl').hide();
$('.dlButtonContainer').show();
$('h3.dlfile.h-method').hide();
$('.col-md-4.col-centered-sm *').remove();
$('#mgiframe,#main>div[id]').remove();
$('#downloadTimer').hide();
$('#mediaspace_wrapper').prepend( $('<div/>').attr('id', 'realdl')
.attr('style', 'position: absolute; top: 0 ; left: 0 ; right: 0; text-align: center; z-index: 9999; background-color: #000; padding: .5em 0;')
.on('mouseenter', function(){ $(this).fadeTo(500, 1); }).on('mouseleave', function(){ $(this).fadeTo(500, 0); })
.append( $('<a/>').attr('href', '').attr('style', 'color: #fff; text-decoration: none; -moz-user-select: none;').text('FREE DOWNLOAD') )
.append( $('<span/>').attr('style', 'color: #fff; padding-left: 1em;').attr('id', 'steamcopy') ) );
$('#realdl').show();
var streamurl_tmr = setInterval(function(){
// <@snippet author="https://greasyfork.org/forum/profile/daedelus" src="https://greasyfork.org/forum/discussion/36362/x">
var streamurl_src;
$('p[id]').each(function(){
streamurl_src = streamurl_src || ($(this).text().match(/^[\w\.~-]+$/) && $(this).text().match(/~/)) ? $(this).text() : streamurl_src;
});
// </@snippet>
if( streamurl_src )
{
var streamurl_url = location.origin + '/stream/' + streamurl_src;
$('#realdl a').attr('href', streamurl_url);
$('#steamcopy').text( streamurl_url );
$('#videooverlay').click();
clearInterval(streamurl_tmr);
}
},100);
}
window.onclick=function(){};
document.onclick=function(){};
document.body.onclick=function(){};
});
})();

File diff suppressed because one or more lines are too long