Skip to content

Instantly share code, notes, and snippets.

View BilalTariq01's full-sized avatar
Creating magic with code

Bilal Tariq BilalTariq01

Creating magic with code
View GitHub Profile
@summatix
summatix / remove_hashtags.php
Created December 16, 2014 20:44
PHP: Remove hashtags from a caption
<?php
/**
* Removes hashtags from the given text. Hashtags at the end of the text are removed,
* and hashtags within the text are unhashed.
*
* E.g.
* Case 1: This is an example with lots of hashtags at the end #hash1 #hash2 #hash3 #hash4 #hash5
* Result: This is an example with lots of hashtags at the end
*
@Vlasterx
Vlasterx / delete-linkedin-posts.js
Last active January 19, 2024 18:33
Delete all LinkedIn posts version for June 2021.
(() => {
let speedMs = 500
setInterval(() => {
let dropdown = document.querySelector('.feed-shared-update-v2__control-menu .artdeco-dropdown button')
dropdown.click()
setTimeout(() => {
let optionDel = dropdown.parentElement.parentElement.parentElement.querySelector('.option-delete .tap-target')