userscripts

Why is usage of the downloadURL & updateURL keys called unusual and how do they work?

倾然丶 夕夏残阳落幕 提交于 2020-01-09 06:22:19
问题 I was reading GM's wiki to determine the difference between @downloadURL & @updateURL (which I didn't). But what confused me even more that both are unadvised: It is unusual to specify this value. Most scripts should omit it. I'm surprised by that as it's the only way for scripts to auto-update and I don't see why these keys shouldn't be used. The wiki itself is pretty lacking and no other forum sources are advised, so I have to ask here. Also would appreciate more detailed info on these keys

Why is usage of the downloadURL & updateURL keys called unusual and how do they work?

自作多情 提交于 2020-01-09 06:20:28
问题 I was reading GM's wiki to determine the difference between @downloadURL & @updateURL (which I didn't). But what confused me even more that both are unadvised: It is unusual to specify this value. Most scripts should omit it. I'm surprised by that as it's the only way for scripts to auto-update and I don't see why these keys shouldn't be used. The wiki itself is pretty lacking and no other forum sources are advised, so I have to ask here. Also would appreciate more detailed info on these keys

How to hide table rows containing certain keywords? [closed]

笑着哭i 提交于 2020-01-07 05:29:09
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . When reading forums, I'd like to be able to have customizable keyword filters to hide certain rows. For example on this forum, I'd like to hide any rows for certain usernames (3rd column). Is it difficult to write a Greasemonkey script that could do this, only on this site? Or is

Adding frames to an existing frameset using a userscript. Works with Firefox, why not with Opera?

人盡茶涼 提交于 2020-01-07 05:03:16
问题 Brock Adams gave me the code below (original question: How to add frames to an existing frameset using userscript?) to create a frame inside an existing frameset. It works fine with Firefox and Greasemonkey, but how do I make it work with Opera and Violentmonkey? var parent = document.getElementById ("mainset"); var child = document.createElement ("frame"); child.style = "background-color: pink;"; parent.appendChild (child); parent.rows = "30%,30%,30%" var docRdyInt = null; var frmCW = child

Using SmtpJS in a userscript: Doesn't work, no error messages?

你说的曾经没有我的故事 提交于 2020-01-01 19:23:51
问题 I'm trying to send an email through a userscript using smtpjs because it seems the easiest approach. However it seems more difficult than just sending it by javascript that is embedded in a HTML page. Using this userscript (based on the smtpjs website) I get no error in the console and no email is sent, is this a framework issue or am I missing something here? (if you suggest an easier way to send emails within a userscript don't hesitate to share) // ==UserScript== // @name New Userscript //

How do I import this Greasemonkey script, that uses CDATA, to Chrome?

这一生的挚爱 提交于 2020-01-01 17:12:11
问题 I've got following code that works fine on Greasemonkey but not in Chrome: // ==UserScript== // @name SO // @namespace stackoverflow.com // @include *stackoverflow.com/* // @version 1 // ==/UserScript== changeHeaderColor(); function changeHeaderColor() { GM_addStyle((<><![CDATA[ //body { color: white; background-color: black } #custom-header {background-color: rgb(251,122,35)} #nav-questions {background-color: rgb(251,122,35)} #nav-tags {background-color: rgb(251,122,35)} #nav-users

Automatically run JavaScript code upon loading a specific website

北城余情 提交于 2019-12-31 22:27:53
问题 I've written scripts to filter out threads and posts in a programming forum by author. But you need to post the code into the web console for each page individually. I was wondering if it were possible and if so how (using either firefox or chrome), to set your browser up to run a specific script upon loading a specific site? Is it possible as an extension or plugin? 回答1: You can use Tampermonkey for Google Chrome Tampermonkey is the most popular userscript manager for Google Chrome.

Userscript code works in Firefox but not in Chrome? (unsafeWindow)

家住魔仙堡 提交于 2019-12-31 05:37:11
问题 I am using this userscript in Firefox that counts unread tweets in Tweetdeck and colors the new tweets. It works fine with Firefox (Greasemonkey), but in Chrome I'm not getting anything. Here is the code: // ==UserScript== // @name TweetDeck Unread Notifications // @include https://tweetdeck.twitter.com // @include https://tweetdeck.twitter.com/* // @grant none // ==/UserScript== var head, style; head = document.getElementsByTagName('head')[0]; style = document.createElement('style'); style

How to reload only a userscript, i.e. without reloading the page?

ⅰ亾dé卋堺 提交于 2019-12-31 04:09:51
问题 I'm working on a Greasemonkey userscript for a web app that needs configuration steps before I can actually test my userscript's functionality. So every time I reload the page – to refresh my userscript from the updated file –, I have to reconfigure the web app before testing. Needless to say, this gets old very quickly. Is there a way to reload only the userscript , preferably from the userscript itself? I would want to e.g. bind the reload to a keyboard shortcut. I thought that this must be

Are Chrome user-scripts separated from the global namespace like Greasemonkey scripts?

限于喜欢 提交于 2019-12-30 06:46:12
问题 I know Greasemonkey scripts are automatically wrapped in anonymous functions isolated in some way in order to prevent them conflicting with scripts in the page. Does the same happen with Chrome user-scripts? 回答1: Yes, Greasemonkey scripts are normally wrapped in an anonymous function. And, Chrome userscripts apparently are too. But, more importantly, Greasemonkey scripts are usually 1 wrapped in an XPCNativeWrapper sandbox, while Google Chrome converts userscripts into extensions, and they