Skip to content

Commit 23fe9a7

Browse files
committed
Debug
1 parent fdae9ec commit 23fe9a7

10 files changed

Lines changed: 39 additions & 15 deletions

bypass-various-popups.user.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name Bypass Various Popups
3-
// @version 0.11
3+
// @version 0.12
44
// @downloadURL https://userscripts.codonaft.com/bypass-various-popups.user.js
55
// @match https://*.archive.org/*
66
// @match https://chat.deepseek.com/*
@@ -15,6 +15,7 @@
1515
// @match https://xhamster.com/*
1616
// ==/UserScript==
1717

18+
(_ => {
1819
'use strict';
1920

2021
if (performance.getEntriesByType('navigation')[0]?.responseStatus !== 200) return;
@@ -132,3 +133,4 @@ const err = (e, node) => {
132133
};
133134

134135
subscribeOnChanges(document.body, 'button, div, span', process);
136+
})();

bypass-youtube-popups.user.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
// ==UserScript==
22
// @name Bypass YouTube Popups
33
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
4-
// @version 0.2
4+
// @version 0.3
55
// @downloadURL https://userscripts.codonaft.com/bypass-youtube-popups.user.js
66
// @match https://www.youtube.com/*
77
// ==/UserScript==
88

9+
(_ => {
910
'use strict';
1011

1112
if (performance.getEntriesByType('navigation')[0]?.responseStatus !== 200) return;
@@ -72,3 +73,4 @@ const subscribeOnChanges = (node, selector, f) => {
7273
};
7374

7475
subscribeOnChanges(document.body, 'button, div, span', process);
76+
})();

disable-youtube-channel-intro.user.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
// ==UserScript==
22
// @name Disable YouTube Channel Intro
33
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
4-
// @version 0.6
4+
// @version 0.7
55
// @downloadURL https://userscripts.codonaft.com/disable-youtube-channel-intro.user.js
66
// @match https://www.youtube.com/@*
77
// @match https://www.youtube.com/channel/*
88
// ==/UserScript==
99

10+
(_ => {
1011
'use strict';
1112

1213
if (performance.getEntriesByType('navigation')[0]?.responseStatus !== 200) return;
@@ -62,3 +63,4 @@ const err = (e, node) => {
6263
console.log(node);
6364
console.error(e);
6465
};
66+
})();

force-browser-language.user.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
// ==UserScript==
22
// @name Force Browser Language
3-
// @version 0.6
3+
// @version 0.7
44
// @downloadURL https://userscripts.codonaft.com/force-browser-language.user.js
55
// @match https://*.google.com/*
66
// ==/UserScript==
77

8+
(_ => {
89
'use strict';
910

1011
const first = lang => lang.split('-')[0]
@@ -15,3 +16,4 @@ if (!url.searchParams.has('hl') || first(url.searchParams.get('hl')) !== first(l
1516
url.searchParams.set('hl', lang);
1617
window.location.replace(url.toString());
1718
}
19+
})();

force-searxng-parameters.user.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
// ==UserScript==
22
// @name Force SearXNG Parameters
33
// @icon https://www.google.com/s2/favicons?sz=64&domain=searx.space
4-
// @version 0.6
4+
// @version 0.7
55
// @downloadURL https://userscripts.codonaft.com/force-searxng-parameters.user.js
66
// ==/UserScript==
77

8+
(_ => {
89
'use strict';
910

1011
if (performance.getEntriesByType('navigation')[0]?.responseStatus !== 200) return;
@@ -36,8 +37,8 @@ const enabledPlugins = ['calculator', 'oa_doi_rewrite', 'tracker_url_remover', '
3637
const params = {
3738
'autocomplete': '',
3839
'categories': ['general', 'it'].join(','),
39-
'disabled_engines': Object.values(disabledEngines).flatMap(i => i).join(','),
40-
'enabled_engines': Object.values(enabledEngines).flatMap(i => i).filter(i => !Object.values(disabledEngines).flatMap(i => i).includes(i)).join(','),
40+
'disabled_engines': Object.values(disabledEngines).flat().join(','),
41+
'enabled_engines': Object.values(enabledEngines).flat().filter(i => !Object.values(disabledEngines).flat().includes(i)).join(','),
4142
'enabled_plugins': enabledPlugins.join(','),
4243
'image_proxy': 'True',
4344
'safesearch': 0,
@@ -76,7 +77,12 @@ if (form) {
7677
Object.entries(cookies).forEach(([k, v]) => document.cookie = `${k}=${v}`);
7778

7879
if (!params.autocomplete) {
79-
const style = document.createElement('style');
80-
style.innerHTML = 'div.autocomplete { display: none !important }';
81-
b.appendChild(style);
80+
try {
81+
const style = document.createElement('style');
82+
style.innerHTML = 'div.autocomplete { display: none !important }';
83+
b.appendChild(style);
84+
} catch (e) {
85+
console.error(e);
86+
}
8287
}
88+
})();

improve-adult-experience.user.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
// @name Improve Adult Experience
33
// @description Skip intros, set better default quality/duration filters, make unwanted video previews transparent, workaround load failures. Supported websites: pornhub.com, xvideos.com, anysex.com, spankbang.com, porntrex.com, txxx.com, xnxx.com, xhamster.com, vxxx.com
44
// @icon https://www.google.com/s2/favicons?sz=64&domain=pornhub.com
5-
// @version 0.28
5+
// @version 0.29
66
// @downloadURL https://userscripts.codonaft.com/improve-adult-experience.user.js
77
// ==/UserScript==
88

9+
(_ => {
910
'use strict';
1011

1112
const IGNORE_HOSTS = []; // NOTE: without 'www.', e.g. 'xvideos.com'
@@ -970,3 +971,4 @@ if (IGNORE_HOSTS.includes(shortDomain)) {
970971
});
971972
},
972973
}[shortDomain] || init)();
974+
})();

improve-privacy.user.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
// ==UserScript==
22
// @name Improve Privacy
3-
// @version 0.11
3+
// @version 0.12
44
// @downloadURL https://userscripts.codonaft.com/improve-privacy.user.js
55
// ==/UserScript==
66

7+
(_ => {
78
'use strict';
89

910
const hiddenNodes = 'div[role="contentinfo"], div#gws-output-pages-elements-homepage_additional_languages__als, div#voice-search-button, span.style-scope.ytd-topbar-logo-renderer';
@@ -87,3 +88,4 @@ subscribeOnChanges(document.body, `${links}, ${hiddenNodes}`, (node, _observer)
8788

8889
return cleanup(node);
8990
});
91+
})();

jitsi-podcaster.user.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
// ==UserScript==
22
// @name Clean Jitsi in Tile Mode for Podcasting
33
// @icon https://www.google.com/s2/favicons?sz=64&domain=jitsi.org
4-
// @version 0.8
4+
// @version 0.9
55
// @downloadURL https://userscripts.codonaft.com/jitsi-podcaster.user.js
66
// ==/UserScript==
77

88
// TODO: remove frame and mic animation dots
99

10+
(_ => {
1011
'use strict';
1112

1213
if (performance.getEntriesByType('navigation')[0]?.responseStatus !== 200) return;
@@ -63,3 +64,4 @@ subscribeOnChanges(document.body, `${hiddenNodes}, ${someHiddenNodes}`, (node, _
6364

6465
return true;
6566
});
67+
})();

redirect-searxng-on-failure.user.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
// @name Redirect SearXNG On Failure
33
// @description Redirect to a random SearXNG instance in case of error and empty result
44
// @icon https://www.google.com/s2/favicons?sz=64&domain=searx.space
5-
// @version 0.6
5+
// @version 0.7
66
// @downloadURL https://userscripts.codonaft.com/redirect-searxng-on-failure.user.js
77
// ==/UserScript==
88

9+
(_ => {
910
'use strict';
1011

1112
if (performance.getEntriesByType('navigation')[0]?.responseStatus !== 200) return;
@@ -57,3 +58,4 @@ if (postRequest) {
5758
const params = url.searchParams.toString();
5859
url.search = '';
5960
window.location.replace(`${url.toString()}#${params}`);
61+
})();

remove-pseudocensorship.user.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
// ==UserScript==
22
// @name Remove Pseudocensorship
3-
// @version 0.5
3+
// @version 0.6
44
// @downloadURL https://userscripts.codonaft.com/remove-pseudocensorship.user.js
55
// ==/UserScript==
66

7+
(_ => {
78
'use strict';
89

910
const subscribeOnChanges = (node, selector, f) => {
@@ -41,3 +42,4 @@ subscribeOnChanges(document.body, 'p', (node, _observer) => {
4142
}
4243
return true;
4344
});
45+
})();

0 commit comments

Comments
 (0)