Skip to content

Instantly share code, notes, and snippets.

View pradprat's full-sized avatar
🏠
Working from home

Pradika Fitra Pratama pradprat

🏠
Working from home
View GitHub Profile
@pradprat
pradprat / Delete all retweet.js
Created April 26, 2023 14:24
Delete all retweet.js
setInterval(() => {
for (const d of document.querySelectorAll(
'div[data-testid="unretweet"]'
)) {
d.click();
}
for (const d of document.querySelectorAll(
'div[data-testid="unretweetConfirm"]'
)) {
d.click();
@pradprat
pradprat / Delete All Followers Twitter
Created July 12, 2022 04:15
Delete All Followers Twitter
setInterval(() => {
for (const d of document.querySelectorAll(
'div[aria-haspopup="menu"]'
)) {
d.click();
}
for (const d of document.querySelectorAll(
'div[data-testid="removeFollower"]'
)) {
d.click();
@pradprat
pradprat / Delete All Following Twitter
Created July 12, 2022 04:04
Delete All Following Twitter
setInterval(() => {
for (const d of document.querySelectorAll(
'div[data-testid$="unfollow"]'
)) {
d.click();
}
for (const d of document.querySelectorAll(
'div[data-testid="confirmationSheetConfirm"]'
)) {
d.click();
@pradprat
pradprat / Delete All DM Conversation Twitter
Last active March 2, 2022 10:51
go to https://twitter.com/messages. open console, and paste the code
setInterval(() => {
for (const d of document.querySelectorAll(
'div[data-testid="conversation"]'
)) {
d.click();
}
for (const d of document.querySelectorAll(
'a[aria-label="Conversation info"]'
)) {
d.click();
@pradprat
pradprat / vision.js
Created March 31, 2019 09:30
error http request
$.get("upload_file.php?q=" + url, function( data )
{
var str=data;
$("#uploadStatus").text(str);
});
public class FacadePatternClient {
public static void main(String args[]){
ShopKeeper sk=new ShopKeeper();
sk.iphoneSale();
sk.samsungSale();
}
}
public class Blackberry implements MobileShop {
@Override
public void modelNo() {
System.out.println(" Blackberry Z10 ");
}
@Override
public void price() {
System.out.println(" Rs 55000.00 ");
public class Samsung implements MobileShop {
@Override
public void modelNo() {
System.out.println(" Samsung galaxy tab 3 ");
}
@Override
public void price() {
System.out.println(" Rs 45000.00 ");
public class ShopKeeper {
private MobileShop iphone;
private MobileShop samsung;
private MobileShop blackberry;
public ShopKeeper(){
iphone= new Iphone();
samsung=new Samsung();
blackberry=new Blackberry();
public class Iphone implements MobileShop {
@Override
public void modelNo() {
System.out.println(" Iphone 6 ");
}