Skip to content

Instantly share code, notes, and snippets.

@sysnucleus
sysnucleus / gist:9949f7104e574574b4bf21b4060f31b6
Created December 30, 2025 11:23
WebHarvy RegEx codes for mdpi.com | corresponding author name and email
Corresponding Author Name
--------------------------
scholar\?q=([^"]*)[^>]*>[^>]*>[^>]*>[^>]*>[^>]*>[\d\s\,]*\*
Email
------
\*<\/sup>[^>]*>[^>]*><a class="[^"]*" data-author-id="\d+" href="mailto:([^"]*)
@sysnucleus
sysnucleus / script.js
Created July 31, 2025 04:33
JS code to open pinnacle opening odds in Oddspedia
// ------------------------------------------------------
// For WebHarvy - https://www.webharvy.com
// ------------------------------------------------------
// JavaScript Code to Open 'Pinnacle' Opening Odds.
// You may change the book maker name to one of your choice.
// ------------------------------------------------------
elements = document.querySelectorAll('.eoc-table__row__bookmaker');
pinnacleElements = Array.from(elements).filter(element =>
element.innerHTML.includes('alt="Pinnacle"')
@sysnucleus
sysnucleus / gist:b92f49f0127de747cab0ab411bf112c5
Created May 3, 2025 03:27
webharvy couponfollow.com codes
// JavaScript for revealing coupon code
links = document.querySelectorAll('a[href]');
for (let i = 0; i < links.length; i++) {
link = links[i];
href = decodeURIComponent(link.href);
match = href.match(/(?:cc|promo)\/(\d+)/);
if (match) {
code = match[1];
link.href = `https://couponfollow.com/site/macys.com#C${code}`;
@sysnucleus
sysnucleus / gist:f0daa5f6a16701b6a37dd574ad6f79aa
Last active April 22, 2025 06:58
BetExplorer WebHarvy Codes
BetExplorer Codes
//---------------------------------------------------------------------------
// Mouse Over for 1xBet Home Opening Odds
// hda = 4 means home opening
// Change hda = 5 for Draw and hda = 6 for Away opening odds
// Change bookmaker as per requirement
//---------------------------------------------------------------------------
index = 4;
<title>([^<]*)
document.body.innerHTML = document.body.innerText
@sysnucleus
sysnucleus / webharvy-takealot
Created February 6, 2022 04:30
WebHarvy takealot.com codes
// JavaScript Code
els = document.getElementsByClassName('image-box undefined');
for (var i = els.length - 1; i >= 0; i--) {
img = els[i].children[0];
img.setAttribute('src', img.getAttribute('src').replace('list', 'pdpxl'));
}
// RegEx
@sysnucleus
sysnucleus / WebHarvy XML Miner Options
Created September 9, 2021 02:45
WebHarvy Miner Options
<MinerOptions>
<MinLevelsUp>2</MinLevelsUp>
<MinChildCount>10</MinChildCount>
<SelAccuracy>2</SelAccuracy>
</MinerOptions>
@sysnucleus
sysnucleus / WebHarvy XML Version Info
Last active September 9, 2021 02:46
WebHarvy XML Version Info
<VersionInfo>6.3.0.189</VersionInfo>
<RegInfo>SysNucleus</RegInfo>
@sysnucleus
sysnucleus / ta-expand.js
Created April 5, 2021 09:25
Expand Tripadvisor reviews 'Read More' link..
els = document.getElementsByTagName('span');
for (var i = els.length - 1; i >= 0; i--) {
if(els[i].innerText === 'Read more') {
els[i].click();
}
}
@sysnucleus
sysnucleus / tripadvisor
Created September 3, 2020 03:51
Codes to extract reviewer submitted images from TripAdvisor using WebHarvy
// RegEx to Follow links
href="([^"]*)
// More button click
document.getElementsByClassName('moreBtn')[0].click();
// Get images block