讨论 » 开发

can't remember the dynamic domain variable at end of '// @icon https://www.google.com/s2/favicons?sz=64&domain=___'

§
发表于:2023-07-09

I had my default userscript template set to automatically add the domain name to get the favicon for a site when clicking 'Create a new script...'
but, I can't remember the dynamic domain variable at end of:
// @icon https://www.google.com/s2/favicons?sz=64&domain=

I tried <$DOMAIN$> and <$URL$> and https://www.google.com/s2/favicons?domain=${domain}&sz=${size}, but they didn't work

§
发表于:2023-07-09

well, 'domain=myanimelist.net' is the kind of end result I want, but there used to be a variable like <$DOMAIN$> or <$URL$> so that when using 'Create a new script...' it would automatically append any domain name from any website I was already on to the icon address url

§
发表于:2023-07-09
编辑于:2023-07-09

I don't think that greasyfork had it and from what I know. And (I read the documentation multiple times) of tampermonkey, it never had it either...

Are you talking about a specific script on greasyfork or something else maybe?

NotYou管理员
§
发表于:2023-07-09

It was <$ICON$>

§
发表于:2023-07-09

It was <$ICON$>

Yes dude! that's it, glad to have it back, cheers

发表回复

登录以发表回复。