-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathscript1.user.js
More file actions
38 lines (36 loc) · 1.43 KB
/
Copy pathscript1.user.js
File metadata and controls
38 lines (36 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// ==UserScript==
// @name script1
// @namespace Violentmonkey Scripts
// @match *://*/*
// @exclude https://www.youtube.com/embed/*
// @exclude https://accounts.youtube.com/RotateCookiesPage*
// @exclude https://accounts.google.com/RotateCookiesPage*
// @exclude /^https?:\/\/ogs\.google\..*$/
// @exclude https://www.google.com/recaptcha/enterprise/anchor*
// @exclude https://duckduckgo.com/post3.html
// @exclude https://www.facebook.com/instagram/login_sync/
// @exclude https://entra.microsoft.com/*
// @exclude https://*.reactblade.portal.azure.net/*
// @grant none
// @version 1.0
// @author -
// @description 6/6/2024, 11:32:13 PM -- requests injection into the page context
// @run-at document-start
// ==/UserScript==
function initInject() {
console.log(`injectApplicable 1️⃣ - ${location.href}`);
setTimeout(() => {
// source: "safari-userscripts",
postMessage({ action: "injectApplicable" }, "*"); //request USERSCRIPTS_URL folder be injected
// checkInjectCompleted();
}, 0);
}
if (document.readyState !== "loading") initInject();
else document.addEventListener("DOMContentLoaded", initInject);
/*
whatever your first running script is, should add the following to the window (see globals.user.js):
clearUserScriptCache & refreshUserScriptCache
loadUserscript
enableUserscript & disableUserscript
logInjectedUserscripts
*/