Comments (3)
You'd have to get access to the scripts source code and manually install it with a url checking function like:
function checkPageHost() {
var w = location.host;
if (w.indexOf("www.") === 0) {
w = w.replace("www.","");
}
if (w === "google.com") {
//code to run
}
}
At the current moment there's no support for automatically installing scripts from Greasy Fork or pasting Tampermonkey scripts without editing. This functionality is being considered for future updates.
from userscripts.
Many userscripts also use GM_xxx() [GM3] or GM.xxx() [GM4] APIs to do their work; I haven't surveyed greasyfork to see what fraction are usable without those, but I imagine it would impact almost any script of substantial size.
GM/TM/VM also pack a lot of semantic information into the header comment (include/exclude sites on which to be injected, etc.)
It would be great to see full GM semantics... (personally I'd rather see GM3, I don't think the GM4 async API has particularly caught on with userscript authors, so userscript runners -- like GM4 itself -- which support only the GM4 API are sort of useless wrt the existing pool of userscripts)
from userscripts.
I am going to close this thread.
Implementing GM metadata into this extension is beyond scope. I set out to create something simple to facilitate my userscript needs, until something better came along. I believe PageExtender is that something better.
Perhaps a project can be spun up in the future to address the lack of "editor" that can easily ingest usersripts in the GM format, but I don't it will be this project - at least not in the near future.
from userscripts.
Related Issues (20)
- this script doesn't work HOT 1
- Safari Extension in Apple Vision Pro HOT 9
- @run-at document-start does not really run at start HOT 1
- GM.addElement support HOT 5
- Unable to use UserStyles or any css HOT 5
- Cannot check for updates on installed userscripts HOT 2
- To work for local HTML files? HOT 1
- After the await operation, other functions is cancelled due to delay. HOT 9
- manifest.json makes no-op changes on disk very frequently HOT 3
- UserScript not working tab switch HOT 3
- Extension disabled after clicking on a target _blanck link (or window.open()) HOT 7
- Unify macOS and iOS version numbers
- Userscripts folder cannot be OneDrive (greyed out) HOT 3
- Help with a userscript that adds Copy URL buttons in Google search results HOT 1
- script not work on safari in iphone, while working well on chrome in computer. HOT 6
- Script is not loading producing "Load failed" HOT 1
- Difference between @exclude and @exclude-match? HOT 1
- Deprecate `@include` and `@exclude` metadata
- Deprecate `GM.setClipboard` API
- Created
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from userscripts.