74.gif

Search (advanced search)
Use this Search form before posting, asking or make a new thread.
Tips: Use Quotation mark to search words (eg. "How To Make Money Online")

07-06-2019, 09:09 PM (This post was last modified: 07-06-2019 09:13 PM by 饿死我了.)
Post: #1
[TIP] Testing coupon against Instructor Course Collection
So someone links you to an instructor page and tells you coupon X works on all their courses. YAY!

Sadly you have to manually add "?coupon=SuperLongCoupon" to each and every page after opening it.

No more!

=========== 1a ===========

Open the instructor page, hit F12, paste the following [ENTER], enter the coupon and it will be added to each link. If you make a typo just refresh and do it again. A list of the links will be listed in the F12 debug box too for your sharing convenience!

c=prompt("Coupon Code");t='';$.each($('.merchandising-course-card--mask--2-b-d'),function(i,a){console.log(t+=(a.href=a.href+"?couponCode="+c)+"\n")});console.log("\n\n\n"+t);

=========== 2a ===========

Say you're even lazier than that... The following will do ALL of the above, and open them each in a new window/tab.

c=prompt("Coupon Code");t='';$.each($('.merchandising-course-card--mask--2-b-d'),function(i,a){console.log(t+=(p=a.href=a.href+"?couponCode="+c)+"\n");window.open(p)});console.log("\n\n\n"+t);

-------------------------------------

That's it... you're not any lazier than that are you? You are?!? Fine!
Paste the following as a bookmark and just click the bookmark.

======================
Wont open tabs - 1b !!!!! "java--------------script:" <===== Remove the -------------- where ever you see this, forum blocks it out =/
======================

java--------------script:c=prompt("Coupon Code");t='';$.each($('.merchandising-course-card--mask--2-b-d'),function(i,a){console.log(t+=(a.href=a.href+"?couponCode="+c)+"\n")});console.log("\n\n\n"+t);

======================
Will open tabs -2b
======================

java--------------script:c=prompt("Coupon Code");t='';$.each($('.merchandising-course-card--mask--2-b-d'),function(i,a){console.log(t+=(p=a.href=a.href+"?couponCode="+c)+"\n");window.open(p)});console.log("\n\n\n"+t);

If these last two don't work, make sure your browser didn't remove the "java--------------script:" at the start when pasting, as a security measure.

======================
Notes
======================

1. Make sure the courses have loaded on the page before running the code
2. java--------------script: <===== Remove the -------------- where ever you see this, forum blocks it out =/
3. Sorry for the bad formatting, seems [code][/code][b][/b] have all been disabled.
07-06-2019, 09:11 PM
Post: #2
RE: [TIP] Testing coupon against Instructor Collection
Remove the -------------- from java--------------script
07-07-2019, 03:13 AM
Post: #3
RE: [TIP] Testing coupon against Instructor Course Collection
饿死我了, thank you my brother for this.

Amazing what can be don when you know!!!!
07-07-2019, 04:33 AM
Post: #4
RE: [TIP] Testing coupon against Instructor Course Collection
Many thanks for sharing this great useful tip, 饿死我了 bro! Peace be with you, always! :) Amazing indeed, Archon bro!


PLUS:

The Bookmarklets (JavaScript Favelets) are still: amazing power surfing tools for free! Learn more about more useful scripts and how to write your own scripts, here:

https://en.wikipedia.org/wiki/Bookmarklet
https://www.hongkiat.com/blog/100-useful-bookmarklets-for-better-productivity-ultimate-list/
https://www.squarefree.com/bookmarklets/
http://dmcritchie.mvps.org/ie/bookmarklets.htm


Convert your scripts to bookmarklets, here:

https://js.do/blog/bookmarklets/
https://mrcoles.com/bookmarklet/
https://subsimple.com/bookmarklets/jsbuilder.htm


MORE ?

If you have more useful scripts or links, please share it with us ;)


Peace and success, in life and eternity!
angelcrc7


:)
More FREE courses? Get the browser extension shared in my profile! (created by Patrick0 and highly recommended by angelcrc7)
https://bestblackhatforum.com/User-angelcrc7

angelcrc7
07-07-2019, 05:15 AM (This post was last modified: 07-07-2019 05:17 AM by JohnMajors.)
Post: #5
RE: [TIP] Testing coupon against Instructor Course Collection
following this excellent share
now I need to figure out how to implement. lol

Maxreps both 饿死我了 and angelcrc7
jm
;)
81.gif
07-07-2019, 07:53 AM
Post: #6
RE: [TIP] Testing coupon against Instructor Course Collection
[quote='angelcrc7' pid='2795828' dateline='1562438038']
Many thanks for sharing this great useful tip, 饿死我了 bro! Peace be with you, always! :) Amazing indeed, Archon bro!

PLUS:

MORE ?

If you have more useful scripts or links, please share it with us ;)

Peace and success, in life and eternity!
angelcrc7

:)
[/quote]

I just make these up as I need them, or as I see others have a need.

I don't really have a particular list or anything. If something is unused long enough I sorta lose it...
07-07-2019, 08:23 AM
Post: #7
RE: [TIP] Testing coupon against Instructor Course Collection
Many thanks and reps to you 饿死我了and angelcrc7. New to me. Will be fun to figure out. :)
07-07-2019, 08:50 AM
Post: #8
RE: [TIP] Testing coupon against Instructor Course Collection
Max reps to 饿死我了and angelcrc7
:)
07-07-2019, 09:16 AM (This post was last modified: 07-07-2019 09:17 AM by 饿死我了.)
Post: #9
RE: [TIP] Testing coupon against Instructor Course Collection
[quote='JohnMajors' pid='2795848' dateline='1562440549']
following this excellent share
now I need to figure out how to implement. lol

Maxreps both 饿死我了 and angelcrc7
jm
;)
[/quote]

[quote='ecmod' pid='2795919' dateline='1562451805']
Many thanks and reps to you 饿死我了and angelcrc7. New to me. Will be fun to figure out. :)
[/quote]

No problems, it's not too hard. 1a and 2a. You just hit F12 (in chrome) a developer box shows at the bottom and you paste it in there and ENTER to execute.

For the b series, just make a bookmark in your bookmark bar, right click it and select "Edit", put that code in the URL box. Make sure the result starts with "java---script:" without and dashes. B series are really just A series with the "java***script:" added to the start.

angelcrc7's links should give some good information.

Note: Some bookmarklets may have bad come in them that could share your site login cookies with other sites. If it looks overly complex/weird, has an unrelated URL or you have a feeling you shouldn't trust it. Better safe that sorry!
07-07-2019, 09:16 AM (This post was last modified: 10-24-2019 04:42 AM by angelcrc7.)
Post: #10
RE: [TIP] Testing coupon against Instructor Course Collection
Thanks again for your answer 饿死我了 bro! Good minimalist way of thinking! ;)

You're welcome brothers JohnMajors, ecmod and Juan_Alejandro! Glad to serve as an angel here! :)



PLUS AGAIN...

MORE TOOLS?
If someone has more useful similar scripts or links; please share it with us, if someone could, and thanks in advance!


:)

.
[hr]
.

FOR EXAMPLE:

We could use these 2 great tools, shared by @Somebody:

You can open all these links at once using this addon for firefox:
https://addons.mozilla.org/en-US/firefox/addon/open-multiple-urls/

Which works very well (with) this addon:
https://addons.mozilla.org/en-US/firefox/addon/copy-all-tab-urls-we/

Reps and thanks to @Somebody bro, here:
http://bestblackhatforum.com/User-Somebody
http://bestblackhatforum.com/Thread-courses-free-until-June-30th-2019?pid=2791938#pid2791938


:)
60.gif
More FREE courses? Get the browser extension shared in my profile! (created by Patrick0 and highly recommended by angelcrc7)
https://bestblackhatforum.com/User-angelcrc7

angelcrc7




52.gif
Free counters!