Skip to content

Instantly share code, notes, and snippets.

View carlosrojaso's full-sized avatar
🎯
Focusing

Carlos Rojas carlosrojaso

🎯
Focusing
View GitHub Profile
class Ingredient {
constructor(name) {
this.name = name;
}
getInfo() {
return `I'm a ${this.name}`
}
}
@carlosrojaso
carlosrojaso / delete.md
Last active January 9, 2023 23:31 — forked from timwco/delete.md
LinkedIn: Delete Messages (April 2020)

What

LinkedIn is a valuable resource, but sometimes it sucks. One of those times is when you want to delete messages. You have to select each message one by one. It takes about 4 "clicks" to successfully delete a message.

This script should help. Since LI requires you to perform multiple steps, I decided to automate it for you. Once you initiate the script, it will run every second. If a message has the ability to be deleted, it will be. If not, it will be archived. Some "InMail" messages cannot be deleted on the web app. This script should work as long as LI doesn't change their page layout or element names, which will happen eventually.

Last tested & verified working on: April, 07, 2021

Special Thanks to @lifedup for the updated script.

<!DOCTYPE html>
<html>
<body>
<button onclick="playVid()" type="button">Play Video</button>
<button onclick="pauseVid()" type="button">Pause Video</button>
<br>
<video id="video1">
<source src="mov_bbb.mp4" type="video/mp4">
<source src="mov_bbb.ogg" type="video/ogg">
//Equipment
class Equipment {
getPrice() {
return this.price || 0;
}
getName() {
return this.name;
}
class Soldier {
constructor(level) {
this.level = level;
}
attack() {
return this.level * 1;
}
}
var path= require('path');
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'index.js',
library: 'simpleErrorComponent',
libraryTarget: 'umd'
}
<template>
<div id="app">
<img alt="Vue logo" src="./assets/logo.png">
<error-component>Esto en un mensaje</error-component>
<error-component :kind="warning">Esto en un mensaje</error-component>
<error-component :kind="error">Esto en un mensaje</error-component>
</div>
</template>
<script>
import React from 'react';
import 'simple-error-component';
function App() {
return (
<div className="App">
<error-component>Esto en un mensaje</error-component>
<error-component kind="warning">Esto en un mensaje</error-component>
<error-component kind="error">Esto en un mensaje</error-component>
</div>
<!--The content below is only a placeholder and can be replaced.-->
<h2>Error Component</h2>
<error-component>Default Message</error-component>
<error-component [attr.kind]="warning">Warning Message</error-component>
<error-component [attr.kind]="error">Error Message</error-component>
import { BrowserModule } from '@angular/platform-browser';
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import 'simple-error-component';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],