greasemonkey

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

“getElementById not a function” when trying to parse an AJAX response?

最后都变了- 提交于 2020-01-08 22:40:25
问题 I'm running GM_xmlhttpRequest (in a Greasemonkey script) and storing the responseText into a newly created HTML element: var responseHTML = document.createElement('HTML'); ... onload: function() { responseHTML.innerHTML = response.responseText; } And then I am trying to find an element in responseHTML : console.log(responseHTML.getElementsByTagName('div')); console.log(responseHTML.getElementById('result_0')); The first works fine, but not the second. Any ideas? 回答1: getElementById is not a

Greasemonkey wait for ajax

放肆的年华 提交于 2020-01-07 09:25:24
问题 I have this code I want to execute it should open any links with the phrase "/ThisWord/" in it // ==UserScript== // @name Test // @namespace Test // @description Test // @version 1 // @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js // @grant none // @include http://website.com/ // ==/UserScript== setTimeout(testLinks, 10000); function testLinks() { var UseThisone = $("a:contains('/profile/')"); GM_openInTab(UseThisone[0].href); } I just wrappedd the whole thing with a

Using parentNode multiple times

瘦欲@ 提交于 2020-01-07 08:02:09
问题 I have this html code in a page <tr class="tt_row"> <td class="ttr_type"><a href="?cat=17"><img src="/pic/abc-aaa-bb.png" alt="aa/bb-cccc" /></a></td> <td class="ttr_name"><a href="abc?id=2221" title="Test.2123.123"><b>Test.2123.123</b></a><br /><span class="pre">Test test</span> <span class="newtag">NEW!</span></td> <td class="td_dl"><a href="upload/222083/1348hgfhfchf5675675/Test.2123.123"><img src="/pic/aaab.gif" style="vertical-align: middle;" alt="Upload" /></a></td> <td class="ttr_size"

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

MutationSummary - observe a specific attribute on an element, and execute some code after that attribute gets a specific value

孤人 提交于 2020-01-07 04:44:14
问题 I've written a Greasemonkey userscript for kat.cr that adds a few extra buttons inside the 'Torrents awaiting feedback' popup. The procedure is this: (provided that you have login and that you have some downloaded some torrents that "await feedback") : after you click the FEEDBACK button, the 'Torrents awaiting feedback' popup appears, containing the torrents that await feedback, i.e. the style.display attribute of e.g. the element #fancybox-wrap becomes from none to block (as I've noticed in

Script to modify a URL in greasemonkey

可紊 提交于 2020-01-06 13:54:06
问题 I'm trying to change the following url: http://www.example.net/?image=full&action=view&imageid=1361 into http://www.anothersite.com/download&id=1361&thumb=0 while preserving the id ( 1361 in the example) (change 'example.net/?image=full&action=view&image' to 'anothersite.com/download&' and add '&thumb=0' at the end of the url) How do I write a GreaseMonkey script for that? ps. I've already googled it and copied the code below. It's working, but the problem is it adds '&thumb=0' to the other

Detect react event from Tampermonkey

筅森魡賤 提交于 2020-01-06 08:11:15
问题 I'm enhancing a React front end with Tampermonkey , by adding highlights to show cursor location in a grid, and allowing users to directly enter data , rather than then enter data. After 2 or 3 cursor moves or data entry the grid refreshes or updates - no page change - and looses the highlighting I set up. I'd like to catch the refresh/update and reset the highlighting. I'm a noob.. The network tab shows post events so I tried https://jsbin.com/dixelocazo/edit?js,console var open = window

Is there any script like Greasemonkey that enables to read/write files? [closed]

南笙酒味 提交于 2020-01-06 07:14:30
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Greasemonkey is a great addon but its main drawback is that its not possible to read/write files from hard disk. So, is there any other addon that can read/write files from hard disk?? 回答1: Chickenfoot might well work for you , and it does do file IO. Or if you feel particularly frisky, you could fork off of the