#CleanUpTool
Explore tagged Tumblr posts
rajtechblog · 1 year ago
Text
Clean UP Tool Removes Any Objects From Photos On IOS 18
0 notes
60b3r · 5 years ago
Text
60b3r’s スクリプト: Edit Post Bookmarklet
After hours of tweaking your Tumblr blog with custom themes, you feel like an accomplished web developer. But some time later some you might start wondering where the edit post button has gone. Well, this is especially true if you disable (both intentionally or unintentionally) the Tumblr’s own control bar which is not that pretty either. Some custom theme are to blame: they are getting rid of the default control bar at the top of the page (with those tools and follow buttons) and might replace them with their own menu bar some of which are much cooler anyway. The missing edit appearance button used to be there too. But, if you insist on bringing back that feature, annesmiless has made a tutorial to re-enable the feature several years ago.
Tumblr media
Wait, my custom theme does not remove the cluttering control bar! Oh no, I don’t want to re-do all my stuff just to look for another theme! Relax, babe. If you would rather disable the toolbar but keep your current theme you’ve been working hard on, you know the drill. Come on, don’t be kidding me. If you have changed themes several times, you must have known what you’re doing. Head over to the Custom HTML editor and delete this line from under <body> tag.
<iframe frameborder="0" id="tumblr_controls" scrolling="no" src="http://assets.tumblr.com/iframe.html?...blablabla...</iframe>
Now, back to that particular time when you realize actually need the edit post button. Just that one button, not the others. But you cannot bring back all the control bar, that’s too much work! Even if you could customize which icons to appear, that’s not worth the time and effort to scour hundreds of lines of HTML and CSS codes. To fix this issue, a decade ago szajmon started making this bookmarklet with JavaScript to redirect quickly to post edit page directly from the main blogpost page. The principle behind the script is simple: to change the “post” part from the URL into "edit” using string manipulations, press enter and voila, you will be taken to the edit post page. However, since another update around 2017 (after the Yahoo purchase) Tumblr made it impossible to redirect from simply changing the URL. For further technical stuff, go see this discussion thread from StackExchange. Scouring Tumblr blogs itself seems not helping, since people are happily visiting dashboard first then use the features there. Me? No. I just want to simply visit my blog and directly open the edit page whenever I feel like it. I don’t like to go back to dashboard just to scroll to a post I made in 2000s manually to click edit post. No.
Tumblr media
If you are familiar with downloading videos from YouTube or Vimeo, you must have already known there are several bookmarklet tools available out there that you could just simply click while watching a video. Wait for a while and you will be taken to another site with links to different video quality to download. So I utilize this logic to bring back the JavaScript bookmarklet, inspired by the late szajmon. Here, the only variable is not predefined and directly integrated inside the script:
Input: VID-SRC.com/watch?v=<UniqueID> Output: VID-DLD.com/download/?id=<UniqueID>
function(){ window.open('http://vid-dld.com/download/?id='+location.href.replace('https://www.vid-src.com/watch?v=', '')) }();
As you can see, this simple string manipulation technique only requires one variable: those sequences following "watch?v=" part. For Tumblr after the update, it requires us to be redirected first to dashboard (so the script need to ask the blog name <userid>) and inquires the unique post designation <postid>. This could be done by extracting the custom URL into two parts: the numbers <numberid> and the text you input during drafting <titleid>. This is very easy, ater all the script needs to be simple enough with few variables. So clickity tappity, code finished, and I tried to use this script to test on several older posts in this blog. Turns out—just like every other coding sessions—another problem exist: the bookmarklet can only be used in posts with limited sets of <numberid> digits. Now’s debugging time.
Tumblr media
One of my earliest post in this blog: Some crappy “Hello, World!” stuff here, the <numberid> is 13925375970, which is 16 digits.
One of my latest post: 60b3r’s スクリプト: CUT (CleanUpTool) this post (615170514109038592) has a whopping 18 digits.
See, some of the older posts in Tumblr have less numbering in the <numberid> subset. Newer posts, however, might have more. This problem arise because I was using the substr() function to cut up the numbers from set character positions relative to the beginning of the URL. So with that sequence, I need to make many bookmarklets to accommodate different <numberid> digits for different posts, which is not efficient at all. You could see from the code snippets below that I can only accommodate 12 digits for a post, but not posts with 8, 14, or 15 digits. So I cannot use this bookmarklets directly on every other posts. Here is the conceptualization and the resulting raw script:
Input: <userid>.tumblr.com/post/<numberid>/<titleid> Desired output: tumblr.com/edit/<numberid>/?redirect_to=<userid>.tumblr.com/post/<numberid>/<titleid>
(here, <postid> is just “<numberid>/<titleid>”)
function(){ var userid = location.href.slice(8, location.href.search('.tumblr')); var postid = location.href.replace(+userid+'.tumblr.com/post/', ''); var numberid = postid.substr(0, 12); window.open('www.tumblr.com/edit/'+numberid+'/?redirect_to='+userid+'.tumblr.com/post/'+postid) }();
I have also optimized the code with each variable predefined to ease readability. To fix this issue, I changed the problematic function with another string manipulation split() and call the first value in the newly created array. Other than that, I also find that you could slim down the redirection URL into the following and would still bring you to the functional edit post page:
Desired output, simplified: /edit/<numid>?redirect_to=/blog/<usrid>
Tumblr media
The resulting final script you could use as the edit post bookmarklet is here, no more hassle of having to go to dashboard anymore. Because of the Tumblr automatic URL redirection settings, you cannot just simply drag that link to your favorites bar. You need to visit my GitHub repository, copy the script and paste the script on a new bookmark’s URL box. Don’t forget to format the snippet into proper JavaScript syntax which is compatible with your browser. To use the bookmarklet, simple. Just navigate to the post you want to edit and click the bookmark on your favorites bar. The browser then will open the edit page for the post.
function(){ var usrid = location.href.slice(8, location.href.search('.tumblr')); var pstid = location.href.replace('https://'+usrid+'.tumblr.com/post/', ''); var numid = pstid.split(/\//)[0]; window.open('https://www.tumblr.com/edit/'+numid+'/?redirect_to=/blog/'+usrid) }();
This is actually one of my numerous simple scripts project. I do not have any formal training in programming, I just collect small snippets from coding forums and gather them into collections. Moreover, this is my first time doing JS in 9 years. Last time, I made a simple batch clean-up tool and you could reach the tutorial here. Other than JS and Batch, I was also doing some VBScript and PowerShell scripting. I hope I could review my scripting skills again in the future. See you later at another series of 60b3r’s スクリプト!
source for learning: W3Schools
0 notes
nikosdejavu · 6 years ago
Text
Nikos Deja Vu - Red Alert 2 - Yuri's Revenge - New Map: Severnaya Zemlya 2019 (snow)
Nikos Deja Vu Proudly Presents "Severnaya Zemlya 2019" A great new MAP for 8 (2-8) Players  (Snow Battle) FOR RED ALERT 2 - YURI'S REVENGE
THE BATTLE MAP
NEW FIGHTING TECHNIQUES & METHODS
WARNING!
This map is made with the latest WESTWOOD official terrain expansion set! If you don't have it inside your RA2 folder, download it now from here!
Map Difficulty INSANE
★ ★ ★ ★ ★
How to use this map (Instructions for Single Player Only)
1. Just UNRAR your download, and copy the *.YRM file(s) inside your RA2 directory (folder). 2. Run YURI.exe -> Single Player -> SKIRMISH 3. Load this map, select difficulty and other rules. 4. Start playing!
★ ★ ★ ★ ★
A 2019 BONUS! Resolution Fix for all monitors! for Red Alert 2 & RA2 Yuri's Revenge only! Download it now from HERE
★ ★ ★ ★ ★
More: 1. MIG-35 FULCRUM FIGHTER JET 2. NEW MIG BOMBER 3. SIEGE CHOPPERS NOW CAN FIRE WITH NEW MISSILE WEAPONS AND NEW MACHINEGUNS! 4. THE HIND CHOPPER (Hind Transport) IS FLYING AND SHOOTING PERFECTLY WITH A NEW CANNON 5.  LEOPARD 2A7 (HEL) 6. The APACHE LONGBOW (Harpy) CAN BE USED FROM ALL HOUSES 7. VLADIMIR's DREADNOUGHT (Command Ship) AVAILABLE FOR ALL HOUSES (with AA missiles)
Even More... 1. Soviets and Yuri forces can create Airforce Command Headquarters now! 2. All forces can create 5 types of aircraft & helicopter units, including MIG-35 and Apache! 3. The Rocketeers can use new laser weapons! 4. Siege Choppers can fire air-to-surface and air-to-air missiles! 5. More buildings can HEAL your units and your infantry! 6. FLINT WESTWOOD's cameo is missing from the INFANTRY TAB (RA2-YR version 1.001) but is working perfectly when selected. 7. Sammy Stallion, Arnie Frankenfurter and Vladmir (Mad Vlad) icons have changed in the Infantry TAB (RA2-YR version 1.001) 8. Some other, aesthetic only, changes occured after Westwood's latest game patch, but don't worry, everything is working perfectly!
DOWNLOAD THIS MAP
WARNING DO NOT USE ANY MOD You won't need it.
If you already have patched your original RA2 game with any MOD(s) you can easily remove them using the "CleanUpTool" from the WESTWOOD FTP, from EA FTP, or from my site. To play, correctly, my maps, use the original RA2 - YR game set, without any INI files, or your game will stick and/or will crush, always... If you ever need special information, on the map code, don't hesitate to leave a message here :)
A SPECIAL NOTE
No No! I don't use MOD or extra CAMEOS for all those maps I've created! There's just some of my fantastic RA code inside the map(s)! I always use the official Westwood game set, and my ..magic! So.. USE MY MAPS AND YOUR GAME WILL NEVER STICK! Why? Because I triple test them, for my pleasure first of all :)
NEW : ALL IN ONE MUSIC PACK For Red Alert 2 Yuri's Revenge Only!
Play 100+ music tracks by Frank Klepacki from all WESTWOOD (and not only) GAMES along with your RA2-YR. Extreme sound quality, far better than the originals!
Read what and how Click Here
Enjoy and stay tuned: More maps are coming!
Nikos Deja Vu n1999k.blogspot.com
0 notes
60b3r · 5 years ago
Text
60b3r’s スクリプト: CUT (CleanUpTool)
IF anything that could happen with Windows, is it got cluttered fast. Especially if you (like me) love downloading and testing random freewares and then find out that the fucking installers contains major bloatwares and malwares. Most of the time, the crappy uninstaller bundles are also not that great to get rid of all the nasty shit they have already extracted into my computer. Sometimes I need to uninstall them one by one, from the broken shortcuts, unused runtimes and libraries, and the leftover config files on %AppData%. That’s why most of the time now I try to get myself used to PortableApps (no endorsement here, but they have done a great job!). Early this morning (well it’s still 3 AM when I suddenly woke up from my sleep) I find myself killing the time and went for a hunt for those sneaky registry keys I need to search manually to remove Corel’s Protexis services and Visual Studio Redist uninstallation entries which didn’t vanish after I declutter them yesterday from Control Panel.
Tumblr media
One of the things that I find myself very hard to get rid of ONE BY ONE (other than the regedit entries stuff) is the unused empty directories and frustrating zero-byte files locked by services you don’t know you have, leftover from installations. After searching the whole freeware and portable alternatives for programs, I found Jonas John’s Remove Empty Directories (a.k.a. RED) and was immediately relieved. His app has so many features and help clean up jobs easily. Gonna get this app into the hall of fame with CCleaner though. I dont get it why Piriforn haven’t included this feature in their suite. Or has them? I don’t know. I use the free version. Hahahaha. However, being a very stubborn and eclectic former script kiddie that I am, I decided to quickly make a batch script for my own to automate the process of deleting zero-byte files and empty folders that are found scattering throughout my harddisk. No more manual screening like I just did with the registry. So damn tiring. I opened the Notepad and started writing these codes, while at the same time scrounging old batch programming books on my archives. I write this app from scratch, but time seems to move fast when you do something you love, right? By the time I finished coding and debugging the core functions, the sun is already out.
Tumblr media
Problem is, I have technically forgot most of my hacker training programming forum pages back then when I was in junior high school. Particularty embarassing, I forget most of the simple yet powerful FOR-DO syntax: it was almost 5 years since I last code in batch programming to automate netsh, ipconfig, ncpa and inetcpl commands for my home office setup. To be honest, who likes to code using batch? I do. Because it is so simple with no databases (someone say yes databases ughh so relatable). I also code using VisualBasic scripts back then to make computer worms and the nasty virus I program to open the CD tray every 5 minutes. Really, man? VBS? YES. I then decided to join Biology classes for senior high school and graduated Biotech instead. No regrets. I love biology. Hope soon I will be able to join Master’s.
Tumblr media
Sadly, I am not that ‘computer literate’ anymore like I used to be; since I put my efforts and energy into studying Biology, something I also love. Even sometimes I get myself to study coding (like making the spinning X sign on the blog’s top left navbar using CSS) from time to time whenever I am not busy doing other things. Come on, I am not those hackers over Mr. Robot. I am just a regular citizen, not a beautiful and unique snowflake. I am the same decaying organic matter as everything else. What. But, moving on. Just another sad story for another day.
Tumblr media
I kept surfing around the stackoverflow to find solution regarding the CHOICE and ERRORLEVEL syntax because I am a forgetful tomato. I also scour other old—dinosaur-age—blogs for batch programming tutorials and found Raymond Chen’s old blogpost over here. He made a script to help delete empty folders. I tweaked it around a bit to include folders with spaces. Then I added the function to scan zero-byte files. The rest are the delete functions for the scanned file and folder. To conclude my early morning rush, I ended up making an executable file, complete with a cute icon from dryicons and packed by Fatih’s compiler. I then scanned the file over to VirusTotal to make sure people can distribute it. Problem is, I sometimes forget it that executables with file operations (especially deleting stuffs) are sometimes taken by antivirus engines as rogue attempt of some suspicious code. By the looks of it, 18 out of 70 engines flagged my tiny simple app as generic malware. Here is the detection report. But I can guarantee you as long as you can read and make your own script, you will not become a victim of software counterfeiting identity theft by some random trojan. Moreover, all the top antiviruses detect no harmful activities from my app. Phew. No problems with the file packer then. No rootkits, too.
Tumblr media
For you who wants to just use the final program and scrub those nasty dirt off the disks right away, go here (GDrive). For those who just want to make a batch script file for ease of use and editing, you can use my script. Here is the core function, raw, non-user friendly version of the script:
@echo off echo CUT by 60b3r pause echo executing purging sequence... for /r %%F in (*.*) do ( if %%~zF==0 del "%%F" ) for /f "delims=" %%i in ( 'dir /s /b /ad ^| sort /r' ) do rd "%%i" 2>NUL pause
You can modify it and redistribute it freely, and also if you can get the deprecated features working (see about page), do email me. Gonna fix those and add more features. Also follow me on my GitHub repository, though I am not going to update much on there. I am no 1337 programmer, you know? Just a regular hobbyist doing random stuff. This is actually one of my numerous simple scripts collection (yeah, I was just a script kiddie gathering ready to use scripts for pathetic hacking dramas). Next time, I will update you on how to make the ultimate simple networking toolkit, merging all my script tools into one executable suite. All only using batch programming and notepad. No big deal, just a simple, humble, and very disgusting reuse of existing MS-DOS command.
Thanks for reading my simple tutorial!
0 notes
nikosdejavu · 7 years ago
Text
Nikos Deja Vu - New RA2-Yuri's Revenge Map: A Lovely City Night 2018
Nikos Deja Vu Proudly Presents "A Lovely City Night 2018" A great MAP for 4 (2-4) PLAYERS!  (Night Battle) NEW FIGHTING TECHNIQUES & METHODS FOR RED ALERT 2 - YURI'S REVENGE
THE BATTLE MAP
WARNING!
This map is made with the latest WESTWOOD official terrain expansion set! If you don't have it inside your RA2 folder, download it now from here!
Map Difficulty INSANE
★ ★ ★
IN THIS BEAUTIFUL MAP YOU'LL HAVE NEW WEAPONS, NEW WAR TECHNIQUES AND NEW UNITS, AND AS ALWAYS, A VERY DETAILED AND REALISTIC BATTLEFIELD WITHOUT EXAGGERATIONS :)
How to use this map (Instructions for Single Player Only)
1. Just UNRAR your download, and copy the *.YRM file(s) inside your RA2 directory (folder). 2. Run YURI.exe -> Single Player -> SKIRMISH 3. Load this map, select difficulty and other rules. 4. Start playing!
★ ★ ★
A 2018 BONUS! Resolution Fix for all monitors! for Red Alert 2 & RA2 Yuri's Revenge only! Download it now from HERE
★ ★ ★ ★ ★
More: 1. MIG-35 FULCRUM FIGHTER JET 2. NEW MIG BOMBER 3. SIEGE CHOPPERS NOW CAN FIRE WITH NEW MISSILE WEAPONS AND NEW MACHINEGUNS! 4. THE HIND CHOPPER (Hind Transport) IS FLYING AND SHOOTING PERFECTLY WITH A NEW CANNON 5.  LEOPARD 2A7 (HEL) 6. The APACHE LONGBOW (Harpy) CAN BE USED FROM ALL HOUSES 7. VLADIMIR's DREADNOUGHT (Command Ship) AVAILABLE FOR ALL HOUSES (with AA missiles)
Even More... 1. Soviets and Yuri forces can create Airforce Command Headquarters now! 2. All forces can create 5 types of aircraft & helicopter units, including MIG-35 and Apache! 3. The Rocketeers can use new laser weapons! 4. Siege Choppers can fire air-to-surface and air-to-air missiles! 5. More buildings can HEAL your units and your infantry! 6. FLINT WESTWOOD's cameo is missing from the INFANTRY TAB (RA2-YR version 1.001) but is working perfectly when selected. 7. Sammy Stallion, Arnie Frankenfurter and Vladmir (Mad Vlad) icons have changed in the Infantry TAB (RA2-YR version 1.001) 8. Some other, aesthetic only, changes occured after Westwood's latest game patch, but don't worry, everything is working perfectly!
DOWNLOAD THIS MAP
WARNING DO NOT USE ANY MOD You won't need it :)
If you already have patched your original RA2 game with any MOD(s) you can easily remove them using the "CleanUpTool" from the WESTWOOD FTP, from EA FTP, or from my site. To play, correctly, my maps, use the original RA2 - YR game set, without any INI files, or your game will stick and/or will crush, always... If you ever need special information, on the map code, don't hesitate to leave a message here :)
A SPECIAL NOTE
No No! I don't use MOD or extra CAMEOS for all those maps I've created! There's just some of my fantastic RA code inside the map(s)! I always use the official Westwood game set, and my ..magic! So.. USE MY MAPS AND YOUR GAME WILL NEVER STICK! Why? Because I triple test them, for my pleasure first of all :)
NEW : ALL IN ONE MUSIC PACK For Red Alert 2 Yuri's Revenge Only!
Play 100+ music tracks by Frank Klepacki from all WESTWOOD (and not only) GAMES along with your RA2-YR. Extreme sound quality, far better than the originals!
Read what and how Click Here
Enjoy and stay tuned: More maps are coming!
Nikos Deja Vu n1999k.blogspot.com
0 notes