Disable Greasemonkey On My Page?

Mar 4, 2009

Without getting into whether I should or shouldn't do this, I'm hoping someone can help me disable greasemonkey on my site.

I've tried the two methods I could find via Google, but neither worked code...

Is there actually a way to prevent Greasemonkey from loading on your page?

View 2 Replies


ADVERTISEMENT

AppendChild In Greasemonkey

Jul 23, 2005

I'm using the following code in a Greasemonkey script.

var start, newElement;
start = document.body;
newElement = document.createElement('b');
newText = document.createTextNode("The Greasemonkey salutes you!");
newElement.appendChild(newText);
start.appendChild(newElement);

Can anyone tell me: 1) why my string appears twice; 2) how to make it
appear just once?

I'm trying to insert code at the top of every viewed page. Obviously,
document.body appends the string to the closing body tag which is not
what I want. What could I use to insert my code as the first childnode
under 'body'?

View 3 Replies View Related

Greasemonkey 'Component Is Not Available'

Dec 27, 2006

I'm new to Greasemonkey, and have no idea how to fix this. I would post elsewhere, but I couldn't find a forum for user script development help....

View 4 Replies View Related

Greasemonkey Seems To Fail With Too Many Gm_xmhttprequests?

Mar 22, 2006

I'm trying to write a script (my first) that loops through some table
rows and gets some data from another page using gm_xmlhttprequests. It
works if I keep the loop to one, but if I try and loop through all the
rows, and therefore have say 10-20 gm_xmlhttprequests, the script just
seems to fail. But if I put an alert inside each gm_xmlhttprequest, and
wait a bit before dismissing the alert, the gm_xmlhttprequest will
succeed and the data gets updated as planned. It seems as if the
gm_xmlhttprequests don't block, or the script keeps executing without
waiting for the requests to finish. I don't have any listeners on the
script, I just want it all to load when the page loads. Also, I looked
at the javascript console and it doesn't have any errors about the
gm_xmlhttprequests.

View 1 Replies View Related

Replace Url Greasemonkey Script?

Feb 12, 2010

I am trying to learn some javascript at the moment and thought a simple greasemonkey script might be a good way to start.What I want the script to do is to replace an existing url on a website with a different url from another location within the website.

E.G. replace "/mailbox.php?inbox" with "/account.php?action=mybookmarks"

There are a lot of examples of replacing existing urls with different ones on the web but they all use id's to locate and replace urls.

This script is for a site I visit often and since I dont own it I dont have the ability to add id tags to the appropriate a tags, this makes writing this script a lot more difficult.This is the code I have so far;

Code:

// ==UserScript==
// @name NZBmatrix mailbox url replace
// @include http://nzbmatrix.com/

[code]....

View 3 Replies View Related

Tool To Tell Where Is The Error - Greasemonkey

May 7, 2010

would like to know a tool that could give me a clue on where is the error in a greasemonkey script that i'm working on. I'm using notepad, what tool could "run" the script and tell me where is the error?

View 4 Replies View Related

Turn Bookmarklet Into Greasemonkey Script

May 6, 2007

javascript:(function(){var k,x,t,i,j,p; for(k=0;x=document.links[k];k+
+){t=x.href.replace(/[%]3A/ig,':').replace(/[%]2f/
ig,'/');i=t.lastIndexOf('http');if(i>0){ t=t.substring(i);
j=t.indexOf('&'); if(j>0)t=t.substring(0,j); p=/https?://[^
s]*[^.,;'%22>s)]]/.exec(unescape(t)); if(p) x.href=p[0]; } else if
(x.onmouseover&&x.onmouseout){x.onmouseover(); if (window.status &&
window.status.indexOf('://')!=-1)x.href=window.status;
x.onmouseout(); } x. x. }})();

View 1 Replies View Related

Watching A Countdown Timer With Greasemonkey?

Mar 21, 2009

What I would like to do is watch a countdown timer on a page, like the ones on swoopo.co.uk and then perfom an action depending on what time is left on the timer.

I've installed DOM inspector on Firefox and poked around with javascript shell and I think I've figured out how to read the timer and assign that to a variable, something like this -

var timer=document.getElementById('counter_index_page_162980').innerHTML;

Now I need to watch that so I guessed this would do -

while (timer!=="00:00:01")
{
var timer=document.getElementById('counter_index_page_162980').innerHTML;
}
alert('timer at 1 sec!');

But that just brings up an "unresponsive script" error in my browser.

Am I even close to the mark? I know I'm not going to win any auctions with this but I've already paid for the bids so I may as well use them now.

View 1 Replies View Related

Greasemonkey Script Not Showing Checkboxes?

May 8, 2010

I'm using this script:

[URL]

source code:

[URL]

but it's showing no checkboxes. Here's the code related to that:

Code:

function rp_villageSelector() { //adds Village checkboxes
FM_log(3,"rp_villageSelector() called");
//get Travian Version

[code]....

View 1 Replies View Related

Greasemonkey: Insert An Element Using Regular Expression

Nov 27, 2006

I'm a newbie to JavaScript and Greasemonkey and just started learning
with 'Dive Into Greasemonkey'. I looked for an example on the web, but
unfortunately I'm still missing something...

I have a text file which is a simple database:

Key01 Text01 Url01
Key02 Text02 Url02
....

I'd like to insert after

<a href="anUrl" class="thisClass">Key01<a>

the element

<a href="Url01">Text01<a>

I tried to reuse the "Dumb Quotes" from 'Dive Into Greasemonkey' by
replacing

replacement = {
"Key01":"Key01</a><a href="Url01">Text01",
"Key02":"Key02</a><a href="Url01">Text02"
};

Unfortunately, this doesn't work, since </a><a href...is not
interpreted as a HTML tag.

So I tried this:

nodes = document.evaluate(
"//text()",
document,
null,
XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
null);
for (var i = 0; i < nodes.snapshotLength; i++) {
node = nodes.snapshotItem(i);
text = node.data;
for (key in replacements) {
if(s==key)
helpkey=key;
}
newLink = document.createElement('a');
// newLink.href = 'Url0x' ????
// newLink.appendChild(document.createTextNode(Text0x )); ???
newLink.parentNode.insertBefore(newLink, node.nextSibling);
}

I'm really lost.

View 2 Replies View Related

Greasemonkey - Display Number Of Clicks Since Last Refresh?

Jan 14, 2010

I've just started some JavaScript development, but have run into a bit of a problem with a Greasemonkey script I'm working on. This script is for personal use. I'm doing a variety of things on a page, including auto-refreshing it. I want to display the number of clicks (preferably just on links) since the last refresh.

View 1 Replies View Related

How To Disable X Button On The Web Page

Dec 18, 2006

can anyone please tell me how can i disable or remove the X button(i.e.
close button) on the browser. i just want to apply this only to the one web page of my application.

View 1 Replies View Related

Script To Disable Further In Page?

Feb 16, 2010

Is there a way to use inline javascript that will prevent any javascript after it (in the same page) from executing? So, for instance I could have something like:

-Content-
-JS A-
-Content-
-JS B-
-JS C-

'JS A' would execute, 'JS B' would be the code I'm asking about and it would cause 'JS C' to not do anything. Sorry if this is an off-the-wall question. I good with C/C++, VB, Ruby, Lua, HTML, etc, but I haven't gotten to Javascript (or Java) yet so I have no idea what the capabilities or environment setup are like.

View 8 Replies View Related

Disable Frames For A Web Page?

Apr 1, 2011

How can I disable frames for a web page?

I saw some websites which stops their site to be opened in frames, how to do that? I mean in any language or javascript?

I searched it over the internet, but didn't find anything.

View 1 Replies View Related

Copying Web Page Content - Disable

Jul 23, 2005

When browsing a web page a user has the ability to highlight content on a page (by holding down the left mouse button and dragging the mouse over the desired content). Is there a way to disable this option?

View 22 Replies View Related

Way To Disable SINGLE Script On Page

Jun 22, 2011

Is there a way to disable a SINGLE script on the page, something that a user can click and it disables only the script choosen?

View 2 Replies View Related

Disable Users Downloading Page

Sep 25, 2010

how to disable users from downloading the page?? (clicking 'save page as'.. and then error)

View 4 Replies View Related

Disable A Right Click For Just One Page On A Site?

Feb 6, 2010

How do you disable a right click for just one page on a site?

View 13 Replies View Related

JQuery :: Disable Page After Single View?

Dec 30, 2011

i have a series of pages that i only want view once and then ended ...is the a way to disable a page after a single view with jquery? or something to delay the next view to give me time to kill link.

theres pages are running off a random page selector

View 1 Replies View Related

JQuery :: How To Disable Textarea On Page Load

Feb 18, 2011

Simple question. How can I disable a textarea when a page is loaded(and re-enable it on a button click). I have tried several things with no luck. What I have tried is at the bottom. Here is mycode snippets:
Code to generate the text area
<%=Html.TextAreaFor(Function(model) model.NewestComment.Comment, 2, 60, New With {.id = "comment"})%>
JQuery Code I have tried to disable it....
<script type="text/javascript"> $(document).ready(function() {
$(
"NewestComment.Comment").attr("disabled", "disabled");
I also tried....
$(
"comment").attr("disabled", "disabled"); Neither of which worked.

View 2 Replies View Related

Disable Goto Back Page Option?

Sep 11, 2007

I want to disable all the option, which inlcude:

using right click and select back,

pressing the backspace button on keyborad

and the back option on above menu to be disabled.

and other ways of going back to previous page.

Is there a way to do that using JS.

View 7 Replies View Related

JQuery :: Disable All Clicks Till The Page Loads?

May 12, 2009

How to disable all clicks till the pageloads

View 2 Replies View Related

Script To Enable / Disable Input Elements On The Page?

Jul 26, 2011

I'm wondering if it's possible for a script to enable/disable all input elements on the page with some sort of toggle button. I googled it but didn't find anything too useful except for this: [URL] but I'm not sure how to edit it for the toggle.

View 9 Replies View Related

Disable Right Click And View Page Source Option?

Jun 17, 2011

I'll make this short and simple.

1. Disable right-click in my webpage,

2. Disable "View Page Source" option.

I've seen point no.1 implied in many websites, but haven't seen point no.2 anywhere.

View 4 Replies View Related

Conflicting .js-files In Wordpress - Disable Load Per Page?

Jan 6, 2009

We use a variety of plugins on a wordpress site we're developping. But two of them seem to be conflicting, causing one not to load/work properly. One uses jQuery and the other one uses scriptaculous/prototype. It seems those two have some issues running together.

As jQuery is the default library loaded, is there a way (without modifying the $-function) to exclude jQuery from loading from this one page where Scriptaculous is needed?

View 5 Replies View Related

Enable / Disable Checkboxes On Page When Radio Button Is Selected

Mar 18, 2011

I have written the following script which enables/disables checkboxes on my page when a radio button is selected.[code] What I would like to do is create another function called checkval() like below, which will check the value of my radio button (id: email_alerts). If the value is equal to "on" then it will run enableCheckboxes().

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved