1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-23 15:23:15 +00:00

Update GreaseMonkey scripts; WiiMote function

This commit is contained in:
Phantop 2019-01-27 13:43:12 -05:00
parent e3c5d51374
commit 28b9ea68d2
5 changed files with 116 additions and 55 deletions

View file

@ -0,0 +1,4 @@
# Defined in /tmp/fish.vIjUwI/wiimote.fish @ line 1
function wiimote
sudo modprobe -r hid-wiimote
end

View file

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

3
.gitmodules vendored
View file

@ -61,3 +61,6 @@
[submodule ".config/nvim/bundle/hexmode"]
path = .config/nvim/bundle/hexmode
url = https://github.com/fidian/hexmode.git
[submodule ".local/share/qutebrowser/greasemonkey/Iridium"]
path = .local/share/qutebrowser/greasemonkey/Iridium
url = https://github.com/ParticleCore/Iridium.git

@ -0,0 +1 @@
Subproject commit 37d27616cbfb70b0296b9a16d41ff31986d58575

View file

@ -3,13 +3,13 @@
// @namespace AdsBypasser
// @description Bypass Ads
// @copyright 2012+, Wei-Cheng Pan (legnaleurc)
// @version 6.25.0
// @version 6.28.0
// @license BSD
// @homepageURL https://adsbypasser.github.io/
// @supportURL https://github.com/adsbypasser/adsbypasser/issues
// @updateURL https://adsbypasser.github.io/releases/adsbypasser.full.es7.meta.js
// @downloadURL https://adsbypasser.github.io/releases/adsbypasser.full.es7.user.js
// @icon https://raw.githubusercontent.com/adsbypasser/adsbypasser/v6.25.0/resources/img/logo.png
// @icon https://raw.githubusercontent.com/adsbypasser/adsbypasser/v6.28.0/resources/img/logo.png
// @grant GM_deleteValue
// @grant GM_getResourceURL
// @grant GM_getValue
@ -24,9 +24,9 @@
// @grant GM.setValue
// @grant GM.xmlHttpRequest
// @grant unsafeWindow
// @resource alignCenter https://raw.githubusercontent.com/adsbypasser/adsbypasser/v6.25.0/resources/css/align_center.css
// @resource scaleImage https://raw.githubusercontent.com/adsbypasser/adsbypasser/v6.25.0/resources/css/scale_image.css
// @resource bgImage https://raw.githubusercontent.com/adsbypasser/adsbypasser/v6.25.0/resources/img/imagedoc-darknoise.png
// @resource alignCenter https://raw.githubusercontent.com/adsbypasser/adsbypasser/v6.28.0/resources/css/align_center.css
// @resource scaleImage https://raw.githubusercontent.com/adsbypasser/adsbypasser/v6.28.0/resources/css/scale_image.css
// @resource bgImage https://raw.githubusercontent.com/adsbypasser/adsbypasser/v6.28.0/resources/img/imagedoc-darknoise.png
// @run-at document-start
// @include http://*
// @include https://*
@ -1019,7 +1019,7 @@ _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
rule: {
host: [
/^openload\.co$/,
/^oload\.(stream|info|site|tv|win|download|cloud|cc)$/,
/^oload\.(stream|info|site|tv|win|download|cloud|cc|fun)$/,
],
path: /^\/f\/.*/,
},
@ -1126,6 +1126,17 @@ _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
await _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"].openLink(m.query[1]);
},
});
_ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
rule: {
host: /^1(be|dl)\.biz$/,
path: /^\/[jt]\.php$/,
query: /^\?s=/,
},
async ready () {
const a = Object(_ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"])('.j-link');
await _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"].openLink(a.href);
},
});
_ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
rule: {
host: /^1ink\.(cc|info)$/,
@ -1807,7 +1818,7 @@ _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
/^www\.(telondasmu|siotong|siherp)\.com$/,
/^www\.greget\.space$/,
],
path: /^\/\w+$/,
path: /^\/.+$/,
},
async ready (m) {
const mapper = hostMapper(m.host[0]);
@ -2443,29 +2454,30 @@ _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
/^(tmearn|payshorturl|urltips|shrinkearn|itiad|cutsouf)\.com$/,
/^(earn-url|bit-url|cut-win|link-zero|cut-earn|oturl|glory-link)\.com$/,
/^(vy\.)?adsvy\.com$/,
/^(linkexa|admew|shrtfly|kuylink|cut4links|adskipme)\.com$/,
/^cutpaid\.com$/,
/^(linkexa|admew|shrtfly|kuylink|cut4links|adskipme|skipurls)\.com$/,
/^(cutpaid|smarteasystudy|cyahealth|ershadat|z2i)\.com$/,
/^(safelinku|tinylinks|licklink|linkrex|zlshorte)\.net$/,
/^(vnurl|vinaurl|foxurl|short2win|cashat|shrtfly)\.net$/,
/^(link4win|linksad|topurl)\.net$/,
/^(trlink|wolink|tocdo|megaurl)\.in$/,
/^(link4win|linksad|topurl|xemlink)\.net$/,
/^(123link|clik|tokenfly|getlink|psl|pss)\.pw$/,
/^(www\.)?lwt\.pw$/,
/^(trlink|wolink|tocdo)\.in$/,
/^(petty|skips|tr|zutrox)\.link$/,
/^megaurl\.(in|link)$/,
/^idsly\.(com|bid)$/,
/^(adbilty|adpop|payskip|wicr|ujv|tpx|adsrt)\.me$/,
/^wi\.cr$/,
/^(oke|cuon|linktor|flylink)\.io$/,
/^(3bst|coinlink|itiurl|coshink)\.co$/,
/^(oke|cuon|cuio|linktor|flylink)\.io$/,
/^(3bst|coinlink|itiurl|coshink|link5s)\.co$/,
/^(shink|shrten|gg-l|vnurl)\.xyz$/,
/^mlink\.club$/,
/^(igram|gram)\.im$/,
/^(clk|cll)\.(press|sh|icu)$/,
/^(clk|cll)\.(press|ink|sh|icu)$/,
/^short\.pe$/,
/^urlcloud\.us$/,
/^(123link|clik|tokenfly|getlink|psl)\.pw$/,
/^(www\.)?lwt\.pw$/,
/^(icutit|earnbig|cutearn)\.ca$/,
/^adzurl\.cf$/,
/^koylinks\.win$/,
/^(adzurl|link2link)\.cf$/,
/^(koylinks|buy-in-599rs)\.win$/,
/^lopte\.pro$/,
/^(www\.)?pnd\.tl$/,
/^(tny|tiny)\.ec$/,
@ -2474,6 +2486,9 @@ _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
/^lyon\.kim$/,
/^linkvip\.tk$/,
/^stfly\.press$/,
/^businessiss2\.info$/,
/^eatings\.stream$/,
/^8o\.ee$/,
],
},
async ready () {
@ -2513,14 +2528,11 @@ _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
rule: {
host: [
/^(cut-urls|linclik|premiumzen|shrt10|by6dk|mikymoons|man2pro)\.com$/,
/^(mykinggo|win4cut|link4win)\.com$/,
/^(mykinggo|win4cut|link4win|loadurl|cut4link|raolink|adshorte)\.com$/,
/^short\.pastewma\.com$/,
/^linkfly\.gaosmedia\.com$/,
/^adshorte\.com$/,
/^(www\.)?viralukk\.com$/,
/^(www\.)?niagoshort\.com$/,
/^(loadurl)\.com$/,
/^(cut4link|raolink)\.com$/,
/^www\.worldhack\.net$/,
/^(eklink|vivads)\.net$/,
/^(urle|adshort)\.co$/,
@ -2533,9 +2545,9 @@ _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
/^shortad\.cf$/,
/^123link\.(io|co|press|pro)$/,
/^git\.tc$/,
/^adfu\.us$/,
/^(adfu|linku)\.us$/,
/^shortit\.ca$/,
/^spamlink\.org$/,
/^(spamlink|idsly)\.org$/,
/^royurls\.bid$/,
/^za\.gl$/,
],
@ -2670,7 +2682,7 @@ _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
super();
}
async getMiddleware () {
return await getJQueryForm('#mylink');
return await getJQueryForm('#mylink1');
}
}
class StagedHandler extends AbstractHandler {
@ -3078,6 +3090,22 @@ _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
await _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"].openLink(s);
},
});
_ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
rule: {
host: /^probusinesshub\.com$/,
},
async ready () {
let f = _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"].$('form[id$=-subscribe]');
if (f) {
f.action = f.action.replace('http:', 'https:');
f.submit();
return;
}
f = _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"].searchFromScripts(/location\.href="([^"]+)"/);
f = f[1];
await _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"].openLink(f);
},
});
_ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
rule: 'http://richlink.com/app/webscr?cmd=_click&key=*',
async ready () {
@ -3430,7 +3458,8 @@ _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
/^ww[23]\.picnictrans\.com$/,
/^(azhie|skinnycat)\.net$/,
/^ww2\.awsubs\.co$/,
/^plantaheim\.web\.id$/,
/^plantaheim(\.web\.id|\.com)$/,
/^irisvera\.com$/,
],
query: /^\?d=([a-zA-Z0-9/=]+)$/,
},
@ -3453,6 +3482,7 @@ _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
/^(www\.)?kakkoiisafe\.us$/,
/^(www\.)?kurosafe\.(website|online)$/,
/^(fmlawkers|indexmovie)\.club$/,
/^micin\.online$/,
],
query: [
/^\?url=([a-zA-Z0-9/=]+)$/,
@ -3464,10 +3494,11 @@ _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
host: [
/^sehatlega\.com$/,
/^businessforyouand\.me$/,
/^plantaheim\.web\.id$/,
/^plantaheim(\.web\.id|\.com)$/,
/^davinsurance\.com$/,
/^naturalhealthy\.xyz$/,
/^healthtod\.com$/,
/^irisvera\.com$/,
],
query: /^\?r=([a-zA-Z0-9/=]+)$/,
},
@ -3490,8 +3521,8 @@ _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
rule: [
{
host: [
/(^|\.)safelinkconverter2?\.com$/,
/^safelink(s?review(er)?)\.com?$/,
/(^|\.)safelink(converter|reviewx?)\.com?$/,
/^awsubsco\.ml$/,
],
query: /id=([\w\\]+=*)/,
},
@ -3539,7 +3570,8 @@ _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
/^(intercelestial|sweetlantern|davinsurance)\.com$/,
/^awcar\.icu$/,
/^skyinsurance\.ml$/,
/^(getinfos|sehatsegar)\.net$/,
/^(getinfos|sehatsegar|lonelymoon)\.net$/,
/^stt\.awsubs\.co$/,
],
query: /^\?id=([a-zA-Z0-9/=]+)$/,
},
@ -3582,7 +3614,8 @@ _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
/^(intercelestial|sweetlantern|linkach|autolinkach|davinsurance)\.com$/,
/^awcar\.icu$/,
/^skyinsurance\.ml$/,
/^(getinfos|sehatsegar)\.net$/,
/^(getinfos|sehatsegar|lonelymoon)\.net$/,
/^stt\.awsubs\.co$/,
],
},
],
@ -4944,6 +4977,37 @@ _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
await _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"].openImage(a.href);
},
});
_ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
rule: {
host: [
/^www\.imagespicy\.site$/,
/^www\.(imgsky|imgfile)\.net$/,
],
path: /^\/site\/v\/\d+$/,
},
async ready () {
const a = Object(_ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"])('#myUniqueImg').parentNode;
await _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"].openLink(a.href);
},
});
_ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
rule: {
host: [
/^www\.imagespicy\.site$/,
/^www\.(imgsky|imgfile)\.net$/,
],
path: /^\/[a-z|0-9]{4,10}$/,
},
async ready () {
await _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].wait(1000);
const b = Object(_ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"])('body .main-content-box');
b.style.display = 'initial';
const c = Object(_ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"])('body .container');
c.style.display = 'initial';
const img = Object(_ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"])('body .big_img img');
await _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"].openImage(img.src);
},
});
_ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
rule: 'http://ipic.su/?page=img&pic=*',
async ready () {
@ -5243,20 +5307,6 @@ _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
await _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"].openImage(o.src);
},
});
_ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
rule: {
host: [
/^www\.pixsense\.net$/,
/^www\.imagespicy\.site$/,
/^www\.(imgsky|imgfile)\.net$/,
],
path: /^\/site\/v\/\d+$/,
},
async ready () {
const a = Object(_ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"])('#myUniqueImg').parentNode;
await _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"].openLink(a.href);
},
});
_ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
rule: {
host: /^pixxxels\.cc$/,
@ -5532,19 +5582,22 @@ _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({
});
async function action (firstSelector, secondSelector) {
_ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"].remove('iframe, #adblock_detect, .popupOverlay');
const node = _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"].$(firstSelector);
let node = _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"].$(firstSelector);
if (node) {
await _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].wait(500);
node.removeAttribute('disabled');
await _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].wait(500);
node.focus();
node.click();
node.click();
node = findFirstForm(node);
document.body.innerHTML = node.outerHTML;
node = Object(_ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"])('form input');
node.click();
return;
}
const i = Object(_ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"])(secondSelector);
await _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"].openImage(i.src);
node = Object(_ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"])(secondSelector);
await _ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["$"].openImage(node.src);
}
function findFirstForm (child) {
while (child && child.localName !== 'form') {
child = child.parentElement;
}
return child;
}
})();
_ADSBYPASSER_NAMESPACE___WEBPACK_IMPORTED_MODULE_0__["_"].register({