Skip to content

Instantly share code, notes, and snippets.

Avatar

Farouk Touil touilfarouk

View GitHub Profile
@touilfarouk
touilfarouk / Truncate-text-pipe.ts
Created Apr 11, 2020 — forked from bezael/Truncate-text-pipe.ts
Truncate text by Custom pipe. Angular 6
View Truncate-text-pipe.ts
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'truncateText'
})
export class TruncateTextPipe implements PipeTransform {
transform(value: string, limit: number = 40, trail: String = '…'): string {
let result = value || '';
View elbilad.net.monkey.user.js
// ==UserScript==
// @name elbilad.net
// @namespace MyScripts
// @description Autoriser la sélection du text
// @include http://www.elbilad.net/*
// @version 1
// @grant none
// ==/UserScript==
$("#contenu *").css("-moz-user-select","text");
You can’t perform that action at this time.