greasemonkey

Element's CSS, reverts back at the end of page load?

拟墨画扇 提交于 2020-01-26 02:35:36
问题 I am trying to change the position of <div class="BannerRedesign" id="Banner" style="position: fixed ! important; height: 36px ! important; width: 100% ! important;"> <div class="BannerCenterContainer" id="NavigationRedesignBannerContainer"> (roblox banner element, trying to make it not float) to relative using Greasemonkey, with all privileges enabled. But, every time, at the end of the loading of the document, it reverts to floating. I even tried appending bannercentercontainer to a

Sharing variables between 2 separate scripts [duplicate]

浪子不回头ぞ 提交于 2020-01-25 00:22:22
问题 This question already has an answer here : Get 2 userscripts to interact with each other? (1 answer) Closed 2 years ago . I'm trying to share variable between 2 different Tampermonkey scripts running in 2 separate tabs. I tried using GM_setValue in one script then retrieving it with GM_getValue in the other one but without any success, so I assume there's separate storage for each script. Is there any easy way to do this? Am I just missing something simple? Can I somehow make both scripts

Obfuscated code throws error in a Greasemonkey Script

♀尐吖头ヾ 提交于 2020-01-25 00:00:27
问题 I have a Greasemonkey script that I want to be obfuscated. I was wondering what goes wrong with the available "Packer" Javascript obfuscator. It compresses the script fine but after installation, the script doesn't work. Is there any PHP Class that would obfuscate/pack GM scripts and retain functionality? Or how do I go about doing this? Error: Timestamp: 01-05-2013 13:11:35 Error: missing ; before statement Source File: file://file_path Line: 1 Script: // ==UserScript== // @name Test //

How can a Greasemonkey script split a link into three related links? [closed]

妖精的绣舞 提交于 2020-01-24 02:11:04
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I want to use Greasemonkey to link Redmine issue numbers which are displayed in cgit commit messages to their issues or projects. The HTML source of the cgit Commit messages is like this. <a href='/editingmodule

Programmatically fill reactjs form

帅比萌擦擦* 提交于 2020-01-23 01:37:52
问题 I am writing an userscript and I can't manage to fill a form made by reactjs. My code: document.querySelector("#id-username").value = "name@domain.xx"; // Attempt to notify framework using input event document.querySelector("#id-username").dispatchEvent(new Event("input", {data:"name@domain.xx"})); // Attempt to notify framework using change event document.querySelector("#id-username").dispatchEvent(new Event("change")); // This doesn't help either document.querySelector("#id-username")

GM_openInTab (or any other GM_ function) is not defined?

吃可爱长大的小学妹 提交于 2020-01-21 12:22:06
问题 When my GM script does this: var curTab = GM_openInTab(url); it results in a 'GM_openInTab is not defined' JavaScript error in the Browser Console. I also tried using var curWin = window.open(url); instead of GM_openInTab but it had no affect. What I'm trying to do with this GM script is: for a given website (domain name), go through a list (array) of URLs on this domain and look for items of interest. What's wrong with my code or approach? I'm using Greasemonkey 2.3 with Firefox 33.1.1 and

How to use Greasemonkey to remove a href block [duplicate]

a 夏天 提交于 2020-01-17 08:11:01
问题 This question already has answers here : Greasemonkey, delete <a> element (2 answers) Closed 4 years ago . I'm trying to remove the following line of code from http://trakt.tv/calendars/my/shows/ using Greasemonkey: <a href="/vip"> <div class="huckster-vip-square"> <div class="inner"> <div class="text"> <h1>Support Trakt & become a VIP!</h1> <h2>Hide advertising, unlock extended features and help Trakt grow.</h2> <div class="btn btn-primary">Learn More</div> </div> </div> </div> </a> How can

How to use Greasemonkey to remove a href block [duplicate]

左心房为你撑大大i 提交于 2020-01-17 08:10:10
问题 This question already has answers here : Greasemonkey, delete <a> element (2 answers) Closed 4 years ago . I'm trying to remove the following line of code from http://trakt.tv/calendars/my/shows/ using Greasemonkey: <a href="/vip"> <div class="huckster-vip-square"> <div class="inner"> <div class="text"> <h1>Support Trakt & become a VIP!</h1> <h2>Hide advertising, unlock extended features and help Trakt grow.</h2> <div class="btn btn-primary">Learn More</div> </div> </div> </div> </a> How can

window.close and self.close do not close the window in Chrome

孤街醉人 提交于 2020-01-17 05:32:17
问题 The issue is that when I invoke window.close() or self.close() it doesn't close the window. Now there seems to be a belief that in Chrome you can't close by script any window that is not script created. That is patently false but regardless it is supposed to still do it, even if it requires to pop up an alert to confirm. These are not happening. So does anyone have real, functional and proven method of closing a window using something like javascript:window.close() or javascript:self.close()

How to load a table, from another webpage, into an array?

纵然是瞬间 提交于 2020-01-15 07:10:07
问题 I am creating a Greasemonkey/Tampermonkey script that puts some stats into an array. Using JavaScript, how would I make it so a page loads a URL (football.fantasysports.yahoo.com/f1/326198/pointsagainst?pos=QB) in the background and creates an array with the first two columns ( Rank and Team )? The problem I am having is doing all of this in the background, I presume I would be using AJAX. Any help would be appreciated. 回答1: For a static page (like the one you linked), use GM_xmlhttpRequest()