Page 104 of 160 FirstFirst ... 45494102103104105106114154 ... LastLast
Results 1,031 to 1,040 of 1598

Thread: Request a Bot/Feature

  1. #1031
    Jacky's Avatar
    Joined
    Sep 2018
    Posts
    31
    Userbars
    0
    Thanks
    75
    Thanked
    33/10
    DL/UL
    60/0
    Mentioned
    Never
    Time Online
    5d 2h 33m
    Avg. Time Online
    3m
    Quote Originally Posted by pinkpain View Post
    (you need an account to see links) automates the whole process, but to use it you gotta have clraik rank and above (50+ posts on the site) or purchase clraik VIP.
    Really? I didn't know that. I think can use Stealth Core. Gonna look right now.
    Thank you ^^

  2. #1032
    ZeroTwo's Avatar
    Joined
    Jul 2017
    Posts
    669
    Pronouns
    She/Her
    Userbars
    33
    Thanks
    1,408
    Thanked
    636/295
    DL/UL
    80/0
    Mentioned
    58 times
    Time Online
    36d 22h 14m
    Avg. Time Online
    21m
    Could someone fix this please?


  3. #1033
    RealisticError's Avatar
    Joined
    Jul 2018
    Posts
    1,629
    Userbars
    26
    Thanks
    899
    Thanked
    2,282/840
    DL/UL
    36/0
    Mentioned
    133 times
    Time Online
    55d 4h 25m
    Avg. Time Online
    37m
    Quote Originally Posted by Wanheda View Post
    Could someone fix this please?

    what's it doing wrong, just not working entirely? I can take a look at it tomorrow if I get time

  4. #1034
    ZeroTwo's Avatar
    Joined
    Jul 2017
    Posts
    669
    Pronouns
    She/Her
    Userbars
    33
    Thanks
    1,408
    Thanked
    636/295
    DL/UL
    80/0
    Mentioned
    58 times
    Time Online
    36d 22h 14m
    Avg. Time Online
    21m
    it does'nt work and it isn't showing in the stores pages to make restock, it's supposed to help you remove the junk and only items from a list appear

  5. #1035
    *squeak*
    Bat's Avatar
    Joined
    Nov 2012
    Posts
    4,040
    Userbars
    152
    Thanks
    2,147
    Thanked
    46,687/3,563
    DL/UL
    34/1
    Mentioned
    1,769 times
    Time Online
    644d 1h 41m
    Avg. Time Online
    3h 41m

    Scripty

    Hello @(you need an account to see links),

    I've modified the script you provided, and have confirmed that it's now working in the latest version of GreaseMonkey and TamperMonkey. Here you go:

    Code:
    // ==UserScript==
    // @author         Backslash
    // @(you need an account to see links)cription    Hides items that are not in the restock list
    // @include        (you need an account to see links)
    // @(you need an account to see links)           Neopets : Shops : Smart Block
    // @(you need an account to see links)space      (you need an account to see links)
    // @version        1.1
    // ==/UserScript==
    /*
    2018-11-14 Modified by Odd
    
    - added version
    - changed the "include" so that the script will only run in shops instead of on every page
    - fixed issue with adding the listbox UI by targeting the specific cell that the author wanted it in instead of doing a page-wide find-and-replace
    - fixed issue with "rsList" showing on initial load despite the "User the Smart Block Feature" checkbox not being checked
    - replaced GM_getValue and GM_setValue with a quick and dirty localStorage getter and setter (also added a "smartBlock" prefix to each variable in order to avoid ambiguity issues when using shared storage)
    */
    
    function getValue(name, defaultValue) {
    
        var value = localStorage.getItem(name);
    
        if (value != null) return value;
    
        return defaultValue;
    }
    
    function setValue(name, value) {
    
        if (value == null || value === undefined) localStorage.removeItem(name);
        else localStorage.setItem(name, value);
    }
    
    var layout = '\
    <div class="contentModule" style="height: 100%"><table cellpadding="3" cellspacing="0" border="0" class="contentModuleTable">\
    				<tr>\
    					<td class="contentModuleHeader"> Smart Block</td>\
    				</tr>\
    				<tr>\
    					<td align="left" valign="top" class="contentModuleContent">\
    						<div align="center">\
    						<input type="checkbox" name="team" id="team" value="team" '+ getValue('smartBlock.team', '') + '> <label for="team">Use the Smart Block Feature</label><br>\
    						<div id="rsList" style="' + ((getValue('smartBlock.team') == "checked") ? "" : "display: none;") + '">Enter a list of items that you don\'t want the script to block.<br><textarea id="listBox" style="width:80%;height:125px;">'+ getValue('smartBlock.rsList', 'No Items Listed') + '</textarea><br><Br></div><button id="saveButton">Save Settings</button>\
    						</div><br />\
    					</td>\
    				</tr></table></div>\
    ';
    
    document.querySelector("td[width='304']").innerHTML += layout;
    
    /*
    2018-11-14 - Odd - no need to find-and-replace the entire body - target the cell instead
    
    document.body.innerHTML = document.body.innerHTML.replace('<td align="left" valign="top" width="304">', '<td align="left" valign="top" width="304">' + layout);
    */
    
    document.getElementById('team').addEventListener('click', sBlockClick, false);
    function sBlockClick() {
        if (document.getElementById('team').checked == true) {
            document.getElementById('rsList').setAttribute("style", "");
        }
        else {
            document.getElementById('rsList').setAttribute("style", "display:none;");
        }
    }
    
    document.getElementById('saveButton').addEventListener('click', saveSettings, false);
    
    function saveSettings() {
        setValue('smartBlock.rsList', document.getElementById('listBox').value);
    
        if (document.getElementById('team').checked == true) {
            setValue('smartBlock.team', 'checked');
        } else {
            setValue('smartBlock.team');
        }
    
        window.location.reload();
    }
    
    function GetBetween(zStr, zStart, zEnd, zPos) {
        var z1 = zStr.indexOf(zStart, (zPos === undefined ? 0 : zPos)); var z2 = zStr.indexOf(zEnd, z1);
        return z2 > z1 && z1 > -1 ? zStr.substring(z1 + zStart.length, z2) : '';
    }
    
    
    function AdBlock(c) {
        a = document.evaluate("//table[@align = 'center' and @cellpadding = '4']/tbody//td", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
        b = a.snapshotLength;
        h = new Array();
        if (b > 0) {
            hiddenItems = document.evaluate("//table[@align = 'center' and @cellpadding = '4']", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null).snapshotItem(0).innerHTML;
            for (i = 0; i < b; i++) {
                if (a.snapshotItem(i).getElementsByTagName('a')[0].getAttribute("onclick") != null) {
                    itemName = GetBetween(a.snapshotItem(i).getElementsByTagName('a')[0].getAttribute("onclick"), "you wish to purchase ", " at ");
                    for (j = 0; j < c.length; j++) {
                        if (c[j].toLowerCase() == itemName.toLowerCase()) {
                            h.push(a.snapshotItem(i));
                            break;
                        }
                    }
                    a.snapshotItem(i).parentNode.removeChild(a.snapshotItem(i));
                }
            }
            if (h.length > 0) {
                for (i = 0; i < (h.length / 6) + 1; i++) {
                    f = document.evaluate("//table[@align = 'center' and @cellpadding = '4']/tbody/tr", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null).snapshotItem(i);
                    for (j = 0; j < 6 ; j++) {
                        if (typeof h[0] != 'undefined') {
                            f.appendChild(h[0]);
                            h.splice(0, 1);
                        }
                    }
                }
            }
            document.evaluate("//td[@class = 'contentModuleHeader']/b", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null).snapshotItem(0).innerHTML = "Shop Inventory currently contains <b><font color=#3BB9FF>" + b + "</font></b> items (click <u><div style='cursor:pointer; display:inline;' id='hiddenItems'>here</div></u> to view full shop stock)";
            document.getElementById('hiddenItems').addEventListener('click', function () { document.evaluate("//table[@align = 'center' and @cellpadding = '4']", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null).snapshotItem(0).innerHTML = hiddenItems; }, false);
        }
    }
    
    if (getValue('smartBlock.team') == "checked") {
        var items = getValue('smartBlock.rsList').split('\n');
        AdBlock(items);
    }

  6. The Following User Says Thank You to Bat For This Useful Post:

    ZeroTwo (11-14-2018)

  7. #1036
    ZeroTwo's Avatar
    Joined
    Jul 2017
    Posts
    669
    Pronouns
    She/Her
    Userbars
    33
    Thanks
    1,408
    Thanked
    636/295
    DL/UL
    80/0
    Mentioned
    58 times
    Time Online
    36d 22h 14m
    Avg. Time Online
    21m
    @(you need an account to see links) the script is showing but isn't blocking the junk on shops :/ so isn't working at all

    Code:
    Use the Smart Block Feature
    Enter a list of items that you don't want the script to block.

  8. #1037
    *squeak*
    Bat's Avatar
    Joined
    Nov 2012
    Posts
    4,040
    Userbars
    152
    Thanks
    2,147
    Thanked
    46,687/3,563
    DL/UL
    34/1
    Mentioned
    1,769 times
    Time Online
    644d 1h 41m
    Avg. Time Online
    3h 41m
    Quote Originally Posted by Wanheda View Post
    @(you need an account to see links) the script is showing but isn't blocking the junk on shops :/ so isn't working at all

    Code:
    Use the Smart Block Feature
    Enter a list of items that you don't want the script to block.
    Here's what I did to get this script working. Start by checking "Use the Smart Block Feature":

    (you need an account to see links)

    Fill out the list of items that you want the script to look out for (the list is line delimited):

    (you need an account to see links)

    Then click "Save Settings", and the page will refresh. Now, whenever you visit that shop, the script will target the specific items on your list and filter everything else out as seen below:

    (you need an account to see links)

  9. #1038
    ZeroTwo's Avatar
    Joined
    Jul 2017
    Posts
    669
    Pronouns
    She/Her
    Userbars
    33
    Thanks
    1,408
    Thanked
    636/295
    DL/UL
    80/0
    Mentioned
    58 times
    Time Online
    36d 22h 14m
    Avg. Time Online
    21m
    Quote Originally Posted by Odd View Post
    Here's what I did to get this script working. Start by checking "Use the Smart Block Feature":

    (you need an account to see links)

    Fill out the list of items that you want the script to look out for (the list is line delimited):

    (you need an account to see links)

    Then click "Save Settings", and the page will refresh. Now, whenever you visit that shop, the script will target the specific items on your list and filter everything else out as seen below:

    (you need an account to see links)
    yes, it was what I did but still does'nt separate the items that I have in the list, but all the items appear...

    Last edited by ZeroTwo; 11-14-2018 at 06:07 PM.

  10. #1039
    *squeak*
    Bat's Avatar
    Joined
    Nov 2012
    Posts
    4,040
    Userbars
    152
    Thanks
    2,147
    Thanked
    46,687/3,563
    DL/UL
    34/1
    Mentioned
    1,769 times
    Time Online
    644d 1h 41m
    Avg. Time Online
    3h 41m
    Quote Originally Posted by Wanheda View Post
    yes, it was what I did but still does'nt separate the items that I have in the list, but all the items appear...

    It looks like you have another script that is inserting text into the item html that the filter script isn't programmed to compensate for. Can you try disabling all of the other scripts that are running when you visit Fresh Foods and make sure that only the Smart Block script is active?

  11. #1040
    ZeroTwo's Avatar
    Joined
    Jul 2017
    Posts
    669
    Pronouns
    She/Her
    Userbars
    33
    Thanks
    1,408
    Thanked
    636/295
    DL/UL
    80/0
    Mentioned
    58 times
    Time Online
    36d 22h 14m
    Avg. Time Online
    21m
    Quote Originally Posted by Odd View Post
    It looks like you have another script that is inserting text into the item html that the filter script isn't programmed to compensate for. Can you try disabling all of the other scripts that are running when you visit Fresh Foods and make sure that only the Smart Block script is active?
    It was the auto haggler :/

    Well so I need another AH so the other script can work :/

Page 104 of 160 FirstFirst ... 45494102103104105106114154 ... LastLast

Posting Permissions

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