Instructions on how to flip your deck without Convulsion of Nature and put cards in the opponent's hand without Exchange
Christen57 | #1 | Sun Mar 14, 2021 1:06 PM | Delete | Currently, in duels and in solo mode, every time you hover your mouse over a card in your hand, duelingbook brings up a little menu listing the things you can do with that card, such as revealing it, declaring it, placing it on the top or bottom of the deck, banishing it, sending it to the graveyard, summoning it (if it's a monster), activating it (if it's a spell/trap), and so on.

After that, duelingbook checks if certain cards, such as Exchange, are face-up on the field with an effect that requires a player to put a card in their opponent's hand. If such a card exists, duelingbook will include in the little menu the option to take that card you hovered your mouse over that is in your hand and put that card in your opponent's hand.

Also, every time you hover your mouse over your deck, duelingbook brings up a little menu listing the things you can do with your deck, such as viewing it, showing it to your opponent, banishing the top card of it face-up or face-down, sending the top card from it to the graveyard, shuffling it, drawing a card from it, and so on.

After that, duelingbook checks if a certain card such as Convulsion of Nature is face-up on the field with an effect that requires you to flip your deck, and if such a card exists, or if no card exists but your deck is still face-up due to being previously flipped face-up, duelingbook will include in the little menu the option to flip your deck.

Also, every time you hover your mouse over a field spell in your deck while viewing said deck, duelingbook brings up a little menu listing the things you can do with that field spell, such as banishing it face-up or face-down, sending it to the graveyard, activating it, adding it to your hand, and so on.

After that, duelingbook checks if a certain card such as Set Rotation is face-up on the field with an effect that requires you to place a field spell in your opponent's field zone, and if such a card exists on the field, duelingbook will include in the little menu the option to place that field spell in your opponent's field zone.

Now let's say you want to put a card in your opponent's hand, flip your deck, place a field spell from your deck in your opponent's field zone, or banish a random card from your extra deck, but don't have any of the required face-up cards on the field necessary to have the option to do any of these tasks, or you do have a face-up card on the field with an effect that requires you to do one of these tasks but Xteven either didn't program or forgot to program that card to be able to let you perform that task.
That's where javascript comes in. With some javascript code, you can make it possible to do all of the above mentioned tasks, and more, without needing any of the required programmed cards face-up on the field to be able to do so.
https://www.duelingbook.com/replay?id=58994-26564203

To use javascript, you need to make sure javascript is enabled and allowed on your browser and on duelingbook, and refresh/reload the page if you need to.

Create a new javascript bookmark, or edit an already-existing one, and name it whatever you want. I will be naming mine "give cards to opponent".
In the URL/Address/Location box, copy and paste this code:
[code:etrmmb2b]javascript:function findCard(a) {if (a != "Question" && a != "Jack-In-The-Hand") {return true} else {return false}}[/code:etrmmb2b]
Save your bookmark.

Go to duelingbook, click your bookmark, and then, until you either refresh/reload the duelingbook page, close the tab/browser, or switch to a different tab/browser, you will always be able to perform the aforementioned tasks, solo mode after solo mode, duel after duel, without requiring any specific face-up cards on the field to be able to do so.
Remember how I said that duelingbook normally checks which programmed cards are face-up on the field before making the options available to perform those corresponding tasks? Well, it's hard for me to explain in full detail how this code works, but basically this code tricks duelingbook into thinking that all of the appropriate programmed cards (Convulsion of Nature, Exchange, Set Rotation, and so on) are face-up on the field, even if none of them really are, causing duelingbook to make these options available for you at all times.
Now if any new card gets released in the future (or if there are any already-existing cards on duelingbook) that require a player to flip their deck, put a card in their opponent's hand, put a field spell in their opponent's field zone, or remove a random card from their extra deck, but Xteven either doesn't program or forgets to program that card to let that player perform that required task, players can fall back on this javascript code to acquire the option to do these tasks. |
|
james123 | #2 | Sun Mar 14, 2021 1:20 PM | Delete | Looks kinda Illegal but fun at the Same time! If they see you in rated with these Scripts, something's bad gonna happen... |
|
Christen57 | #3 | Sun Mar 14, 2021 1:41 PM | Delete | [quote="james123":kft2x01s]Looks kinda Illegal but fun at the Same time! If they see you in rated with these Scripts, something's bad gonna happen...[/quote:kft2x01s]
Nah it's perfectly legal and already possible to set spells/traps from your hand to the monster zone, put cards in your opponent's hand, put field spells in your opponent's field zone, and banish random cards from the extra deck, as long as you have the appropriate programmed face-up card on the field. This code simply makes it so you don't need any of those face-up cards on the field to be able to do these things. |
|
KTeknis | #4 | Sun Mar 14, 2021 7:34 PM | Delete | Kinda remind me when I face an opponent In Custom Card who have a card that makes the opponent Banish 3 random ED card face down, like Pot of Extravagance. He banished a copy of Pot of Extravagance at the start of the duel, then when he activate that effect, he place that Extravagance into the field and hand it to me for me to activate.
I can see this script might find some uses in Custom Cards. |
|
Neo_Fire_Sonic | #5 | Sun Mar 14, 2021 8:06 PM | Delete | [quote="KTeknis":161jqey9]Kinda remind me when I face an opponent In Custom Card who have a card that makes the opponent Banish 3 random ED card face down, like Pot of Extravagance. He banished a copy of Pot of Extravagance at the start of the duel, then when he activate that effect, he place that Extravagance into the field and hand it to me for me to activate.
I can see this script might find some uses in Custom Cards.[/quote:161jqey9] thing is though they should already make some of these options for customs. |
|
KTeknis | #6 | Sun Mar 14, 2021 8:15 PM | Delete | [quote="Neo_Fire_Sonic":1z669d8a]thing is though they should already make some of these options for customs.[/quote:1z669d8a] Probably, but tbh I'm kinda pessimistic that It would happen.
Although there's one thing I wondered, It seems that the script makes it so that the game treats as if all cards that allow extra actions like Convulsion of Nature, Magical Hats, etc is face-up on the field, but the script seems to exclude Question and Jack in the Hand.
Also, is it possible to enable actions that are card specific with script too, like Time Thief Redoer's topdeck yoink, or Extravagance's Banish Random ED Cards. |
|
Jedx_EX | #7 | Mon Mar 15, 2021 7:15 AM | Delete | [quote="KTeknis":1zxvb9i8][quote="Neo_Fire_Sonic":1zxvb9i8]thing is though they should already make some of these options for customs.[/quote:1zxvb9i8] Probably, but tbh I'm kinda pessimistic that It would happen. Although there's one thing I wondered, It seems that the script makes it so that the game treats as if all cards that allow extra actions like Convulsion of Nature, Magical Hats, etc is face-up on the field, but the script seems to exclude Question and Jack in the Hand. Also, is it possible to enable actions that are card specific with script too, like Time Thief Redoer's topdeck yoink, or Extravagance's Banish Random ED Cards.[/quote:1zxvb9i8] Before this, I made Custom Cards that match the name of "Green Button" cards that are kept in the Extra Deck, (but I hardly ever used them). Convulsion of Nature: https://www.duelingbook.com/card?id=2230821Jack-In-The-Hand: https://www.duelingbook.com/card?id=2231738Magical Hats: https://www.duelingbook.com/card?id=2230890Pot of Extravagance: https://www.duelingbook.com/card?id=2231753Question: https://www.duelingbook.com/card?id=2226303Set Rotation: https://www.duelingbook.com/card?id=2230833 |
|
Christen57 | #8 | Mon Mar 15, 2021 8:57 AM | Delete | [quote="KTeknis":2oymou90][quote="Neo_Fire_Sonic":2oymou90]thing is though they should already make some of these options for customs.[/quote:2oymou90] Probably, but tbh I'm kinda pessimistic that It would happen. Although there's one thing I wondered, It seems that the script makes it so that the game treats as if all cards that allow extra actions like Convulsion of Nature, Magical Hats, etc is face-up on the field, but the script seems to exclude Question and Jack in the Hand. Also, is it possible to enable actions that are card specific with script too, like Time Thief Redoer's topdeck yoink, or Extravagance's Banish Random ED Cards.[/quote:2oymou90] Question is a Normal Spell card with an effect that says "When activating this card, your opponent cannot check cards in the Graveyard." Now, every time a player clicks on a graveyard, duelingbook first checks if Question is face-up on the field. If not, duelingbook let's that player view that graveyard as normal, but if it is face-up on the field, duelingbook blocks that player from viewing that graveyard (nothing happens when they click the graveyard, it doesn't show up) until Question is removed from the field. The reason I excluded Question is because when I didn't exclude it, the code would trick duelingbook into thinking that all of the programmed cards that allow specific actions like Convulsion of Nature and whatnot are face-up on the field, but it would also trick duelingbook into thinking that Question was face-up on the field, causing duelingbook to never allow me to view any graveyard. Question had to be excluded when running this code or else duelingbook would permanently block me from viewing the graveyard in any of my duels or solo mode. I also ended up having to exclude Jack-In-The-Hand because when I didn't exclude that, duelingbook would include the option to add a card in your hand to your opponent's hand twice.  As you can see, there's the option to add the card to the opponent's hand for Exchange, and a second option to add the card to the opponent's hand for Jack-In-The-Hand. I didn't think it would be necessary to have 2 options that do the exact same thing, so I excluded Jack-In-The-Hand so only 1 option to put the card in the opponent's hand would appear instead of 2. |
|
Nothiccupcake | #9 | Mon Mar 15, 2021 8:58 AM | Delete | Whenever I try editing a bookmark it doesn't show address nor location box |
|
Christen57 | #10 | Mon Mar 15, 2021 9:00 AM | Delete | [quote="Nothiccupcake":1yej3kqf]Whenever I try editing a bookmark it doesn't show address nor location box[/quote:1yej3kqf]
What browser are you using? |
|
Nothiccupcake | #11 | Mon Mar 15, 2021 9:04 AM | Delete | I'm using chrome |
|
Christen57 | #12 | Mon Mar 15, 2021 9:23 AM | Delete | [quote="Nothiccupcake":14m58ak4]I'm using chrome[/quote:14m58ak4] You should be able to edit a bookmark on google chrome by right-clicking on it and clicking "Edit..."

You should be able to create any bookmark on google chrome by right clicking an empty part of the bookmark bar, then clicking "Bookmark manager" to open up the bookmark manager page, then clicking the 3 dots at the top right corner of the screen and then clicking "Add new bookmark".

The URL box is where you would paste the code in this case. Some browsers such as google chrome call it the URL box. Other browsers such as Firefox call it the Location box, but they're still the same. |
|
Nothiccupcake | #13 | Mon Mar 15, 2021 9:26 AM | Delete | Oh yea it works, thanks. Now how do I know the list of commands I can add outside of the exchange one? |
|
Nothiccupcake | #14 | Mon Mar 15, 2021 9:27 AM | Delete | Oh wait you added everything nvm |
|
Nothiccupcake | #15 | Mon Mar 15, 2021 9:32 AM | Delete | Is there a way to set monsters in the spell/trap zones like artifacts? |
|
Christen57 | #16 | Mon Mar 15, 2021 10:05 AM | Delete | [quote="Nothiccupcake":bre59eho]Is there a way to set monsters in the spell/trap zones like artifacts?[/quote:bre59eho] I looked into that, and unfortunately, no, I can't seem to make that possible at the moment. However, if you include the phrase "You can Set this card from your hand to your Spell" in any monster's effect, even if it's a custom card, ritual monster, or even a normal monster, duelingbook should allow you to set it to the spell/trap zone. When hovering your mouse over any monster in your hand, even if it's a ritual or normal monster, duelingbook checks if the phrase "You can Set this card from your hand to your Spell" is anywhere in that monster's text. If it is, you will see the option to set it to your spell/trap zone, as shown here: https://www.duelingbook.com/replay?id=58994-26594144 |
|
Jedx_EX | #17 | Mon Mar 15, 2021 3:45 PM | Delete | [quote="Christen57":3i3ej7ad][quote="Nothiccupcake":3i3ej7ad]Is there a way to set monsters in the spell/trap zones like artifacts?[/quote:3i3ej7ad] I looked into that, and unfortunately, no, I can't seem to make that possible at the moment. However, if you include the phrase "You can Set this card from your hand to your Spell" in any monster's effect, even if it's a custom card, ritual monster, or even a normal monster, duelingbook should allow you to set it to the spell/trap zone. When hovering your mouse over any monster in your hand, even if it's a ritual or normal monster, duelingbook checks if the phrase "You can Set this card from your hand to your Spell" is anywhere in that monster's text. If it is, you will see the option to set it to your spell/trap zone, as shown here: https://www.duelingbook.com/replay?id=58994-26594144[/quote:3i3ej7ad] I haven't played Artifacts, so I thought they only check for names. Thanks for the revelation. What else do they check for in cards? |
|
Christen57 | #18 | Tue Mar 16, 2021 10:02 AM | Delete | [quote="Jedx_EX":2k2imk05][quote="Christen57":2k2imk05][quote="Nothiccupcake":2k2imk05]Is there a way to set monsters in the spell/trap zones like artifacts?[/quote:2k2imk05] I looked into that, and unfortunately, no, I can't seem to make that possible at the moment. However, if you include the phrase "You can Set this card from your hand to your Spell" in any monster's effect, even if it's a custom card, ritual monster, or even a normal monster, duelingbook should allow you to set it to the spell/trap zone. When hovering your mouse over any monster in your hand, even if it's a ritual or normal monster, duelingbook checks if the phrase "You can Set this card from your hand to your Spell" is anywhere in that monster's text. If it is, you will see the option to set it to your spell/trap zone, as shown here: https://www.duelingbook.com/replay?id=58994-26594144[/quote:2k2imk05] I haven't played Artifacts, so I thought they only check for names. Thanks for the revelation. What else do they check for in cards?[/quote:2k2imk05] After looking at duelingbook's code, here are some other things checked. When hovering your mouse over any spell/trap in your graveyard, duelingbook checks to see if it's name is any of the following: "First-Aid Squad" "Paleozoic Olenoides" "Paleozoic Hallucigenia" "Paleozoic Canadia" "Paleozoic Pikaia" "Paleozoic Eldonia" "Paleozoic Dinomischus" "Paleozoic Marrella" "Paleozoic Leanchoilia" "The Phantom Knights of Dark Gauntlets" "The Phantom Knights of Shadow Veil" "The Prime Monarch" If that spell/trap is any of these names, you will see the option to special summon it from the graveyard in addition to the other options when hovering your mouse over it, even if it's a custom card. https://www.duelingbook.com/replay?id=58994-26629922Another thing duelingbook checks is if any card, even if it's a custom card, has the phrase "This card can attack while in face-up Defense Position" anywhere in it's text. If it does, you will be able to declare attacks with it while it's in defense position. This is to allow Superheavy Samurai monsters and whatnot to attack while they're in defense position if they have effects that say they can. https://www.duelingbook.com/replay?id=58994-26630160 |
|
Jedx_EX | #19 | Tue Mar 16, 2021 2:15 PM | Delete | If I thought about it, I wouldn't have forgotten about the "TrapMons" or "SuperheavySams", but thank you for your time answering our questions. |
|
robinatk | #20 | Sun Mar 21, 2021 6:07 PM | Delete | When using Card of Fate I can only select 1 card, any chance this can be 3 such as Crowley? 1 is a bit useless as you can just search deck and add to hand Any cards that let you check the top 3 cards of your own deck and add 1 to hand and then place back in any order? |
|
Christen57 | #21 | Mon Mar 22, 2021 2:25 PM | Delete | [quote="robinatk":3ebhacte]When using Card of Fate I can only select 1 card, any chance this can be 3 such as Crowley? 1 is a bit useless as you can just search deck and add to hand Any cards that let you check the top 3 cards of your own deck and add 1 to hand and then place back in any order?[/quote:3ebhacte]
If you're referring to the link monster called Crowley, the First Propheseer, you're supposed to take 3 appropriate cards from your deck, either banish them face-up, send them to the graveyard, or place them on the field, then have the opponent roll a dice like 1-2 Card A 3-4 Card B 5-6 Card C, add the card to your hand, and shuffle the rest back to the deck. You don't use the card of fate button for that. |
|
Jedx_EX | #22 | Tue Mar 23, 2021 9:20 PM | Delete | [quote="Christen57":1xyk171c][quote="robinatk":1xyk171c]When using Card of Fate I can only select 1 card, any chance this can be 3 such as Crowley? 1 is a bit useless as you can just search deck and add to hand Any cards that let you check the top 3 cards of your own deck and add 1 to hand and then place back in any order?[/quote:1xyk171c]
If you're referring to the link monster called Crowley, the First Propheseer, you're supposed to take 3 appropriate cards from your deck, either banish them face-up, send them to the graveyard, or place them on the field, then have the opponent roll a dice like 1-2 Card A 3-4 Card B 5-6 Card C, add the card to your hand, and shuffle the rest back to the deck. You don't use the card of fate button for that.[/quote:1xyk171c]
Now that I think about it, why was there a button for Card of Fate in the first place? It implied that the card was chosen randomly, even though I searched it. |
|
robinatk | #23 | Wed Mar 24, 2021 5:56 AM | Delete | [quote="Christen57":2pihgflp][quote="robinatk":2pihgflp]When using Card of Fate I can only select 1 card, any chance this can be 3 such as Crowley? 1 is a bit useless as you can just search deck and add to hand Any cards that let you check the top 3 cards of your own deck and add 1 to hand and then place back in any order?[/quote:2pihgflp]
If you're referring to the link monster called Crowley, the First Propheseer, you're supposed to take 3 appropriate cards from your deck, either banish them face-up, send them to the graveyard, or place them on the field, then have the opponent roll a dice like 1-2 Card A 3-4 Card B 5-6 Card C, add the card to your hand, and shuffle the rest back to the deck. You don't use the card of fate button for that.[/quote:2pihgflp]
Well that is completely wrong as Crowley has it's own green button for resolving it's effect as most cards that randomly add a card from the deck do |
|
Christen57 | #24 | Wed Mar 24, 2021 7:46 AM | Delete | [quote="Jedx_EX":216zjjdo][quote="Christen57":216zjjdo][quote="robinatk":216zjjdo]When using Card of Fate I can only select 1 card, any chance this can be 3 such as Crowley? 1 is a bit useless as you can just search deck and add to hand Any cards that let you check the top 3 cards of your own deck and add 1 to hand and then place back in any order?[/quote:216zjjdo]
If you're referring to the link monster called Crowley, the First Propheseer, you're supposed to take 3 appropriate cards from your deck, either banish them face-up, send them to the graveyard, or place them on the field, then have the opponent roll a dice like 1-2 Card A 3-4 Card B 5-6 Card C, add the card to your hand, and shuffle the rest back to the deck. You don't use the card of fate button for that.[/quote:216zjjdo]
Now that I think about it, why was there a button for Card of Fate in the first place? It implied that the card was chosen randomly, even though I searched it.[/quote:216zjjdo]
I don't know. I never had to use the card myself.
[quote="robinatk":216zjjdo][quote="Christen57":216zjjdo][quote="robinatk":216zjjdo]When using Card of Fate I can only select 1 card, any chance this can be 3 such as Crowley? 1 is a bit useless as you can just search deck and add to hand Any cards that let you check the top 3 cards of your own deck and add 1 to hand and then place back in any order?[/quote:216zjjdo]
If you're referring to the link monster called Crowley, the First Propheseer, you're supposed to take 3 appropriate cards from your deck, either banish them face-up, send them to the graveyard, or place them on the field, then have the opponent roll a dice like 1-2 Card A 3-4 Card B 5-6 Card C, add the card to your hand, and shuffle the rest back to the deck. You don't use the card of fate button for that.[/quote:216zjjdo]
Well that is completely wrong as Crowley has it's own green button for resolving it's effect as most cards that randomly add a card from the deck do[/quote:216zjjdo]
Fine, but I never used the card myself so I didn't know it had it's own button. |
|
robinatk | #25 | Fri Mar 26, 2021 9:34 AM | Delete | [quote="Christen57":1v8u28y1][quote="Jedx_EX":1v8u28y1][quote="Christen57":1v8u28y1]
If you're referring to the link monster called Crowley, the First Propheseer, you're supposed to take 3 appropriate cards from your deck, either banish them face-up, send them to the graveyard, or place them on the field, then have the opponent roll a dice like 1-2 Card A 3-4 Card B 5-6 Card C, add the card to your hand, and shuffle the rest back to the deck. You don't use the card of fate button for that.[/quote:1v8u28y1]
Now that I think about it, why was there a button for Card of Fate in the first place? It implied that the card was chosen randomly, even though I searched it.[/quote:1v8u28y1]
I don't know. I never had to use the card myself.
[quote="robinatk":1v8u28y1][quote="Christen57":1v8u28y1]
If you're referring to the link monster called Crowley, the First Propheseer, you're supposed to take 3 appropriate cards from your deck, either banish them face-up, send them to the graveyard, or place them on the field, then have the opponent roll a dice like 1-2 Card A 3-4 Card B 5-6 Card C, add the card to your hand, and shuffle the rest back to the deck. You don't use the card of fate button for that.[/quote:1v8u28y1]
Well that is completely wrong as Crowley has it's own green button for resolving it's effect as most cards that randomly add a card from the deck do[/quote:1v8u28y1]
Fine, but I never used the card myself so I didn't know it had it's own button.[/quote:1v8u28y1]
If you didn't know why post a reply? |
|
Christen57 | #26 | Fri Mar 26, 2021 9:40 AM | Delete | [quote="robinatk":1nyzppfl][quote="Christen57":1nyzppfl][quote="Jedx_EX":1nyzppfl]
Now that I think about it, why was there a button for Card of Fate in the first place? It implied that the card was chosen randomly, even though I searched it.[/quote:1nyzppfl]
I don't know. I never had to use the card myself.
[quote="robinatk":1nyzppfl]
Well that is completely wrong as Crowley has it's own green button for resolving it's effect as most cards that randomly add a card from the deck do[/quote:1nyzppfl]
Fine, but I never used the card myself so I didn't know it had it's own button.[/quote:1nyzppfl]
If you didn't know why post a reply?[/quote:1nyzppfl]
I know that back on dueling network, we didn't have these kinds of buttons, so we had to pick random stuff the old fashioned way (using dice, assigning numbers, and so on). |
|
Lil Oldman | #27 | Fri Mar 26, 2021 9:42 AM | Delete | I always wondered, is there a statement where it allows you to take the card at the bottom of your deck (without having to shuffle, like a mill/draw button but for the bottom of the deck) |
|
Christen57 | #28 | Fri Mar 26, 2021 12:06 PM | Delete | [quote="Lil Oldman":3ei58peh]I always wondered, is there a statement where it allows you to take the card at the bottom of your deck (without having to shuffle, like a mill/draw button but for the bottom of the deck)[/quote:3ei58peh]
I don't think so, at least not at the moment, which is a shame since Goblin Circus has an effect that needs you to interact with the bottom card of your deck, but you can still get around it by flipping your deck, milling the card that is now at the top, then flipping the deck back over. |
|
robinatk | #29 | Fri Mar 26, 2021 12:44 PM | Delete | [quote="Christen57":3ehg25j8][quote="Lil Oldman":3ehg25j8]I always wondered, is there a statement where it allows you to take the card at the bottom of your deck (without having to shuffle, like a mill/draw button but for the bottom of the deck)[/quote:3ehg25j8] I don't think so, at least not at the moment, which is a shame since Goblin Circus has an effect that needs you to interact with the bottom card of your deck, but you can still get around it by flipping your deck, milling the card that is now at the top, then flipping the deck back over.[/quote:3ehg25j8] But then again Christen doesn't know most of the cards that have buttons so how would he know  |
|
Christen57 | #30 | Fri Mar 26, 2021 7:45 PM | Delete | [quote="robinatk":3urkrg36][quote="Christen57":3urkrg36][quote="Lil Oldman":3urkrg36]I always wondered, is there a statement where it allows you to take the card at the bottom of your deck (without having to shuffle, like a mill/draw button but for the bottom of the deck)[/quote:3urkrg36] I don't think so, at least not at the moment, which is a shame since Goblin Circus has an effect that needs you to interact with the bottom card of your deck, but you can still get around it by flipping your deck, milling the card that is now at the top, then flipping the deck back over.[/quote:3urkrg36] But then again Christen doesn't know most of the cards that have buttons so how would he know  [/quote:3urkrg36] Yeah I just checked, and I was right. Goblin Circus has no button at the moment. |
|
Lil Oldman | #31 | Fri Mar 26, 2021 7:46 PM | Delete | [quote="Christen57":2b50njpy][quote="robinatk":2b50njpy][quote="Christen57":2b50njpy] I don't think so, at least not at the moment, which is a shame since Goblin Circus has an effect that needs you to interact with the bottom card of your deck, but you can still get around it by flipping your deck, milling the card that is now at the top, then flipping the deck back over.[/quote:2b50njpy] But then again Christen doesn't know most of the cards that have buttons so how would he know  [/quote:2b50njpy] Yeah I just checked, and I was right. Goblin Circus has no button at the moment.[/quote:2b50njpy] sad poyo |
|
Christen57 | #32 | Sun May 16, 2021 6:36 PM | Delete | I updated my code to exclude Gift Exchange since it isn't supposed to allow you to put extra deck monsters in your opponent's hand.

[code:22e0l08c]javascript:function findCard(a) {if (a != "Question" && a != "Jack-In-The-Hand" && a != "Gift Exchange") {return true} else {return false}}[/code:22e0l08c] |
|
WhomAmI | #33 | Fri Sep 23, 2022 6:22 PM | Delete | How do you make it so the javascript calls a judge? |
|
Genexwrecker | #34 | Fri Sep 23, 2022 11:20 PM | Delete | I think thats a good hint to stop showing people how to mess with stuff. |
|
Christen57 | #35 | Sun Sep 25, 2022 11:24 AM | Delete | [quote="WhomAmI":1udj0kb6]How do you make it so the javascript calls a judge?[/quote:1udj0kb6]
What do you need that for? Just click the Call Judge button. |
|
WhomAmI | #36 | Sun Sep 25, 2022 3:01 PM | Delete | Sometimes it glitches and refreshing doesn't fix it. |
|
Christen57 | #37 | Sun Sep 25, 2022 3:50 PM | Delete | [quote="WhomAmI":z6jdt4nk]Sometimes it glitches and refreshing doesn't fix it.[/quote:z6jdt4nk]
Could it just be that a judge was already called? |
|
Genexwrecker | #38 | Sun Sep 25, 2022 5:34 PM | Delete | [quote="Christen57":t10xab1r][quote="WhomAmI":t10xab1r]Sometimes it glitches and refreshing doesn't fix it.[/quote:t10xab1r]
Could it just be that a judge was already called?[/quote:t10xab1r] If you cannot call then you called already |
|
WhomAmI | #39 | Sun Sep 25, 2022 5:49 PM | Delete | No, I stopped Dueling in rated because of a game where I was harassed because some guy managed to slow my web browser with spam. Just wanted that because it would be helpful. |
|
Christen57 | #40 | Mon Sep 26, 2022 5:34 PM | Delete | [quote="WhomAmI":3375uejk]No, I stopped Dueling in rated because of a game where I was harassed because some guy managed to slow my web browser with spam. Just wanted that because it would be helpful.[/quote:3375uejk]
Were they repeatedly calling a judge then cancelling the call? If they were doing something like that, you can report them so the staff can investigate. |
|
WhomAmI | #41 | Mon Sep 26, 2022 8:40 PM | Delete | 1. No 2. He spammed hyperlinks using javascript spam to slow my browser down
Any way to get that function? |
|
Christen57 | #42 | Tue Sep 27, 2022 3:43 PM | Delete | [quote="WhomAmI":eareh1cu]1. No 2. He spammed hyperlinks using javascript spam to slow my browser down
Any way to get that function?[/quote:eareh1cu]
Save the replay and report the matter on the forum using the Report Abuse page. |
|
eyal282 | #43 | Fri Sep 30, 2022 6:27 AM | Delete | [quote="Christen57":gu1qxhv2] Currently, in duels and in solo mode, every time you hover your mouse over a card in your hand, duelingbook brings up a little menu listing the things you can do with that card, such as revealing it, declaring it, placing it on the top or bottom of the deck, banishing it, sending it to the graveyard, summoning it (if it's a monster), activating it (if it's a spell/trap), and so on.

After that, duelingbook checks if certain cards, such as Exchange, are face-up on the field with an effect that requires a player to put a card in their opponent's hand. If such a card exists, duelingbook will include in the little menu the option to take that card you hovered your mouse over that is in your hand and put that card in your opponent's hand.

Also, every time you hover your mouse over your deck, duelingbook brings up a little menu listing the things you can do with your deck, such as viewing it, showing it to your opponent, banishing the top card of it face-up or face-down, sending the top card from it to the graveyard, shuffling it, drawing a card from it, and so on.

After that, duelingbook checks if a certain card such as Convulsion of Nature is face-up on the field with an effect that requires you to flip your deck, and if such a card exists, or if no card exists but your deck is still face-up due to being previously flipped face-up, duelingbook will include in the little menu the option to flip your deck.

Also, every time you hover your mouse over a field spell in your deck while viewing said deck, duelingbook brings up a little menu listing the things you can do with that field spell, such as banishing it face-up or face-down, sending it to the graveyard, activating it, adding it to your hand, and so on.

After that, duelingbook checks if a certain card such as Set Rotation is face-up on the field with an effect that requires you to place a field spell in your opponent's field zone, and if such a card exists on the field, duelingbook will include in the little menu the option to place that field spell in your opponent's field zone.

Now let's say you want to put a card in your opponent's hand, flip your deck, place a field spell from your deck in your opponent's field zone, or banish a random card from your extra deck, but don't have any of the required face-up cards on the field necessary to have the option to do any of these tasks, or you do have a face-up card on the field with an effect that requires you to do one of these tasks but Xteven either didn't program or forgot to program that card to be able to let you perform that task.
That's where javascript comes in. With some javascript code, you can make it possible to do all of the above mentioned tasks, and more, without needing any of the required programmed cards face-up on the field to be able to do so.
https://www.duelingbook.com/replay?id=58994-26564203

To use javascript, you need to make sure javascript is enabled and allowed on your browser and on duelingbook, and refresh/reload the page if you need to.

Create a new javascript bookmark, or edit an already-existing one, and name it whatever you want. I will be naming mine "give cards to opponent".
In the URL/Address/Location box, copy and paste this code:
[code:gu1qxhv2]javascript:function findCard(a) {if (a != "Question" && a != "Jack-In-The-Hand") {return true} else {return false}}[/code:gu1qxhv2]
Save your bookmark.

Go to duelingbook, click your bookmark, and then, until you either refresh/reload the duelingbook page, close the tab/browser, or switch to a different tab/browser, you will always be able to perform the aforementioned tasks, solo mode after solo mode, duel after duel, without requiring any specific face-up cards on the field to be able to do so.
Remember how I said that duelingbook normally checks which programmed cards are face-up on the field before making the options available to perform those corresponding tasks? Well, it's hard for me to explain in full detail how this code works, but basically this code tricks duelingbook into thinking that all of the appropriate programmed cards (Convulsion of Nature, Exchange, Set Rotation, and so on) are face-up on the field, even if none of them really are, causing duelingbook to make these options available for you at all times.
Now if any new card gets released in the future (or if there are any already-existing cards on duelingbook) that require a player to flip their deck, put a card in their opponent's hand, put a field spell in their opponent's field zone, or remove a random card from their extra deck, but Xteven either doesn't program or forgets to program that card to let that player perform that required task, players can fall back on this javascript code to acquire the option to do these tasks.[/quote:gu1qxhv2] Absolutely superceded. https://microsoftedge.microsoft.com/add ... ppjfnonlic |
|
Christen57 | #44 | Fri Sep 30, 2022 6:57 AM | Delete | [quote="eyal282":9vs23l0o][quote="Christen57":9vs23l0o] Currently, in duels and in solo mode, every time you hover your mouse over a card in your hand, duelingbook brings up a little menu listing the things you can do with that card, such as revealing it, declaring it, placing it on the top or bottom of the deck, banishing it, sending it to the graveyard, summoning it (if it's a monster), activating it (if it's a spell/trap), and so on.

After that, duelingbook checks if certain cards, such as Exchange, are face-up on the field with an effect that requires a player to put a card in their opponent's hand. If such a card exists, duelingbook will include in the little menu the option to take that card you hovered your mouse over that is in your hand and put that card in your opponent's hand.

Also, every time you hover your mouse over your deck, duelingbook brings up a little menu listing the things you can do with your deck, such as viewing it, showing it to your opponent, banishing the top card of it face-up or face-down, sending the top card from it to the graveyard, shuffling it, drawing a card from it, and so on.

After that, duelingbook checks if a certain card such as Convulsion of Nature is face-up on the field with an effect that requires you to flip your deck, and if such a card exists, or if no card exists but your deck is still face-up due to being previously flipped face-up, duelingbook will include in the little menu the option to flip your deck.

Also, every time you hover your mouse over a field spell in your deck while viewing said deck, duelingbook brings up a little menu listing the things you can do with that field spell, such as banishing it face-up or face-down, sending it to the graveyard, activating it, adding it to your hand, and so on.

After that, duelingbook checks if a certain card such as Set Rotation is face-up on the field with an effect that requires you to place a field spell in your opponent's field zone, and if such a card exists on the field, duelingbook will include in the little menu the option to place that field spell in your opponent's field zone.

Now let's say you want to put a card in your opponent's hand, flip your deck, place a field spell from your deck in your opponent's field zone, or banish a random card from your extra deck, but don't have any of the required face-up cards on the field necessary to have the option to do any of these tasks, or you do have a face-up card on the field with an effect that requires you to do one of these tasks but Xteven either didn't program or forgot to program that card to be able to let you perform that task.
That's where javascript comes in. With some javascript code, you can make it possible to do all of the above mentioned tasks, and more, without needing any of the required programmed cards face-up on the field to be able to do so.
https://www.duelingbook.com/replay?id=58994-26564203

To use javascript, you need to make sure javascript is enabled and allowed on your browser and on duelingbook, and refresh/reload the page if you need to.

Create a new javascript bookmark, or edit an already-existing one, and name it whatever you want. I will be naming mine "give cards to opponent".
In the URL/Address/Location box, copy and paste this code:
[code:9vs23l0o]javascript:function findCard(a) {if (a != "Question" && a != "Jack-In-The-Hand") {return true} else {return false}}[/code:9vs23l0o]
Save your bookmark.

Go to duelingbook, click your bookmark, and then, until you either refresh/reload the duelingbook page, close the tab/browser, or switch to a different tab/browser, you will always be able to perform the aforementioned tasks, solo mode after solo mode, duel after duel, without requiring any specific face-up cards on the field to be able to do so.
Remember how I said that duelingbook normally checks which programmed cards are face-up on the field before making the options available to perform those corresponding tasks? Well, it's hard for me to explain in full detail how this code works, but basically this code tricks duelingbook into thinking that all of the appropriate programmed cards (Convulsion of Nature, Exchange, Set Rotation, and so on) are face-up on the field, even if none of them really are, causing duelingbook to make these options available for you at all times.
Now if any new card gets released in the future (or if there are any already-existing cards on duelingbook) that require a player to flip their deck, put a card in their opponent's hand, put a field spell in their opponent's field zone, or remove a random card from their extra deck, but Xteven either doesn't program or forgets to program that card to let that player perform that required task, players can fall back on this javascript code to acquire the option to do these tasks.[/quote:9vs23l0o] Absolutely superceded. https://microsoftedge.microsoft.com/add ... ppjfnonlic[/quote:9vs23l0o] Impressive, though it might still be safer to use my method of doing this than a third-party extension like yours, because with my method, at least people can see all the code they're loading into their duelingbook client and thus know they aren't loading in any code that's malicious, whereas with a third-party extension, since I can't see exactly what code I'm loading in or see every single thing the extension's been programmed to do, I have no idea if any malware or malicious code was snuck into it, or if the extension's doing something malicious behind the scenes. Is there any way for us to see every bit of code that this extension loads and executes? If not, what's stopping you, or anyone else who decides to create their own custom duelingbook extension like you did just now, from simply updating and changing the extension so it secretly records and logs usernames and passwords that people who install these extensions type to log in, allowing accounts to end up getting hijacked or something? |
|
eyal282 | #45 | Fri Sep 30, 2022 7:01 AM | Delete | [quote="Christen57":4jn9wxv6][quote="Eyal282":4jn9wxv6]Absolutely superceded. https://microsoftedge.microsoft.com/add ... ppjfnonlic[/quote:4jn9wxv6] Impressive, though it might still be safer to use my method of doing this than a third-party extension like yours, because with my method, at least people can see all the code they're loading into their duelingbook client and thus know they aren't loading in any code that's malicious, whereas with a third-party extension, since I can't see exactly what code I'm loading in or see every single thing the extension's been programmed to do, I have no idea if any malware or malicious code was snuck into it, or if the extension's doing something malicious behind the scenes. Is there any way for us to see every bit of code that this extension loads and executes? If not, what's stopping you, or anyone else who decides to create their own custom duelingbook extension like you did just now, from simply updating the code so it records and logs my username and password that I type to log in, allowing accounts to end up getting hijacked or something?[/quote:4jn9wxv6] Dueling Book Unlock GithubAfter digging recently, I have reasons to believe what you're saying is possible, regarding hijacking. With that in mind, note that edge and chrome store actually monitor extensions, and I imagine the term "password" as a variable is on their internal monitor list. |
|
Christen57 | #46 | Fri Sep 30, 2022 7:15 AM | Delete | [quote="eyal282":3iv0ruq7][quote="Christen57":3iv0ruq7][quote="Eyal282":3iv0ruq7]Absolutely superceded. https://microsoftedge.microsoft.com/add ... ppjfnonlic[/quote:3iv0ruq7] Impressive, though it might still be safer to use my method of doing this than a third-party extension like yours, because with my method, at least people can see all the code they're loading into their duelingbook client and thus know they aren't loading in any code that's malicious, whereas with a third-party extension, since I can't see exactly what code I'm loading in or see every single thing the extension's been programmed to do, I have no idea if any malware or malicious code was snuck into it, or if the extension's doing something malicious behind the scenes. Is there any way for us to see every bit of code that this extension loads and executes? If not, what's stopping you, or anyone else who decides to create their own custom duelingbook extension like you did just now, from simply updating the code so it records and logs my username and password that I type to log in, allowing accounts to end up getting hijacked or something?[/quote:3iv0ruq7] Dueling Book Unlock GithubAfter digging recently, I have reasons to believe what you're saying is possible, regarding hijacking. With that in mind, note that edge and chrome store actually monitor extensions, and I imagine the term "password" as a variable is on their internal monitor list.[/quote:3iv0ruq7] Okay, and to be clear (since I'm not familiar with github), your extension loads/executes just all these codes listed, from " LICENSE" to " onextensionpressed.js"?  |
|
eyal282 | #47 | Fri Sep 30, 2022 7:17 AM | Delete | [quote="Christen57":ddte6xxv][quote="eyal282":ddte6xxv][quote="Christen57":ddte6xxv] Impressive, though it might still be safer to use my method of doing this than a third-party extension like yours, because with my method, at least people can see all the code they're loading into their duelingbook client and thus know they aren't loading in any code that's malicious, whereas with a third-party extension, since I can't see exactly what code I'm loading in or see every single thing the extension's been programmed to do, I have no idea if any malware or malicious code was snuck into it, or if the extension's doing something malicious behind the scenes. Is there any way for us to see every bit of code that this extension loads and executes? If not, what's stopping you, or anyone else who decides to create their own custom duelingbook extension like you did just now, from simply updating the code so it records and logs my username and password that I type to log in, allowing accounts to end up getting hijacked or something?[/quote:ddte6xxv] Dueling Book Unlock GithubAfter digging recently, I have reasons to believe what you're saying is possible, regarding hijacking. With that in mind, note that edge and chrome store actually monitor extensions, and I imagine the term "password" as a variable is on their internal monitor list.[/quote:ddte6xxv] Okay, and to be clear (since I'm not familiar with github), your extension loads/executes just all these codes listed, from " LICENSE" to " onextensionpressed.js"?  [/quote:ddte6xxv] License is something weird I cannot explain. It basically talks stuff about how you're allowed to sell my extension ( pls don't ) So I make it GPL 3.0, which is something I tend to use. Others are correct. onextensionpressed is when you press the extension's icon, this is to enable Pot of Greed sound as an opt in feature. Keep in mind, nothing is stopping me from uploading fake scripts to github and install a virus in the real extension I provide. The issue is getting it to pass through microsoft edge's screening for 10 versions. |
|
Christen57 | #48 | Mon Mar 11, 2024 11:21 AM | Delete | Optimized my code to make it both easier to read and faster to run. Here's the updated code.
[code:2sipdd56]javascript:function findCard(a) { outerloop: switch (a[0]) { default: return true; break; case "Contract with Don Thousand": switch (document.getElementById("view").querySelector("[class='title_txt arial_rounded20']").textContent) { default: return true; break outerloop; case "Viewing Deck": case "Viewing Extra Deck": return false; break outerloop; } case "Gift Exchange": case "Jack-In-The-Hand": case "Question": return false; } }[/code:2sipdd56] |
|