Skip to content

Instantly share code, notes, and snippets.

View touilfarouk's full-sized avatar

Farouk Touil touilfarouk

View GitHub Profile
@touilfarouk
touilfarouk / Truncate-text-pipe.ts
Created April 11, 2020 11:44 — forked from bezael/Truncate-text-pipe.ts
Truncate text by Custom pipe. Angular 6
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 || '';
// ==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");