Add GreaseMonkey to your Browser Addons
create a new Script and paste this:
save itCode:// ==UserScript== // @name MPGH Code Blocks Syntax Highlight // @author Mike Rohosft // @grant GM.setValue // @grant GM.getValue // @include https://www.mpgh.net/forum/* // ==/UserScript== function responseHandler(text) { GM.setValue('prettyprint', text); const b = new Blob([text], { type: 'text/javascript' }); const u = URL.createObjectURL(b); const script = document.createElement('script'); script.type = 'text/javascript'; script.src = u; document.head.appendChild(script); } window.addEventListener('load', function init() { const code_blocks = document.getElementsByClassName("bbcode_code"); for (let i = 0, v; v = code_blocks[i]; i++) { if (v.tagName.toLowerCase() !== 'pre') { continue; } v.classList.add('prettyprint'); } GM.getValue('prettyprint').then(textblob => { if (!textblob) { fetch('https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js').then(res => res.text().then(responseHandler)); } else { responseHandler(textblob); } }); window.removeEventListener('load', init); });
reload
Last edited by MikeRohsoft; 07-30-2019 at 04:32 AM. Reason: small improvement
Why has this hacked me Mike? UwU :3
Gj though, should come in use for many
Last edited by Danny; 07-29-2019 at 05:34 PM.
I am not a middleman nor do I buy/sell anything. If you are being contacted by someone off-site from MPGH then it's not me! Please report these to me via PM. Don't be stupid, think first.
[SPOILER=History](mm/dd/yyyy)
Joined - 10/15/2015
Cocksucker - 09/05/2018 - 10/20/2019
Premium - 10/04/2018 - Now
Newsforce (Hack of the week) - 05/12/2019 - 09/12/2019
Premium Seller - 07/06/2019 - Now
Newsforce (Cybersecurity) - 09/12/2019 - 03/01/2020
What is that good for?
prev. Names: HΔSTUR ▬ Sound.
True, What does it do tho ?
Email [Fast Replies]: breezeyou1@gmail.com
▶Selling VCCs |VISA/Mastercard Verify Your paypal Method Get Your VCC Contact me on IM/Email us
Adds some Improvements and I've added a Screenshot with previous - after compare
Click Here to visit the official MPGH wiki! Keep up with the latest news and information on games and MPGH! To check out pages dedicated to games, see the links below!
dd/mm/yyyy
Member - 31/01/2015
Premium - 12/09/2016
Call of Duty minion - 05/11/2016 - 05/11/2019
BattleOn minion - 28/02/2017 - 05/11/2019
Battlefield minion - 30/05/2017 - 05/11/2019
Other Semi-Popular First Person Shooter Hacks minion - 21/09/2017 - 17/09/2019
Publicist - 07/11/2017 - 02/08/2018
Cock Sucker - 01/12/2017 - Unknown
Minion+ - 06/03/2018 - 05/11/2019
Fortnite minion - 08/05/2018 - 05/11/2019
Head Publicist - 08/10/2018 - 10/01/2020
Developer Team - 26/10/2019 - 10/01/2020
Former Staff - 10/01/2020
did u removed the spaces in the Header between the @ and the rest?
if i put them together, bbcode will mess it upCode:// @ name MPGH Code Blocks Syntax Highlight // @ author Mike Rohosft // @ grant GM.setValue // @ grant GM.getValue // @ include https://www.mpgh.net/forum/*
Code:// @Name MPGH Code Blocks Syntax Highlight // @Author Mike Rohosft // @Grant GM.setValue // @Grant GM.getValue // @include https://www.mpgh.net/forum/*
okay, i fixed it :P u can copy it now
Last edited by MikeRohsoft; 07-30-2019 at 04:31 AM.
Vicarious (07-30-2019)
26.09.2012 Signed Up 16.05.2017 Premium Member 06.05.2018 - 07.08.2019 Publicist 06.08.2018 - now Middleman 17.12.2018 - now Marketplace Minion 07.06.2019 - now Newsforce 01.08.2019 - now Publicist 15.08.2019 - now Fortnite Minion 08.12.2019 - now GTA Marketplace Minion 03.01.2020 - now Social Engineering Minion 07.01.2020 - now Minion+ 10.01.2020 - now Cracking Minion 07.02.2020 - now Head Publicist
Would be nice to have this in a vb4 plugin functionality
THE EYE OF AN ADMINISTRATOR IS UPON YOU. ANY WRONG YOU DO IM GONNA SEE, WHEN YOU'RE ON MPGH, LOOK BEHIND YOU, 'CAUSE THATS WHERE IM GONNA BE
"First they ignore you. Then they laugh at you. Then they fight you. Then you lose.” - Dave84311
HAVING VIRTUAL DETOX
damn this shit is good, finally codes with colors
Member - 30/05/2012
Premium - 01/11/2020
News Force - 12/05/2019 till 24/02/2021
Hector (07-31-2019),MikeRohsoft (07-31-2019)
I thought it too xD "Can't be so difficult to find the file which adds the class 'bbcode_code' to the pre element and insert there the class 'prettyprint' + this script in the Header", but who knows, maybe it is xD
To write a vBulletin Module means PHP and my last PHP Script is 16 years ago, better not :P
Hector (07-31-2019)