Welcome guest, is this your first visit? Create Account now to join.
Results 1 to 6 of 6

This is a discussion on Userscript problem within the Plugins Troubleshooting section, part of the Chrome Plugins category: i google and get alot of ways to try install js on chrome that function like firefox greasemonkey i juz ...


  1. #1
    andylow4421 is offline Junior Member
    Join Date
    Sep 2009
    Posts
    3

    Default Userscript problem

    i google and get alot of ways to try install js on chrome that function like firefox greasemonkey
    i juz download 4.0.211.7 and i also cant do effect of js file...

    path : "C:\Documents and Settings\user\Local Settings\Application Data\Google\Chrome\Application\chrome.exe" --enable-extensions --enable-user-scripts

    userscript location : C:\Documents and Settings\user\Local Settings\Application Data\Google\Chrome\User Data\Default\User Scripts

    any idea for that or suggestion? thx
    Last edited by andylow4421; 09-25-2009 at 01:04 PM.

  2. #2
    sulasno's Avatar
    sulasno is offline Super Moderator
    Join Date
    Sep 2008
    Location
    Bangkok
    Posts
    1,759

    Default

    Welcome to ChromePlugins

    I can't get user scripts to work too :-(

    btw there's an update to Chrome

  3. #3
    andylow4421 is offline Junior Member
    Join Date
    Sep 2009
    Posts
    3

    Default

    thx.. reason that i choose chrome is less usage
    firefox open many tab will so hang and lag
    but i cant do the js swt ==

  4. #4
    nandayo's Avatar
    nandayo is offline Senior Member
    Join Date
    Jul 2009
    Location
    Home is where the heart is
    Posts
    160

    Default

    Quote Originally Posted by andylow4421 View Post
    thx.. reason that i choose chrome is less usage
    firefox open many tab will so hang and lag
    but i cant do the js swt ==
    What script are you using? Most scripts are created for FX w/Greasemonkey. My Gmail UserScripts are working since ages, so I can imagine that it has to do with your script?

  5. #5
    andylow4421 is offline Junior Member
    Join Date
    Sep 2009
    Posts
    3

  6. #6
    tuan_robert is offline Junior Member
    Join Date
    Oct 2009
    Posts
    2

    Default [NEED HELP] create & read cookie in Chrome

    Hi guys,

    I have a problem with cookies in Chrome.
    Here is my userscript :

    Code:
    function createCookie(c_name, value, expiredays)
    {
        var exdate=new Date();
        exdate.setDate(exdate.getDate()+expiredays);
        document.cookie=c_name+ "=" + value + ((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
    }
    
    function readCookie(c_name)
    {
        if (document.cookie.length>0)
        {
            c_start=document.cookie.indexOf(c_name + "=");
            if (c_start!=-1)
            {
                c_start=c_start + c_name.length+1;
                c_end=document.cookie.indexOf(";",c_start);
                if (c_end==-1) c_end=document.cookie.length;
                
                var value = document.cookie.substring(c_start,c_end);
                return value;
            }
        }
        return null;
    }
    
    function eraseCookie(name)
    {
       createCookie(name, "", -1);
    }
    
    // -------------------------------------------------------------------
    var man = readCookie("sex");
    if (man == null) 
    {
        man = true;
        createCookie("sex", man, 365);
        man = readCookie("sex");
        alert("man : " + man);
    }
    else
    {
        alert("my sex is man. " + man);
        man = !man;
        createCookie("sex", man, 365);
    }
    The result when I applied :
    man : true

    After that refresh page:
    my sex is man. true

    refresh page again:
    my sex is man. false

    refresh one more:
    my sex is man. false

    It's seem the setense "man = !man;" cannot run (only one)
    These codes are run well with "text" only.
    I tried with other test and it run ok.
    Code:
    var bValue = true;
    alert(bValue);
    
    bValue = !bValue;
    alert(bValue);
    
    bValue = !bValue;
    alert(bValue);
    Can anyone help me about this?

Similar Threads

  1. Mouse Gesture UserScript
    By Stamga in forum Chrome Plugins
    Replies: 49
    Last Post: 06-26-2009, 01:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •